Yii - “白屏死亡”,调试提示 [英] Yii - 'white screen of death', debugging tips
问题描述
任何人都可以建议在yii应用程序中调试白屏死机的好例程?
在yii中获取空白屏幕主要是因为error_reporting已关闭。
将
error_reporting(-1);
ini_set('display_errors',true);
在index.php中应该可以得到你的输出。
请注意,当您没有输出时,您可以随时查看application.log和apache error.log以获取信息。
I have a staging server running a Yii application that now gives a 'white screen of death'. I cannot see anything being ouputted to the screen (or even the source code when 'view source'), locally the same code runs without any issues.
Can anyone suggest a good routine to debug 'white screen of death' within a Yii application?
Getting a blank screen in yii is mostly because error_reporting is off. Put
error_reporting(-1);
ini_set('display_errors', true);
in index.php should get your output back.
Note that you can always look in application.log and apaches error.log for informations when you don't have some output.
这篇关于Yii - “白屏死亡”,调试提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!