Fixing the WordPress White Screen of Death
Fixing the WordPress White Screen of Death
The "white screen of death" is when your WordPress site displays a blank white page with no error message. It is one of the more frustrating WordPress issues because it gives no visible clue about the cause. This guide walks through the most common causes and how to fix each one.
Step 1: Check the Error Log
The first thing to do is check your PHP error log, which usually reveals the exact cause:
- Log in to KPanel at kpanel.kapsulecloud.com
- Go to Websites, select your site, and click Logs
- Open the PHP Error Log
- Look for
Fatal errorentries near the time the white screen started
See Accessing Your Website Error Logs for more detail.
Step 2: Enable WordPress Debug Mode
If the error log is not showing enough detail, enable WordPress debug mode:
- Connect via SFTP or the KPanel File Manager
- Open
wp-config.php - Set the following:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
- Reload the page and check
wp-content/debug.logfor the error message
Step 3: Deactivate All Plugins
A faulty or incompatible plugin is the most common cause of a white screen after an update.
If you can access WordPress admin: go to Plugins > Installed Plugins, select all, and choose Deactivate from the bulk actions menu.
If you cannot access WordPress admin:
- Connect to your site via SFTP
- Navigate to
wp-content/plugins/ - Rename the
pluginsfolder toplugins-disabled - Try loading the site
If the white screen clears, a plugin is the culprit. Rename the folder back to plugins, then deactivate plugins one at a time until you identify the offending plugin.
Step 4: Switch to a Default Theme
A broken theme can also cause a white screen:
- Via SFTP, go to
wp-content/themes/ - Rename your active theme's folder to something like
mytheme-disabled - WordPress will fall back to a default theme
After identifying the problematic plugin or theme, check whether an update is available from the developer. Many white screen issues are fixed in the next release.
Step 5: Increase PHP Memory Limit
A white screen can occur when WordPress runs out of memory. To increase the limit:
- Open
wp-config.phpin the File Manager or via SFTP - Add this line before the
/* That's all, stop editing! */line:
define( 'WP_MEMORY_LIMIT', '256M' );
- Save the file and reload the site
You can also increase the PHP memory limit in KPanel under Websites > [your site] > PHP Settings.
Step 6: Restore From Backup
If none of the above steps resolve the issue, restoring from a backup taken before the problem began is the fastest path to resolution. See Restoring From Backup.
Still Not Resolved?
If the white screen persists after working through these steps, open a support ticket in KPanel under Support. Include the most recent PHP error log entries and a description of what changed on the site before the issue appeared.
