Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to trace what is causing WordPress error 500?

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.

like image 224
TruMan1 Avatar asked Sep 27 '11 23:09

TruMan1


People also ask

How do I find 500 internal server errors?

Delete your browser's cookies. You can correct some 500 Internal Server Error issues by deleting the cookies associated with the site on which you're getting the error. After removing the cookie(s), restart the browser and try again. Troubleshoot as a 504 Gateway Timeout error instead.

What triggers a 500 error?

The 500 Internal Server error could be caused by an error during the execution of any policy within Edge or by an error on the target/backend server. The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from fulfilling the request.


1 Answers

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

php_flag display_errors on
like image 69
Rond Avatar answered Sep 28 '22 06:09

Rond