Skip to content

How to fix the WordPress white screen of death

By Ash, Founder, HosteazePublished 3 min read

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.

A blank white billboard standing in a field under a bright sky, as empty as a website showing the white screen of death.
Credit: Mariakray via Pixabay

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:

CauseTypical triggerQuick test
A pluginYou just installed or updated oneDeactivate all plugins
Your themeYou just changed or updated the themeSwitch to a default theme
Out of PHP memoryA heavy page, import or pluginLook for "Allowed memory size exhausted" in the error log
PHP version mismatchYour host upgraded PHPCheck the error log for "deprecated" or "fatal" lines naming a plugin
A failed updateAn update was interruptedRe-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.

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).

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.

Sources

  1. WordPress Advanced Administration Handbook, Common WordPress errors
  2. Make WordPress Core, Fatal Error Recovery Mode in 5.2
  3. WordPress Advanced Administration Handbook, Debugging in WordPress
  4. WordPress Advanced Administration Handbook, Editing wp-config.php
A pane of window glass with a hole punched through it and cracks spreading outwards, the aftermath of a break-in.GuideMy WordPress site has been hacked - what do I do?If your WordPress site is hacked, stay calm and work in order. Write down what you're seeing, change every password and reset the security keys in wp-config.php, then restore a clean backup or replace WordPress files with fresh copies. Update everything, scan your own computer, and request a review in Google Search Console if Google has flagged the site.WordPress speed · 23 November 2026A country track splitting into two paths between autumn trees, a choice between two routes to the same place.ComparisonWordPress.com vs WordPress.org - what's the difference?WordPress.org is the free, open-source WordPress software that you install on hosting you choose, with full control over plugins, themes and data. WordPress.com is a commercial service run by Automattic that hosts WordPress for you, with features tied to its plans. Choose WordPress.org for ownership and flexibility, WordPress.com if you want everything handled by one company.WordPress speed · 21 November 2026A chalkboard sign reading "open" hanging on a weathered shop door beside a window.QuestionWhat are the hosting requirements for WooCommerce?As of October 2026, WooCommerce recommends WordPress 6.9 or greater, PHP 8.3 or greater, MySQL 8.0 or greater (or MariaDB 10.6 or greater), HTTPS support and a WordPress memory limit of at least 256 MB. Beyond those minimums, a shop needs hosting with enough resources for checkout traffic, plus caching that leaves the cart and checkout alone.WordPress speed · 19 November 2026Lorries and cars queued nose to tail on a motorway, the way requests pile up on an overloaded website.QuestionWhy is my WordPress site slow?Most slow WordPress sites have one of five problems - oversized images, no page caching, a heavy theme or plugin, an old PHP version, or a server that responds slowly. Test the page in PageSpeed Insights, check Tools, Site Health in your dashboard, then switch plugins off one at a time to find the culprit before you change anything else.WordPress speed · 17 November 2026An African elephant walking through tall golden grass under a blue sky. The elephant is PHP's long-standing mascot.QuestionWhat PHP version should I use for WordPress?As of October 2026, use PHP 8.3 or 8.4 for WordPress. WordPress.org recommends 8.3 or greater, and both versions still get security fixes until at least the end of 2027. PHP 8.2 loses security support on 31 December 2026, and 8.1 and older already have. Test on staging before switching, because old plugins may not cope.WordPress speed · 15 November 2026

Hosting made for WordPress

See how our WordPress hosting is set up.

See WordPress hosting