White screen of death! White screen of death! codeigniter codeigniter

White screen of death!


If there's a fatal compilation error, then you may well get a blank page.Try doing a

php -l <filename.php>

against your script


Look near the top of /index.php for a call to error_reporting() - and make sure it's not changing your php.ini configuration to something else (besides E_ALL).

And since you didn't mention your php.ini configuration, check to ensure you have error_reporting = E_ALL there as well.


I've found out, since the time of my question, that nothing seems to ensure that errors are always outputted with PHP, which seems to throw white screens here and there. Regardless of PHP's ini-settings.

I've found out that the best workaround however is to use the following line to ensure that error logging is put into a file easily accessed and monitoredby the application:

ini_set('error_log', MYPATH .'logs/errorlog.log'); 

As far as I've tested it, when white screens appear - it also gets logged into this errorlog. Seems to be the easiest way to know what happens when things go wrong.