WordPress White Screen of Death: Why the Page Is Blank and How to Fix It

Category

,

Time to Read

9 minutes

Published

Updated

The WordPress white screen of death is a blank page caused by a PHP error that WordPress’s fatal error handler couldn’t report, or by code that printed nothing at all. Check the status code first, then turn on the debug log to see the error, and switch off the plugin or theme it names. If the page stays blank after that, purge your page cache.

Since version 5.2, WordPress shows an error message for most fatal errors instead of a blank page; on 7.1.3 that screen opens with the words “There has been a critical error”. So a truly blank page today is one of a few specific cases. We reproduced each of them on a WordPress 7.1.3 install in our lab.

When the fatal error handler can’t show a message

On our test site, the blank page with an empty 500 came from a PHP fatal error with WordPress’s error handler turned off. Blank or cut-off pages with status 200 came from code that stopped the page, an error partway through, or a missing theme folder.

If the page went blank right after you edited wp-config.php, put back the copy you downloaded first.

The white screen of death is the name WordPress users give a page that loads with nothing on it. The fatal error handler is the part of WordPress that catches PHP fatal errors and shows its error message instead; it’s on unless WP_DISABLE_FATAL_ERROR_HANDLER is set in wp-config.php.

Find the status code with curl, a command-line tool for web requests, or open your browser’s developer tools and reload with the Network tab showing:

$ curl -s -o /dev/null -w "HTTP %{http_code}, %{size_download} bytes\n" https://example.com/
HTTP 500, 0 bytes

Here’s what each case returned on our test site:

What we didStatusPage sizeWhat you see
Plugin with a fatal error, handler on (default)500about 2.7 KBThe critical error message, not a blank page
Same plugin, handler off (WP_DISABLE_FATAL_ERROR_HANDLER)5000 bytesBlank white page in Chromium (desktop browsers may show their own error page; not tested)
Code that calls exit before printing anything2000 bytesBlank white page
Fatal error in the footer, after the page started200page cut shortPage looks normal, then stops at the footer
Active theme folder renamed or missing2000 bytesBlank white page, until wp-admin is opened

The 200 cases are the dangerous ones. A check that only reads the status code sees 200, the same as a working page. And in our test, nginx’s page cache stored the blank 200 page and kept serving it, which we come back to below.

Show the error behind a WordPress white screen of death

The debug log shows the PHP error that the blank page hides, with the file and line. In wp-config.php, the standard file already contains define( 'WP_DEBUG', false );. Edit that line to true rather than adding another one, since PHP ignores a constant defined twice, then add the log settings under it. If your file has no WP_DEBUG line, add all three above the line “That’s all, stop editing”; search for WP_DEBUG_LOG and WP_DEBUG_DISPLAY first too:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

You’ll find wp-config.php at the top level of your WordPress install, beside the wp-content folder; download a copy before editing it. Load the blank page again and look in wp-content/ for a new file called debug.log. In our test, anyone could download that file from the site, so delete it when you’re done and set WP_DEBUG back to false. Writing the log to a private folder is explained in our WordPress errors guide.

On a site with no visitors yet, you can print the error on the page instead: change define( 'WP_DEBUG_DISPLAY', false ); to true, reload, then set it back to false. WP_DEBUG_DISPLAY is the setting that shows PHP errors inside the page; the handbook’s debugging page says its default is “true” once WP_DEBUG is on. With it on, our blank 500 page turned into the PHP error itself, and its status changed to 200:

White screen of death replaced by the PHP fatal error text after turning on WP_DEBUG_DISPLAY
Test site, 2 Nov 2026: WordPress 7.1.3, nginx 1.24.0, PHP 8.3. The error names the plugin file and line.

That page shows your server’s file paths to anyone, so turn display off again straight after. If you found WP_DISABLE_FATAL_ERROR_HANDLER in wp-config.php, download a copy of the file, then remove that line: with the handler back on, WordPress shows its message and can email you a recovery link.

Fix the plugin or theme behind it

