Affiliate Disclosure: Some links on this page are affiliate links. If you purchase through our links, we may earn a commission at no extra cost to you.
Last updated: December 1, 2026 · Reading time: about 12 minutes
The WordPress white screen of death (WSOD) is a blank page caused by a fatal PHP error whose message is hidden. The usual causes are a faulty plugin, a broken theme, an exhausted PHP memory limit, a PHP version mismatch or damaged core files. To fix it, turn on WordPress debug logging, read the last fatal error, then disable plugins, switch to a default theme and raise the memory limit until the site loads.
Key takeaways
- The white screen is a hidden PHP error. Your content is safe in the database.
- Turn on
WP_DEBUG_LOGfirst. The log names the file that failed, and the folder in the path tells you if it is a plugin, a theme or WordPress core. - Plugins are the most frequent cause. Rename the
pluginsfolder to test them all at once. - If the log says “Allowed memory size exhausted”, raise
WP_MEMORY_LIMITto 256M and check the limit set by your host. - Keep a recent backup. It is the last resort and the best protection. See how to back up a WordPress site.

What is the WordPress white screen of death?
The WordPress white screen of death is an empty page shown when PHP stops on a fatal error and the server is set to hide error output. Visitors get nothing because PHP had nothing to send. The error is real and is normally recorded in a log file.
It can look different depending on your version and your host:
- A fully blank page on the front end, in the admin, or in both.
- The message “There has been a critical error on this website.” WordPress added this message, together with recovery mode emails, in version 5.2 (2019).
- A blank page on one URL only, for example a single post, the shop page or the checkout.
- A generic 500 Internal Server Error from the host.
All of these have the same family of causes, so the steps below apply to each.
What causes the white screen of death?
Most white screens come from plugins, themes or PHP resource limits. This table lists the typical causes, the clue to look for, and the fix. It is based on the troubleshooting advice in the official WordPress documentation and on the steps hosts such as WP Engine publish for WSOD.

Plugin conflict or a failed plugin update
A new plugin version can clash with another plugin, with your theme or with your PHP version. This is the most common trigger, especially right after an automatic update.
Theme errors
A theme update that did not finish, or a snippet pasted into functions.php with a missing bracket or semicolon, will stop PHP.
PHP memory exhausted
Page builders, shop plugins, large image processing and imports can need more memory than the server gives one request.
PHP version mismatch
Old code often fails on a newer PHP version. New code sometimes fails on an older one. A host upgrade can trigger this without you changing anything.
Damaged or missing core files
If an update was interrupted, WordPress can be left half updated. The log then points at a file in wp-admin or wp-includes.
Before you start: backup and file access
You need a way to edit files. That is either the File Manager in your hosting control panel or an SFTP client such as FileZilla. If the admin still opens, you can do some steps there, but a white screen often blocks it too.
If you can, make a copy of the site first. Your host may keep automatic backups. A plugin or manual backup is covered in our WordPress backup guide. Even downloading the wp-content folder and exporting the database gives you a safety net before you rename or edit files.
How do you fix the WordPress white screen of death?
Work in this order: read the error, disable plugins, switch the theme, raise memory, check PHP, replace core files, restore a backup. Each step takes a few minutes, and most sites are back by step 2 or 3.
Step 1: Turn on WordPress debug mode
Instead of guessing, ask WordPress what failed. Open wp-config.php in the root folder of your site and find the line define( 'WP_DEBUG', false );. Replace it with:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
This switches debugging on, writes errors to a file and keeps them hidden from visitors. Reload the broken page, then open wp-content/debug.log. These constants are documented on the official Debugging in WordPress page.

