How to fix the WordPress white screen of death
By Ash, Founder, HosteazePublished 3 min read
The short answer
The WordPress white screen of death is a blank page, or a "There has been a critical error" message, caused by a PHP error. A faulty plugin or theme is the usual culprit, often straight after an update. Check your admin email for a recovery mode link, or rename the plugins folder by SFTP to switch every plugin off.

You click an update, the page reloads, and your site is a blank white page. Or, on newer versions of WordPress, a single line: "There has been a critical error on this website." It looks catastrophic. It almost never is. Your content is safe in the database, and the cause is usually one plugin or theme that a few minutes' work will switch off.
What causes the white screen of death?
A PHP error that stops WordPress from building the page. These are the usual causes, in rough order of likelihood:
| Cause | Typical trigger | Quick test |
|---|---|---|
| A plugin | You just installed or updated one | Deactivate all plugins |
| Your theme | You just changed or updated the theme | Switch to a default theme |
| Out of PHP memory | A heavy page, import or plugin | Look for "Allowed memory size exhausted" in the error log |
| PHP version mismatch | Your host upgraded PHP | Check the error log for "deprecated" or "fatal" lines naming a plugin |
| A failed update | An update was interrupted | Re-upload fresh wp-admin and wp-includes folders |
How do I fix it if I can still log in?
Since WordPress 5.2, a fatal error triggers recovery mode. WordPress emails the site's admin address with the subject "Your Site is Experiencing a Technical Issue" and a special login link.
- Open the email and note which plugin or theme it names.
- Click the recovery mode link and log in. The faulty plugin or theme is paused for you only.
- Go to Plugins and deactivate the one named in the email.
- Click Exit Recovery Mode in the top admin bar.
- Check the site loads, then look for an update or alternative to the broken plugin.
If there's no email, try deactivating all plugins from Plugins, then reactivate them one at a time until the white screen returns.
How do I fix it if I'm locked out?
You'll need SFTP access (or your hosting control panel's file manager).
- Connect to your site and open
wp-content. - Rename the
pluginsfolder toplugins_old. This deactivates every plugin at once. - Load your site. If it works, rename the folder back to
plugins. - Inside
plugins, rename each plugin's folder in turn (for examplecontact-formtocontact-form_off) until you find the one that breaks the site. Leave that one renamed. - If plugins weren't the cause, go to
wp-content/themesand rename your active theme's folder. WordPress falls back to a default theme if one is installed.
How do I see the actual error?
Turn on debug logging. Add these lines to wp-config.php, above the line that says to stop editing:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );Reload the broken page, then open wp-content/debug.log. The last lines name the file and line that failed, which usually points straight at a plugin folder. Set WP_DEBUG back to false once you're done, because the log can expose details about your site.
If the log mentions memory, add define( 'WP_MEMORY_LIMIT', '256M' ); to wp-config.php. Your host's PHP limit still caps it, so you may need to ask them to raise that too.
How do I stop it happening again?
Update on a staging site first, and take a backup before every update. Our guide on how to update WordPress safely has a routine that takes ten minutes. If you see "Error establishing a database connection" instead of a white screen, that's a different problem: see how to fix the database connection error. And for errors your server shows rather than WordPress, see what a 500 internal server error means.
Frequently asked questions
Why is only my WordPress admin showing a white screen?
The same causes apply, but the problem code only runs in the dashboard. A plugin that adds admin pages is the most likely source. Rename its folder in wp-content/plugins by SFTP, or use the recovery mode link from your admin email.
I didn't get the recovery mode email. What now?
WordPress sends it to the site's admin email address, so check spam and make sure that address is still one you use. If your site can't send email at all, go straight to the SFTP method and rename the plugins folder.
Will I lose content fixing the white screen?
No. Renaming a plugin or theme folder doesn't touch your posts, pages or settings, which live in the database. When you rename the folder back and reactivate the plugin, its settings are usually still there.




