Yii - white screen of death debugging tips

I have a staging server running a Yii app that now gives a "white screen of death". I don't see anything that can be displayed (or even the source code when "view source"), locally the same code works without any problem.

Can anyone suggest a good routine for debugging the "white screen of death" in a Yii application?

+3


source to share


1 answer


Getting a blank screen in yii mostly happens because error_reporting is turned off. Placed

error_reporting(-1);
ini_set('display_errors', true);

      



in index.php should return your result.

Note that you can always look in the application.log and apache error.log for information when you have no output.

+5


source







All Articles