HTTP 500 Internal Server Error — getting more information

An HTTP 500 Internal Server Error is a commonly encountered error. It is often temporary and is a general server error response.

Error message

↑ Back to top

Generally, an HTTP 500 Internal Server Error’s output is not descriptive and does not help narrow down the cause of the issue. It is considered best practice to show a generic error like the one displayed below on live/production sites:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [support email] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

[server/port information]
An Internal Server Error message displayed on a website.
An example of a generic HTTP 500 Internal Server Error.

If you encounter a persistent internal server error, you will need more information to troubleshoot it.

Debugging

↑ Back to top

To enable WordPress debugging mode:

  1. Connect to your site using Secure File Transfer Protocol (SFTP).
  2. Open the file named wp-config.php.
  3. Look for the following line of code:
    define('WP_DEBUG', false);
  4. Change the value from false to true.
  5. Save the file.
Code from the wp-config.php file with the debug feature set as 'false.'
The line of code for enabling and disabling debugging in wp-config.php.

Note: If the value in the line mentioned above is already set as true, another extension, plugin, or server configuration may be suppressing the error output.

Refresh the page you saw the error on; you should now see more descriptive error messages which will help in troubleshooting. Learn more about debugging in WordPress.

Contact your host

↑ Back to top

Since this is a server-level error, you’ll often find further details in server error logs. Your hosting provider can usually help you find these if they are available.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.