php white screen of death

前端 未结 2 1983
小鲜肉
小鲜肉 2021-01-13 21:19

I have browsed several other questions, and tried various solutions related to error reporting, including

ini_set(\'display_errors\',true);
error_reporting(         


        
2条回答
  •  终归单人心
    2021-01-13 21:59

    I've also encountered PHP's white screen of death a few times. In my experience one of the most helpful things you can do is ensure PHP is logging to file using the error_log directive in php.ini: http://us1.php.net/manual/en/errorfunc.configuration.php#ini.error-log

    If you're still not seeing any useful information in the PHP error log you've defined, or in the Apache error log, it might be time to add debug output through your code to identify the point at which the fatal error occurs. To do that you can either open a file handle and write to it yourself periodically, or just use the error_log() function to output debug messages.

提交回复
热议问题