I can't really post the 400 line code, it wouldn't help anyways. Basically as soon as I temporarily fix one syntax error it finds another one lower down the code. I know I haven't actually mistyped anything (something stupid like forgetting ';') because this code has been working for over a month with no problem. I just had to do a short Apache restart on Ubuntu server (since like 3 months) and there are countless syntax errors - probably spanning 10 php files which have always worked before. So I don't think there's anything wrong with the actual code, more so the php.ini file or some configuration got changed during that time and went into effect as soon as I restarted.
Originally Posted by seco
TBH I don't even understand it myself, it's the usual typical T_STRING errors. Here's one that didn't work:
The error said it was expecting the ']' but received a '(', so I changed it to this and it worked:
It's as if my PHP parser suddenly got really stupid.
$cm_purge_chapter_array_count = count($cm_purge_chapter_array)-1;