WordPress white screen of death: causes and step-by-step fixes

Your WordPress site shows a blank white page? Learn what causes the white screen of death and fix it step by step, even when you cannot log in.

The WordPress white screen of death is a completely blank page with no error message. It happens when PHP stops running but nothing tells the browser why. The usual causes are a broken plugin, a broken theme, a memory limit, or caching that is serving an empty page.

You can fix it without the dashboard. First rule out caching, then turn on error logging to see the real error, then disable whatever the log names. If the dashboard is still reachable, it is even simpler: deactivate the last plugin you installed or updated.

This guide is about the truly blank page. If you see the sentence "There has been a critical error on this website", that is the newer version of the same problem, and I have a separate guide for the critical error message.

First, work out how much of the site is white

Before touching any files, spend two minutes checking the scope. It tells you where to look.

What you seeMost likely cause
Whole site and dashboard are blankPlugin, theme or memory problem affecting every request
Front end blank, dashboard worksTheme, page builder or caching
Only one page is blankThat page's content, a shortcode or a builder widget
Dashboard blank, front end worksAn admin-only plugin, or memory during admin tasks
Blank only when logged outA cached empty page
Blank only on mobileA separate mobile cache or a mobile theme plugin

Open the site in a private window and on your phone using mobile data. If the site loads there, the problem may be your browser cache or a local network issue, not the site at all.

Step 1: Clear every layer of cache

A surprising number of white screens I am asked to fix are just a cached blank page. Something broke for a moment, the cache saved the empty result, and now it serves that empty result to everyone.

Clear caches in this order:

  1. Your caching plugin, such as WP Rocket, LiteSpeed Cache or W3 Total Cache.
  2. Your host's server cache, usually a button in the hosting panel.
  3. Your CDN, such as Cloudflare, with a full purge.
  4. Your own browser, or just test in a private window.

If you cannot reach the dashboard to clear the plugin cache, delete the contents of wp-content/cache/ using your host's file manager. Do not delete the folder itself.

Step 2: Turn on error logging

The white screen is white because errors are hidden. Make WordPress write them to a file. Open wp-config.php in your site's root folder and add these lines above /* That's all, stop editing! */:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

Load the blank page again, then open wp-content/debug.log. The last lines usually contain a PHP Fatal error with a file path. That path names the plugin or theme at fault.

If debug.log stays empty, check your hosting panel for a PHP error log. Some hosts write errors there instead. cPanel hosts often have an "Errors" or "Logs" section. Many managed hosts show logs in their own dashboard.

Step 3: Disable plugins without the dashboard

If the log names a plugin, rename that plugin's folder in wp-content/plugins/. Adding -off to the end is enough. WordPress will deactivate it on the next page load.

If you have no log, test all plugins at once:

  1. Rename wp-content/plugins to plugins-off.
  2. Load the site. If it appears, a plugin is the cause.
  3. Rename the folder back to plugins. All plugins will now show as deactivated in the dashboard.
  4. Reactivate them one at a time, loading the site after each, until the white screen returns.

The last plugin you activated is the cause. Leave it off and check for an update or a replacement.

If you have WP-CLI access over SSH, this is faster. wp plugin deactivate --all turns everything off, and wp plugin activate name turns them back on one by one.

Step 4: Switch to a default theme

If plugins are not the problem, test the theme. In wp-content/themes/, rename your active theme's folder. WordPress will fall back to a default theme such as Twenty Twenty-Five, as long as one is installed. If none is installed, download one from wordpress.org and upload it first.

If the site loads with the default theme, your theme is the problem. Common reasons:

  • A recent edit to functions.php with a missing bracket or semicolon
  • A child theme that relies on a parent theme function that was removed in an update
  • A theme that does not support your current PHP version

If you edited functions.php recently, download the file and look at the bottom where new code usually goes. Removing the last snippet you added often fixes it on the spot.

Step 5: Raise the memory limit

When WordPress runs out of memory partway through a page, you can get a white screen instead of an error. The log line looks like Allowed memory size of 134217728 bytes exhausted.

Raise the limit in wp-config.php:

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

The first applies to normal pages, the second to the dashboard. Your host sets a ceiling, so if the change has no effect, ask them to raise PHP's memory_limit.

Be honest with yourself here. If a normal page needs more than 256 MB, something is badly wrong. A long page built in Elementor with dozens of widgets, or a plugin loading thousands of records on every request, is a common culprit. Raising memory gets you online. Fixing the heavy part keeps you online.

Step 6: Check for a stuck update and file problems

A few less common causes I still see regularly:

  • A stuck update. If an update was interrupted, a .maintenance file may be left in the site root. Delete it.
  • Corrupt core files. Download the same WordPress version, remove its wp-content folder, and upload the rest over your site.
  • Wrong file permissions. Folders should usually be 755 and files 644. A security plugin or a bad migration can set them wrongly, and PHP then cannot read the files.
  • A bad `.htaccess` file. Rename it to .htaccess-old, then in the dashboard go to Settings, Permalinks and click Save to create a fresh one.
  • Unexpected files or code. A white screen sometimes follows a hack that broke the site. If you find PHP files you do not recognise, stop and follow my guide to cleaning a hacked WordPress site.

Clean up when you are done

Once the site works, do three things before moving on:

  1. Set WP_DEBUG back to false, or remove the lines you added. The log file can grow large and can expose file paths if left public.
  2. Delete wp-content/debug.log.
  3. Take a fresh backup of the working site.

Then think about why it happened. In my experience the white screen rarely comes out of nowhere. Someone updated ten plugins at once, the host changed PHP version, or a snippet was pasted into the theme editor. A simple routine of backups, staged updates and fewer plugins prevents most of these. My WordPress maintenance checklist lays it out.

The short version

  • Check whether the whole site or one part is white.
  • Clear plugin, server, CDN and browser caches.
  • Enable WP_DEBUG_LOG and read wp-content/debug.log.
  • Rename the plugin or theme folder the log names, or test all plugins by renaming the plugins folder.
  • Raise memory only as a stopgap, then find what is using it.
  • Turn debugging off and back up the working site.

If you have tried these steps and the page is still blank, or the site takes payments and every minute counts, my website bug fixing service is set up for exactly this. You can also contact me with the URL and what changed before it broke.

Available for new projects

Need a hand with this?

Tell me what you need: a new site, a fix, a SaaS or an app. You'll get a clear plan and price within a day.

Start a project WhatsApp me