每当PHP应用程序发生错误时,我都会看到白屏。 我检查了php.ini和error_reporting = E_ALL和display_errors =我也检查了php_info()函数和error_reporting设置为6135这是正确的。
我已经尝试添加:error_reporting(E_ALL); ini_set('display_errors',TRUE); 到我的index.php,但没有奏效。
另外我没有任何自定义error handling函数。 有没有人可以在PHP中导致白屏?
顺便说一下,它不是由一个未closures的括号造成的,如果我故意在index.php中显示一个错误。
但是,当我尝试加载一个沉重的页面,白色屏幕显示。 我正在使用相同的MySql服务器为其他应用程序没有问题。
进行这些更改后,您是否重新启动IIS / Apache?
也许看看error_log?
也许内存泄漏或最大执行时间是问题..尝试增加他们在php.ini
max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit = 80M ; Maximum amount of memory a script may consume (8MB)