This has never happened before. Usually it displays the error, but now it just gives me a 500 internal server error. Of course before, when it displayed the error, it was different servers. Now I’m on a new server (I have full root, so if I need to configure it somewhere in the php.ini, I can.) Or perhaps its something with Apache?
I’ve been putting up with it by just transferring the file to my other server and running it there to find the error, but that’s become too tedious. Is there a way to fix this?
Check the
error_reporting,display_errorsanddisplay_startup_errorssettings in yourphp.inifile. They should be set toE_ALLand"On"respectively (though you should not usedisplay_errorson a production server, so disable this and uselog_errorsinstead if/when you deploy it). You can also change these settings (exceptdisplay_startup_errors) at the very beginning of your script to set them at runtime (though you may not catch all errors this way):After that, restart server.