How to Fix the WordPress White Screen of Death, Step by Step
Fix the WordPress white screen of death step by step: recovery mode, the debug log, disabling plugins via SFTP or WP-CLI, memory, PHP and permissions.
By Devma Hosting Team · · 10 min read

The WordPress white screen of death is usually a fatal PHP error (sometimes a database error), most often caused by a plugin, a theme, a memory limit or a PHP version mismatch. To fix it, read the actual error first (from the recovery mode email or the debug log), then disable whatever the error points to. Working through the steps below in order finds the real cause instead of guessing.
Key takeaways
- The white screen of death (WSoD) is a blank page caused by a PHP or database error that the server hides from visitors on purpose.
- Since WordPress 5.2, a fatal error triggers a recovery mode email to the admin address. The email includes a link that lets you log in with the broken plugin or theme paused.
- Turning on
WP_DEBUG_LOGwithWP_DEBUG_DISPLAYset to false writes the exact error towp-content/debug.logwithout showing it to visitors. - If you cannot reach wp-admin, rename the
pluginsfolder over SFTP or runwp plugin deactivate --allwith WP-CLI to disable every plugin at once. - Only raise the memory limit if the log says memory was exhausted. Other errors need a different fix.
What is the WordPress white screen of death?
The official WordPress documentation describes it plainly: both PHP errors and database errors can show up as a blank white screen with no information, which the community calls the White Screen of Death (WordPress common errors).
The page is blank because a production server is set up to hide PHP errors from visitors. That is the right setting for security, but it means the useful information is in a log, not on the screen.
The usual causes are:
- A plugin or theme with a code error, or two extensions conflicting
- A newly activated theme (the official docs call this out specifically)
- PHP memory exhaustion
- PHP version incompatibility after a server upgrade
- A failed or interrupted update, sometimes leaving a
.maintenancefile behind - Incorrect file permissions, which can also make automatic updates fail
Sucuri's troubleshooting guide adds misconfigured .htaccess files and database errors to that list (Sucuri). The same guide offers a quick triage tip: if the front end is blank but wp-admin still works, a theme or plugin is the likely culprit.
Before you start: back up and get file access
You will be editing wp-config.php and renaming folders, so take a copy first. A full backup is ideal, but even downloading wp-config.php and the wp-content folder gives you a way back. Our guide on how to back up a WordPress site covers the options.
You also need a way into the files that does not depend on WordPress loading:
- SFTP with a client such as FileZilla or Cyberduck
- SSH, if your plan includes it, which also lets you use WP-CLI
- Your hosting panel's file manager, which works for small edits
Step 1: Use WordPress recovery mode
WordPress 5.2 introduced fatal error protection. When a fatal error happens, WordPress emails the site admin address with a secret link to recovery mode. In recovery mode, the plugin or theme causing the error is paused for you, so you can log in to the dashboard normally (Make WordPress Core, 2019).
- Search your inbox (and spam folder) for an email from your site about a technical issue.
- Click the recovery mode link and log in.
- WordPress shows which extension caused the error. Go to Plugins or Appearance > Themes and deactivate, update or replace it.
- When you are done, use the Exit Recovery Mode link in the admin bar.
There are two things to know. First, the pause applies only to your session. Visitors keep seeing an error until you actually deactivate or fix the extension. Second, the email often goes astray. It goes to the admin email in Settings > General, which may be an old address, and many sites have unreliable outgoing mail anyway. If your site struggles to send email, see WordPress not sending email? How to fix it with SMTP.
You can route future recovery emails to a different inbox by adding this to wp-config.php:
define( 'RECOVERY_MODE_EMAIL', 'you@example.com' );
No email at all? Move on to the debug log. It gives you the same information directly.
Step 2: Turn on the WordPress debug log
The debug log tells you exactly which file and line caused the white screen. Open wp-config.php in the site root and find the comment that starts with /* That's all, stop editing!. Add these lines above it. If any of these constants already exist, change them instead of adding duplicates.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
With WP_DEBUG_LOG set to true, WordPress sends PHP errors to wp-content/debug.log (Learn WordPress). Keeping WP_DEBUG_DISPLAY false stops errors appearing on your live pages, as DreamHost's guide also recommends (DreamHost).
Now reload the blank page, then open wp-content/debug.log over SFTP. Look at the most recent lines that begin with PHP Fatal error.
One security note: a log in the default location can usually be opened by anyone who types its URL. You can point it outside your public folder instead:
define( 'WP_DEBUG_LOG', '/home/youruser/logs/wp-errors.log' );
Also check your host's own PHP error log in the control panel. It catches errors that happen before WordPress gets far enough to write its own log. The official debugging handbook page covers the other debug constants.
How to read the error
The fatal error line names the file, and the file path tells you who is responsible.
| What the log says | What it usually means | Go to |
|---|---|---|
Path contains wp-content/plugins/plugin-name/ |
That plugin is failing | Step 3 |
Path contains wp-content/themes/theme-name/ |
Your theme is failing | Step 3 |
Allowed memory size of ... bytes exhausted |
PHP ran out of memory | Step 4 |
Call to undefined function or deprecated syntax after a PHP change |
Code not compatible with your PHP version | Step 5 |
syntax error, unexpected ... |
A recent code edit broke a file | Undo that edit |
Permission denied or failed to open stream |
WordPress cannot read a file | Step 6 |
Step 3: Disable plugins and themes over SFTP or WP-CLI
If the log points to a plugin or theme, or you have no log at all, disabling extensions is the next move. Always rename rather than delete, so you can bring things back.
Disable plugins over SFTP
- Go to
wp-content/and rename thepluginsfolder toplugins-off. - Reload the site. WordPress cannot find the plugins, so it deactivates them.
- If the site comes back, a plugin was the cause. Rename the folder back to
plugins. - Now rename individual plugin folders one at a time (for example
woocommercetowoocommerce-off). Reload after each one until the white screen returns or disappears.
If the log already named a plugin, just rename that one folder.
Disable the theme over SFTP
Rename your active theme's folder in wp-content/themes/. WordPress will fall back to a default theme, but only if one is installed, such as Twenty Twenty-Five. If no default theme is present, upload one from WordPress.org first. The official docs note that on WordPress 5.8 and below you should use Twenty Twenty-One, because Twenty Twenty-Two needs 5.9 or newer (WordPress common errors).
Disable plugins and themes with WP-CLI
If you have SSH access, WP-CLI is faster. Run these commands from the WordPress root folder. The --skip-plugins --skip-themes flags stop WP-CLI from loading the broken code and crashing itself.
# Deactivate every plugin
wp plugin deactivate --all --skip-plugins --skip-themes
# Or deactivate one plugin by its folder name
wp plugin deactivate plugin-slug --skip-plugins --skip-themes
# Switch to a default theme (it must be installed)
wp theme activate twentytwentyfive --skip-plugins --skip-themes
# Check core files against the official checksums
wp core verify-checksums --skip-plugins --skip-themes
If verify-checksums reports modified or missing core files, reinstall core with wp core download --force --skip-content. This replaces core files without touching wp-content.
Check mu-plugins and the .maintenance file
Renaming plugins does not touch wp-content/mu-plugins. Must-use plugins load automatically, and some hosts and tools put code there. If nothing else works, rename the files in that folder one at a time.
Also look in the site root for a file called .maintenance. An interrupted update can leave it behind, which keeps the site blank or in maintenance mode until you delete it. Your SFTP client may hide dotfiles, so turn on "show hidden files".
Step 4: Raise the PHP memory limit
Only do this if the log says Allowed memory size ... exhausted. Any other fatal error means memory is not your problem.
By default, WordPress tries to give PHP 40MB on a single site and 64MB on multisite through WP_MEMORY_LIMIT. Admin screens get a higher ceiling through WP_MAX_MEMORY_LIMIT, which falls back to 256MB (wp-config.php documentation). To raise the front-end limit, add this above the "stop editing" line:
define( 'WP_MEMORY_LIMIT', '256M' );
The catch is that WordPress cannot go above the server's PHP memory_limit. The lower of the two values wins. Once the site loads, check Tools > Site Health > Info > Server to see the real PHP memory limit.
If the server limit is too low, you have three options: raise memory_limit in your hosting panel's PHP settings, raise it in php.ini or .user.ini, or ask your host. Plugins that promise to "increase memory" generally just add the same define line for you, so they cannot beat the server cap either.
If a site keeps hitting the ceiling, a plugin is often doing too much work on each request. Our guide to a slow WordPress site shows how to track that down.
Step 5: Check PHP version compatibility
A PHP upgrade is a classic trigger. Your host moves to a newer version, or you switch it in the panel, and an old plugin or theme uses code that the new version no longer accepts. The log will name the file that failed.
To recover:
- In your hosting panel, switch the site back to the PHP version it was running before.
- Confirm the site loads.
- Update the failing plugin or theme, or replace it if it is abandoned.
- Switch to the newer PHP version again and test.
WordPress publishes its recommended and minimum PHP versions on the official requirements page. The PHP compatibility table shows which PHP versions each WordPress release supports. Both change over time, so check them rather than relying on a number from an old tutorial. Core support for a new PHP release does not guarantee that every plugin you use supports it too.
Step 6: Fix broken file permissions and ownership
Wrong permissions can stop PHP reading files. The official docs note they can also make automatic updates fail, which can leave a white screen behind. The widely used baseline from the WordPress file permissions guide is:
| Item | Permission |
|---|---|
| Folders | 755 |
| Files | 644 |
wp-config.php |
Tighter, such as 440, 400 or 600 (advice varies by host) |
| Anything | Never 777 |
Over SSH, from the WordPress root:
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
Ownership matters as much as the numbers. Files uploaded as root over SSH, or copied during a move between servers, can end up owned by the wrong user, so PHP cannot read or update them. The correct owner depends on how your server runs PHP, so ask your host before running chown. If you have just moved hosts, our WordPress migration guide covers what to check after the move.
What to do after the site is back
- Turn debugging off. Set
WP_DEBUGback to false, or remove the lines you added. - Delete
debug.log. It can reveal file paths and plugin details to anyone who finds it. - Clear every cache. Purge your caching plugin, server cache and CDN, or you may keep seeing the old blank page.
- Re-enable plugins one at a time if you disabled them all, and test after each.
- Update or replace the culprit. Check its changelog and support forum for a known fix.
Common mistakes that keep the screen white
- Setting
WP_DEBUG_DISPLAYto true on a live site, which shows errors to every visitor - Raising memory again and again without reading the log
- Deleting plugin folders instead of renaming them, which forces you to reinstall them and loses anything stored inside those folders
- Forgetting
mu-plugins, the.maintenancefile or the cache - Leaving a stray space or blank line before
<?phpinwp-config.phporfunctions.phpafter an edit - Setting permissions to 777 to "make it work", which creates a security hole
- Assuming the recovery email never arrived when it went to spam or an outdated admin address
Many of these overlap with good security hygiene. Our WordPress security checklist for 2026 covers permissions, updates and backups in more depth.
Keep a blank screen from happening again
Most white screens follow a change: an update, a new plugin, a theme switch or a PHP upgrade. Testing updates on a staging copy, keeping regular backups and watching your error log turn a crisis into a much quicker fix.
If you would rather not handle this yourself, our Website Maintenance page explains how we can help keep a WordPress site updated and backed up. If you are choosing a host, look for a plan with SFTP, SSH access and an easy way to switch PHP versions, so every step in this guide is within reach when you need it. You can see what Devma Hosting's WordPress Hosting plans include before you decide.
Frequently asked questions
Why is my WordPress site showing a blank white page with no error message?
Live servers are normally configured to hide PHP errors from visitors, which is the correct and safe setting. When a fatal PHP error or a database error stops the page from rendering, you get nothing at all instead of a message. The real error is still recorded, so enable the WordPress debug log or check your host's PHP error log to see it.
Why is my debug.log file empty or missing?
WP_DEBUG_LOG only works when WP_DEBUG is also set to true, and the log is only created once an error actually happens after you save the change. Make sure you edited the wp-config.php in the right site folder and placed the lines above the "stop editing" comment. If the error occurs before WordPress loads, it will appear in your host's PHP error log instead.
Why do I still see a white screen after increasing the memory limit?
There are three common reasons. Your host's PHP memory_limit may be lower than the value you set, so the higher number is ignored. The real cause may be a different fatal error that has nothing to do with memory. Or you may be looking at a cached copy of the blank page. Check the debug log, confirm the effective limit in Site Health, and clear your caches.
Can the white screen of death delete my posts or content?
No. The white screen is a symptom of code failing to run, and your posts, pages and settings stay in the database while the site is blank. The risk comes from rushed fixes, such as deleting folders or editing files without a backup. Rename instead of deleting and take a backup first, and your content stays safe.
