I’ve been developing a website in MODx for the last few weeks without issue but yesterday it hit a problem. I was saving off a new snippet and it came back with a bad bad PHP error complaining about the
siteCache.idx.php file. So I checked the file out down to the line it complained about and the file abruptly stopped mid sentence, nnot cosing off the PHP block (about 5000 lines down). It seemed to be a file that could be regenerated from the DB so I just renamed the file to
siteCache.idx.old.php then created a new blank one. That didn’t seem to work so I tried a few other things with the file and eventually got MODx ticking along again.
Anyway, today it was working for a couple hours but has stopped working again with a seemingly different issue out of the blue. Initially the whole site wouldn’t work, just blank pages in the front end, and going to manager would only return a load of PHP warnings -
Warning: fopen(/home/www/domain.com/web/manager/media/style//login.html) [function.fopen]: failed to open stream: No such file or directory in /home/www/domain.com/web/manager/includes/accesscontrol.inc.php on line 129
Warning: filesize() [function.filesize]: stat failed for /home/www/domain.com/web/manager/media/style//login.html in /home/www/web56/web/manager/includes/accesscontrol.inc.php on line 130
Warning: fread(): supplied argument is not a valid stream resource in /home/www/domain.com/web/manager/includes/accesscontrol.inc.php on line 130
Warning: fclose(): supplied argument is not a valid stream resource in /home/www/domain.com/web/manager/includes/accesscontrol.inc.php on line 131
But 10 mins later the warnings disappeared, without any changes being made, and it started saying only "Not Logged In!". And I haven’t been able to fix this in any way. Anyone know what I can do?