How to read the log
Find the last line that starts with “PHP Fatal error”. It usually contains a file path. The folder in that path tells you the cause:
/wp-content/plugins/plugin-name/: that plugin caused the error./wp-content/themes/theme-name/: your theme caused it.Allowed memory size of ... bytes exhausted: you reached the memory limit (see Step 4)./wp-includes/or/wp-admin/: core files are damaged (see Step 6).
When the problem is fixed, set WP_DEBUG back to false and delete debug.log. Leaving debugging on is not recommended on a live site.
Step 2: Deactivate all plugins
If the log names a plugin, you already know the cause. If not, test all plugins at once.
If you can still log in to the admin
Go to Plugins, select all, and choose Deactivate in the bulk actions menu. Reload the site. If it returns, reactivate the plugins one at a time, reloading after each. The one that brings the blank page back is the problem.
If you are locked out of the admin
In File Manager or SFTP, open wp-content and rename the plugins folder to plugins-off. WordPress will treat every plugin as missing and deactivate it. Reload the site. If it works, rename the folder back to plugins, then rename the folders of single plugins inside it, one by one, to find the faulty one.
When you find the plugin, check whether an update exists, whether it supports your WordPress and PHP versions, and whether it overlaps with another plugin. If it is not essential, replace it. Fewer plugins also means a faster site, as our guide on how to speed up a WordPress site explains.
Step 3: Switch to a default theme
If plugins are not the cause, test the theme.
- In
wp-content/themes, rename the folder of your active theme, for example by adding-off. - WordPress falls back to a default theme such as Twenty Twenty-Four if one is installed. If none is installed, upload one from the official theme directory.
- Reload the site.
If it loads, the theme is the cause. Restore a clean copy of the theme or contact its developer. If you edited functions.php recently, undo the last change first. A missing bracket there is a very common cause. When you choose a replacement, our article on how to choose a WordPress theme lists what to check.
Step 4: Raise the PHP memory limit
If the log says “Allowed memory size exhausted”, add define( 'WP_MEMORY_LIMIT', '256M' ); to wp-config.php. Put it above the line that says “That’s all, stop editing”. Reload the page.
If nothing changes, your host may enforce a lower limit that WordPress cannot override. Look for PHP settings in your hosting panel or ask support to raise it. If a site needs a very high limit just to load, find which plugin uses the memory rather than only raising the number.
Step 5: Check the PHP version
WordPress runs on PHP, and each PHP release removes old features. A plugin written years ago can fail on a modern version. Most hosts let you change the PHP version in the control panel. If the blank page began right after a host upgrade, switch back to the previous version and test, then update the incompatible plugins and move forward again. The current requirements are listed on the official WordPress requirements page.
Step 6: Replace corrupt core files
An interrupted update can leave core files broken. The log will then point to wp-admin or wp-includes.
- Download a fresh copy of WordPress from wordpress.org that matches your version.
- Unzip it on your computer.
- Upload the
wp-adminandwp-includesfolders and overwrite the old ones. Do not touchwp-contentorwp-config.php.
Your posts, pages, media and settings are stored in the database and in wp-content, so they are not affected.
Step 7: Reset .htaccess and check permissions
A damaged .htaccess file usually causes a 500 error, but it is quick to rule out. Rename it to .htaccess-old, reload the site, log in to the admin, go to Settings, Permalinks and click Save. WordPress writes a clean file.
Also check permissions. The common safe setup is 755 for folders and 644 for files. If PHP cannot read its own files, you may see a blank page.
Step 8: Use recovery mode
If you see “There has been a critical error on this website”, WordPress emails the admin address a special recovery link. Open it and log in. WordPress shows which plugin or theme caused the error and lets you deactivate it in a safe mode. Check your spam folder, and make sure the admin email in Settings, General is one you read. The feature is described in the official recovery mode documentation.
Step 9: Restore a backup
If nothing works, restore the latest backup that was made before the problem. After restoring, apply updates one at a time so you can see which one breaks the site.

