How to trace what is causing WordPress error 500?

2019-04-07 03:34发布

Internal error 500 is such a general error and nothing shows up in the logs under /wordpress/error_log. Is there a way to get a stack trace of where the crash is occurring? In ASP.NET it is so easy because a stack trace, code snippet, and line number all show up in the error page. Any help would be greatly appreciated.

1条回答
时光不老,我们不散
2楼-- · 2019-04-07 04:29

Turn on php errors in your php.ini or add this line to your .htacess file in your webroot:

php_flag display_errors on
查看更多
登录 后发表回答