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?
- Go to your wp-config.php.
- Look for the line below:
define( 'WP_DEBUG', false )
- Replace false with true.
define( 'WP_DEBUG', true )
- Add the following line:
error_reporting(E_ALL); ini_set('display_errors', 1);
- Then click save.
- 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.
- 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 )