How do I debug a WordPress website?

We recently had a client who experienced a WordPress site suddenly not working. It was loading a blank white screen in Firefox and a 500 Error in Google Chrome. Now if I know a bit of HTML and CSS but if my WordPress site is not loading, how do I fix a white screen on a WordPress website? 

  1. Open your wp-config.php file, add these lines near the middle of the file.
    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);
  2. This outputs the files to debug.log in the /wp-content folder.
  3. Visit you site again, and now error is written into /wp-content/debug.log.
  4. The resulting error with TimeStamp will tell you the exact location and a list of reasons why WordPress is not loading.

In this case, for this client, there was an accidental deletion on a character in the functions file.

If you love your time more than we love WordPress building, we have WordPress Superheroes standing by, ready to support your WordPress tasks and deliver you a clean and fast WordPress website.

Leave a comment