The error line names a folder under wp-content/plugins or wp-content/themes; switch that code off and the page comes back. Copy the folder somewhere safe first, so you can restore it. If the page went blank right after an update, start with the plugin or theme you just updated, and see the failed update guide if the update itself broke.

  • A plugin: rename its folder, for example to plugin-name.off, with your host’s file manager or FTP. On our test site the page came back at once. The WordPress handbook suggests renaming the whole plugins folder to plugins_old when you don’t know which one it is.
  • If you have SSH access: wp plugin deactivate plugin-name --skip-plugins --skip-themes in WP-CLI, WordPress’s command-line tool. Without --skip-plugins, WP-CLI loads the same broken plugin and fails. Renaming a folder back later leaves the plugin inactive, so reactivate it on the Plugins screen.
  • The theme: switch to a default theme in wp-admin if you can reach it. If you can’t, check in wp-content/themes with your file manager that a second default theme is there before renaming the active theme’s folder. In our test, a missing theme folder itself produced a blank 200 page until we logged in and opened Appearance > Themes, which switched the site to Twenty Twenty-Four.
  • Memory: if the log says “Allowed memory size … exhausted”, follow our memory error guide. With the handler on, our memory test showed the critical error message rather than a blank page.

If the error names a file you edited yourself, such as the theme’s functions.php, undo that edit from your backup. A one-character typo there is enough to stop the whole site.

Clear the cache that stored the blank page

Fixing the code doesn’t always bring the page back, because a cache may still hold the blank copy. A page cache stores finished pages and hands them out without running WordPress, and our nginx cache couldn’t tell a blank page from a real one.

We reproduced it with nginx’s page cache:

request 1: HTTP 200, 0 bytes | X-Cache: MISS
request 2: HTTP 200, 0 bytes | X-Cache: HIT
(bug fixed)
request 3: HTTP 200, 0 bytes | X-Cache: HIT
request 4: HTTP 200, 0 bytes | X-Cache: HIT
(cache purged)
request 5: HTTP 200, 69429 bytes | X-Cache: MISS

So after any fix, purge every cache you have: your caching plugin, your host’s cache in its panel, and your CDN. Then check the status and size again with curl. Our nginx cache was set to store only 200 responses, so it wasn’t set up to keep an empty 500; we didn’t test that, or other cache setups. Our guide to changes not showing explains how to tell which cache is answering.

Blank only in wp-admin

When the public pages load but wp-admin doesn’t, the broken code is something that only runs for the dashboard. We hooked a fatal error to admin_init on our test site. The dashboard showed WordPress’s critical error message (HTTP 500) to a logged-in admin, visitors saw nothing wrong, and anyone not signed in who opened wp-admin just bounced to the login form.

Switch that plugin off by renaming its folder; errors in wp-admin are also the ones that trigger WordPress’s recovery email. A fully blank wp-admin points to the cases above instead: the error handler turned off, a missing theme folder, or a cache.

When the blank page isn’t a PHP fatal error

An empty debug log doesn’t mean the blank page isn’t a PHP fatal error or other plugin or theme fault. In our tests, code that called exit and a missing theme folder both left the log empty and returned an empty 200.

Check that the active theme’s folder exists, then rename wp-content/plugins to plugins_old, as the handbook suggests, and reload. If the page is still blank, the problem may sit before WordPress runs. The handbook notes that database errors can also show as a white screen, so check the database connection too; on our nginx test site, a stopped PHP service gave a 502 instead. Check your server’s error log in the hosting panel, and send your host the status code and the time it started.

Frequently Asked Questions

Why is my WordPress site blank with no error message?

In our tests on WordPress 7.1.3, blank pages came from the fatal error handler being turned off, code failing after the page started, something stopping the page before it printed anything, or a missing theme folder. Check the status code: our test returned an empty 500 for the first case and an empty 200 for the last.

Can the white screen of death fix itself?

Not in our tests. The blank page stayed until the code was switched off, and a page cache even kept serving the stored blank page after the fix, until we purged it.

Does the white screen of death delete my content?

No, it shouldn’t: posts, pages and settings live in the database, and a blank page means PHP stopped before showing them. In our tests, the front page returned HTTP 200 again once the broken code was switched off; we didn’t compare content item by item.

How we tested

Every blank page in this guide was one we caused on purpose, on 2 November 2026, with a small test plugin or a renamed folder. The site ran WordPress 7.1.3 on nginx 1.24.0, PHP 8.3 and MariaDB 10.11, with Twenty Twenty-Five 1.5 active and Twenty Twenty-Four also installed.

We measured each page’s status code and size with curl. The screenshots come from Chromium, which also showed the empty 500 page as plain white. For the page cache case we switched on nginx’s FastCGI cache with an X-Cache header, so hits and misses were visible, and switched it off afterwards.