php white screen of death

前端 未结 2 1964
小鲜肉
小鲜肉 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:53

    Most times, when errors appear when we move from WAMP to LAMP it's a question of case sensitivity. Since windows is not CS but Linux is a lot can break.

    I would:

    • Check case on the classes / pages that are acting up
    • Check .htaccess rules (or temporally remove them) to check the absence of errors
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题