)

Strange White Blank Screen When Logged Out of Your WP Site

Last Updated: 3 years ago by BrodNeil

Surprise to stare on a white blank screen when you’re logged out of your WP site, while everything looks fine when you’re logged in?

  1. Go to your wp-config.php.
  2. Look for the line below:
    • define( 'WP_DEBUG', false )
  3. Replace false with true.
    • define( 'WP_DEBUG', true )
  4. Add the following line:
    • error_reporting(E_ALL); ini_set('display_errors', 1);
  5. Then click save.
  6. Go and check out your WP Site; you should see the errors displayed.
    • Normally, errors are because of incompatible plugins or obsolete themes that need update.
  7. Note that this method is only good when you are using a staging environment for your WP site.  It does not look good to your site’s visitors in you do this on a LIVE site.  This is why I use SiteGround because of its easy-to-create staging feature.

Line of Code:

error_reporting(E_ALL); ini_set('display_errors', 1);
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true )