skip to Main Content

What happens when WordPress returns HTTP ERROR 500?

Is your WordPress site displaying a white page or it says HTTP ERROR 500, there is most probably a fatal PHP error somewhere in your WordPress theme or plugins. If you want to figure out what is causing this issue, follow these steps:

  • Access your server file system (via FTP or your hosting dashboard)
  • Locate your WordPress site installation folder (usually something like /public_html/documentroot ), you’ll find a wp-config.php file in this folder, which is a WordPress config file, edit the wp-config.php file and search for WP_DEBUG
  • You will see this line define( 'WP_DEBUG', false );, if this line is missing, then you can insert it right above the following line:
    /* That's all, stop editing! Happy blogging. */,
    once you have this line in the wp-config.php file, change the value from false to true, so it will look like this:
    define( 'WP_DEBUG', true );
  • Save the file.
  • go to your WordPress page, that was displaying the white screen and refresh the page, the PHP error, should be visible now; you should copy that error and send it to the support team, they will be able to tell you what the issue is and how to solve it.
  • After you have copied the error message, you should also disable the WP_DEBUG, because it should not be enabled on your production page,
    to do that, open the wp-config.php file again and change the value back to false, so it should look like this:
    define( 'WP_DEBUG', false );

Leave a Reply

Back To Top