The WordPress “white screen of death” is when your website loads as a completely blank white page, or, on newer versions of WordPress, shows the message “There has been a critical error on this website.” It looks alarming, but in most cases your pages, posts and images are still safe. Something in the code has crashed, and WordPress has stopped loading rather than show a broken page.

The cause is almost always one of four things: a plugin, your theme, a PHP memory limit, or a PHP version change by your host. This guide walks through how to find which one, in the order a developer would check.

Before you start

Step 1: Check your email for a recovery mode link

Since WordPress 5.2, when a fatal error happens WordPress emails the site’s admin address with the subject “Your Site is Experiencing a Technical Issue”. The email usually names the plugin or theme that caused the crash and includes a special link to log in using recovery mode.

Click the link, log in, and deactivate the plugin or theme it names. Your site should come back straight away. Then look for an update to that plugin, or a replacement, before turning it back on. Check your spam folder if you can’t see the email.

Step 2: Clear every cache

If the problem has already been fixed but you still see a white page, you may be looking at a cached copy. Clear your browser cache, any caching plugin, your host’s cache, and your CDN (such as Cloudflare) if you use one.

Step 3: Turn on debugging to see the real error

A white screen hides the error message. To see it, open wp-config.php in the root of your site (using your host’s file manager or SFTP) and find the line that says WP_DEBUG. Replace it with:

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

Reload the broken page, then open the file wp-content/debug.log. Look at the most recent “Fatal error” line. It will usually include a file path such as /wp-content/plugins/plugin-name/ or /wp-content/themes/theme-name/, which tells you exactly what crashed.

When you have finished, set WP_DEBUG back to false and delete the log file, as it can reveal information about your site.

Step 4: Deactivate plugins without the dashboard

If you can’t get into wp-admin, you can switch plugins off from the file system:

  1. Open wp-content and rename the plugins folder to something like plugins-off. WordPress will deactivate every plugin.
  2. Reload your site. If it comes back, a plugin was the cause.
  3. Rename the folder back to plugins, then rename individual plugin folders one at a time, reloading after each, until you find the one that breaks the site.

If you have WP-CLI access, wp plugin deactivate --all does the same job in one command.

Step 5: Switch to a default theme

If plugins weren’t the problem, try 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 your site loads (it will look different), your theme or a recent theme update is the cause.

Step 6: Raise the PHP memory limit

Large page builders, WooCommerce and heavy plugins can run out of memory. Add this line to wp-config.php, above the line that says “That’s all, stop editing”:

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

Your host sets an upper limit, so if this has no effect, ask them to raise the PHP memory limit for your account.

Step 7: Check whether your host changed PHP version

Hosts regularly upgrade PHP, and older plugins and themes can crash on a newer version. Your control panel will show which PHP version your site uses. Switching back temporarily can confirm the cause, but don’t stay on an old, unsupported version: update or replace the plugin that can’t cope instead.

Step 8: Restore a backup from before it broke

If none of the above works and you have a backup from before the problem started, restoring it is often the fastest route. Be aware that anything added since that backup, such as orders, form entries or new posts, may be lost.

When to stop and call a developer

It is worth getting help rather than carrying on if:

Need your site back today?

Page Guard’s London-based team fixes white screens and critical errors. We diagnose the problem for free, one-off fixes start from £55, and if we can’t fix it you get a full refund. Get emergency WordPress support or call 020 3376 1925.

Tired of things breaking? Our WordPress maintenance plan tests updates before they reach your live site, so this doesn’t happen again.

Leave a Reply

Your email address will not be published. Required fields are marked *

This website uses Cookies

This website uses Cookies to improve your web experience.