How to Fix the WordPress White Screen
The white screen of death is a blank page with no error message. It is unhelpful precisely because PHP hit a fatal error and WordPress is configured not to display it.
The fix is almost always: make the error visible, read it, act on it. Guessing wastes hours.
Step 1 — Make the error visible
Open wp-config.php in cPanel's File Manager (in public_html) and find /* That's all, stop editing! */. Just above it, add:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);This writes errors to wp-content/debug.log without showing them to visitors — important on a live site.
Reload the page, then open wp-content/debug.log. The last entry names the file and line that failed. Nine times out of ten it points straight at a specific plugin or theme.
Remove these three lines once you are done. Leaving debug logging on fills the disk and can expose paths.
Step 2 — If a plugin is named
Rename its folder to disable it without needing admin access.
In File Manager, go to wp-content/plugins/, find the folder named in the log, and rename it — add -off to the end. WordPress cannot load it and skips it.
Reload. If the site returns, that plugin is the cause. Update it, replace it, or leave it off.
Step 3 — If nothing is named, bisect
Rename the whole wp-content/plugins folder to plugins-off. This disables everything at once.
- Site returns → a plugin is responsible. Rename the folder back, then rename plugins one at a time until it breaks again.
- Still white → the theme. Rename your active theme's folder in
wp-content/themes/. WordPress falls back to a default theme if one is present.
Step 4 — Memory limit errors
If the log says "Allowed memory size ... exhausted", PHP ran out of RAM.
Add to wp-config.php:
define('WP_MEMORY_LIMIT', '256M');That covers most sites. If it does not help, the real question is what is consuming that much — usually a page builder, an image-heavy import, or a plugin loading everything at once. Raising the limit indefinitely treats the symptom.
If you are also seeing intermittent 508 errors, the two are related — see our 508 guide.
Step 5 — White screen only in /wp-admin
If the front end works but admin does not, it is usually a plugin that only loads in admin. Same bisect method.
If admin works but the front end is white, suspect the theme first.
Common causes, ranked
1. A plugin update that conflicts with another plugin or your PHP version 2. A theme update overwriting customisations 3. Memory exhaustion on an import or a builder-heavy page 4. Editing PHP in the built-in editor and saving a syntax error — this is why WordPress recommends disabling file editing 5. A PHP version change — an old plugin failing on PHP 8.x
Preventing the next one
- Never update plugins on a live site without a backup. JetBackup restore points make this a two-minute recovery
- Disable the file editor by adding
define('DISALLOW_FILE_EDIT', true);towp-config.php. Editing PHP through the browser is how a lot of white screens begin - Keep PHP current but change versions deliberately, in cPanel under MultiPHP Manager, and test after
- Delete unused plugins and themes. Inactive code still receives vulnerabilities and still gets loaded in some cases
If you are locked out entirely
Message us on WhatsApp with your domain. We can read the PHP error log from the server side, which frequently shows the fatal error even when debug.log was never created — and we can disable a plugin from the filesystem to get you back into admin.
Related articles
How to Install Free SSL on WordPress
Issue a free Let's Encrypt certificate with AutoSSL, move WordPress to HTTPS, and clear the mixed-content warnings that follow.
How to Back Up Your WordPress Site
What a complete WordPress backup actually contains, how to take one from cPanel or a plugin, and how to restore it when you need to.
Fix "Error Establishing a Database Connection"
The four causes of this WordPress error, how to tell them apart in a couple of minutes, and how to fix each one without losing content.
Was this article helpful?
Still stuck?
Our support team is available 24/7.