White screen only on one page or in the admin only
A blank page on a single URL or in the admin only points to code that runs in just that place. The front end and the admin load different code, so a plugin function that runs only in the editor, or only on the checkout, can break that one part.
- Only the admin is blank: check admin-only plugins such as page builders, security plugins and dashboard widgets. Rename plugin folders one at a time.
- Only the home page is blank: check the theme’s front page template and any widget or shortcode on that page.
- Only one post is blank: a shortcode or a block on that post may fail. Open the post in the editor’s code view and remove recent additions.
- Only the shop or checkout is blank: check payment, shipping and shop add-on plugins and the PHP memory limit.
White screen versus “Error establishing a database connection”
These are different problems. A blank screen is a PHP error. “Error establishing a database connection” means WordPress cannot reach the database, usually because the credentials in wp-config.php are wrong or the database server is down. The first needs the debug log. The second needs a check of the database name, user, password and host values and a message to your host.
WordPress white screen on a multisite network
On a multisite network one plugin or theme can break one site or the whole network. Network-activated plugins affect every site. Test by deactivating network plugins first, then site plugins. The debug log works the same way and is shared by the network.
What not to do
- Do not reinstall WordPress from scratch before reading the log. You would lose time and might lose data.
- Do not delete the database or the
wp-contentfolder. - Do not leave debug display on, which can show file paths to visitors.
- Do not update everything at once while the site is broken.
- Do not install a “fix it” plugin from an unknown source. Fake repair tools are a known way to spread malware.
How can you prevent the white screen of death?
You prevent most white screens by updating carefully, keeping fewer plugins and always having a tested backup.

- Update with care. Take a backup, update one item at a time and check the site after each.
- Use a staging site. Many hosts include one. Test big updates there first.
- Keep fewer plugins. Each plugin is another place for a conflict. Delete the ones you do not use.
- Do not edit theme files directly. Use a child theme or a code snippets plugin that can switch off a broken snippet safely.
- Watch your site. A free uptime monitor emails you when the site goes blank, so you do not learn it from a visitor.
- Keep the site secure. Hacked sites can show blank pages. Follow our WordPress security basics.
- Match PHP to your plugins. Check compatibility before you change the PHP version.
Which hosts and tools help?
Good hosts give you a staging site, one-click backups, PHP version selection and access to error logs. These save the most time when something breaks. Plugins such as WP Crontrol or Query Monitor can help find slow or failing code, but they need a working admin. Check what your host offers before you buy extra tools.
Frequently asked questions
Will I lose my content because of the white screen of death?
No. Posts, pages and settings are stored in the database, which is separate from the files that usually cause the error. Fixing the files does not delete your content.
Why can I see the site but not the admin, or the other way around?
The front end and the admin load different code. A plugin or theme function that runs only in one of them can break just that part. The debug log still shows which file is responsible.
Can I fix the white screen without FTP?
Yes. Most hosts have a File Manager in the control panel that does the same job. If you cannot access files at all, ask your host to enable it or to restore a backup.
The white screen came back after I fixed it. Why?
The same plugin was probably reactivated, an automatic update ran again, or memory is still too low for a heavy page. Read the debug log again and turn off auto-updates for the problem plugin until it is fixed.
Is the white screen of death a sign that my site was hacked?
Most of the time it is not. It is far more often an update or compatibility problem. If you also see unknown admin users, strange redirects or files you did not upload, scan the site and follow a security checklist.
How long does it take to fix the white screen of death?
Often 10 to 30 minutes when you follow the steps in order. A restore from backup can take longer on a large site.
Does the white screen of death hurt SEO?
A short outage has little effect. If the site stays down for days, search engines may drop pages from results. Fix it quickly and check Google Search Console for crawl errors afterwards.
Sources and further reading
- WordPress.org documentation: Debugging in WordPress and Recovery Mode.
- WordPress.org: Requirements.
- WP Engine support: White Screen of Death Error (WSOD).
- Sucuri blog: Troubleshooting WordPress: How to Fix the White Screen of Death.
Summary
The WordPress white screen of death is a normal PHP error with the message hidden. Turn on the debug log, let it tell you whether the cause is a plugin, theme, memory limit or core file, and fix only that part. Keep a recent backup, update one thing at a time, and the next blank page will be a short job instead of an emergency.