I left an extra bracket at the end of an if condition in the playchar script so it caused a syntax error as php parses that script when players try to access it by clicking on play.
Personally, I don't know if this is clearer than my previous explanation.