We're having a strange problem occuring on one of our SilverStripe websites. Only every now and then, on random pages you get the standard GET /whatever-page, Website Error, Not Found error page. Refresh and it's fine. Has anyone had this happen? Is it a common bug? Something wrong with the server setup? Any help would be great! Thanks
It could be a memory limit issue or some pages taking a bit longer (eg when the cache is cold) which is causing an error. Best way to debug would be to investigate your PHP / apache error log on your server.
Well I found it's giving me this: "Premature end of script headers: main.php" and setting the system to DEV mode changed the error to a page cannot be found error. I've increased the memory limit and that did nothing. The fact that it happens randomly and not every time is confusing. Any ideas?
Edit: Further inspection shows that the Website Error, Not found error isn't generating any errors in the log files...
The premature end of script headers error sounds like its a common issue (do a google search) and it seems like the issue is normally related to the configuration of being installed as a CGI API. If you do a quick google search you can uncover much more information but you will probably need to get in contact with your host.
Well further inspection shows that the Website Error, Not found error isn't generating any errors in the log files. The errors are coming from SilverStripe when there are no errors. Sounds like a problem with the "software" rather than the host considering there are many other SilverStripe websites on the server. Could it be a version thing? some dodgy or nasty code in one version causing the issue?
Thanks for the google pointer, I searched these forums also to no help :(