How to Fix WordPress White Screen of Death
You open your WordPress site and see a blank white page. Or you see the message “There has been a critical error on this website.” Either way, your site has crashed, and you need to find out why.
This problem is called the WordPress White Screen of Death (WSOD). It looks scary, but it is almost always fixable in minutes. This guide shows the causes and nine fixes, in the order that works best.
Quick answer: Check your admin email for a recovery link. If there is none, turn on the debug log to see the real error. Then deactivate your plugins, switch to a default theme, and raise the memory limit. Restore a backup if nothing else works.
What is the White Screen of Death?
The White Screen of Death is a blank page where your site should be. It can hit your whole site, only the dashboard, or only some pages.
WordPress runs on PHP. When PHP hits a fatal error, it stops running the page. If your server hides error messages, you see nothing at all. Since WordPress 5.2 (May 2019), WordPress often shows “There has been a critical error on this website” instead of a plain blank page. It is the same problem with a clearer message.
Common causes
- A plugin that is broken, outdated or clashes with another plugin.
- A theme update or a mistake in the theme’s functions.php file.
- The site runs out of PHP memory.
- A PHP version that does not match your theme or plugins.
- Corrupted WordPress core files after a failed update.
- Malware that changed your files.
Before you start
Take a backup if you can. Use your host’s backup tool or copy your files and database. You will also need a way to reach your files if the dashboard is down. Use FTP, or the File Manager in your hosting panel.
Change one thing at a time and test the site after each change. That is how you find the real cause.
Fix 1: Rule out the simple causes
Open your site in a private window or another browser. Clear your browser cache and your site cache. A caching plugin or server cache can keep showing a blank page after the problem is gone.
Also check your hosting provider’s status page. If the host has an outage, wait for it to end before you change anything.
Fix 2: Use the recovery email
When WordPress catches a fatal error, it emails the site admin. Look for a message titled “Your Site is Experiencing a Technical Issue.” Check spam too.
The email usually names the plugin or theme that crashed. It also has a special link that logs you in to Recovery Mode. In that mode, WordPress pauses the faulty plugin or theme for your session, so you can deactivate it safely.
No email? Try visiting yourdomain.com/wp-login.php?action=entered_recovery_mode, or move on to the next fix.
Fix 3: Turn on the debug log
The debug log shows the exact error and the file that caused it. Open wp-config.php in your site’s root folder. Add these lines above the line that says “That’s all, stop editing!”:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Reload the broken page once. Then open wp-content/debug.log and look for the newest line that starts with “PHP Fatal error.” It names the file and line number. If the path contains /plugins/, a plugin is the cause. If it contains /themes/, look at your theme.
When you finish, set WP_DEBUG back to false or remove the lines. Never leave debugging on for a live site. The official WordPress debugging guide explains each setting.
Fix 4: Deactivate your plugins
Plugins cause most white screens. If you can reach the dashboard, go to Plugins, select all, and choose Deactivate. Then activate them one at a time and reload the site after each one. The plugin that brings back the blank screen is the culprit.
If you cannot log in, use FTP or File Manager. Go to wp-content and rename the plugins folder to plugins-off. WordPress then deactivates every plugin. Rename the folder back, then rename single plugin folders to find the faulty one.
Once found, update the plugin, replace it, or contact its developer. Our guide on why you need WordPress plugins explains how to keep your list short and safe.
Fix 5: Switch to a default theme
If plugins are not the cause, test your theme. In the dashboard, go to Appearance > Themes and activate a default theme such as Twenty Twenty-Five.
Without dashboard access, go to wp-content/themes and rename your active theme’s folder. WordPress then falls back to a default theme, as long as one is installed.
If the site comes back, the problem is in your theme. Often a theme uses code that does not work with your PHP version. Update the theme or ask its developer for help. If you edited functions.php recently, undo that change. Make code changes in a child theme so they cannot break the parent theme.
Fix 6: Raise the PHP memory limit
A plugin or theme that needs more memory than your server allows can stop the page. To raise the limit, add this line to wp-config.php, above the “stop editing” comment:
define( 'WP_MEMORY_LIMIT', '256M' );
If the site loads, memory was the problem. Do not stop there. Find the plugin or theme that uses too much memory, because the issue will return. Some hosts ignore this setting, so you may need to ask them to raise the limit. See our full guide to increasing the PHP memory limit in WordPress.
Fix 7: Check your PHP version
A PHP update can break old plugins and themes. A very old PHP version can also break new ones. Log in to your hosting panel and find the PHP version setting. If the white screen began right after a PHP change, switch back to the previous version and test.
Then update or replace the plugin or theme that does not support the new version. Do not stay on an old PHP version for long, because it stops receiving security fixes.
Fix 8: Reinstall WordPress core files
A failed update or malware can damage core files. Download a fresh copy of WordPress from wordpress.org. Upload the new wp-admin and wp-includes folders over the old ones. Do not touch wp-content or wp-config.php, because they hold your content and settings.
If you see unknown files, or the site was hacked, scan it and clean it first. Read how to keep your WordPress website secure and compare WordPress security plugins.
Fix 9: Restore a backup or call your host
If nothing works and your site earns money, restore your latest backup. This is the fastest way back online. After restoring, copy the site to a test environment to find the root cause without risking visitors.
If you have no backup, contact your hosting provider. Send them the error from your debug log. Hosts can read server-level logs that you cannot see.
How to prevent the White Screen of Death
Most white screens are avoidable. Back up your site before every update. Update one plugin at a time instead of all at once. Test big changes on a local server or a staging copy first. If you want to set one up, follow our guide to install WordPress on localhost.
Remove plugins and themes you no longer use. Keep PHP on a version that your plugins support.
Does a white screen hurt SEO?
Search engines cannot read pages that do not load. A short outage rarely causes harm. A site that stays broken for days can lose pages from search results, so fix it quickly. After you fix it, check Google Search Console for crawl errors.
Final words
It is important to note that the WSoD can be caused by a variety of factors, so there is no fixed or universal solution that can deal with all types of issues.
Start with the recovery email and the debug log, because they point to the cause. Then work through plugins, theme, memory and PHP version. Keep a backup ready so you can recover fast.
Other errors? Read about the database connection error, the redirect loop error and the headers already sent warning. See our list of the top WordPress errors and their solutions.



