How to fix the WordPress white screen of death
The white screen of death is a blank page caused by a PHP error that WordPress is not showing you. In most cases you fix it by turning on error logging, then disabling the plugin or theme named in the log, or by raising the PHP memory limit.
The WordPress white screen of death (often shortened to WSOD) is when your site loads a completely blank white page instead of your content. There is no error message, no menu and no logo. It looks alarming, but it usually means one thing: PHP stopped running partway through loading the page, and WordPress was set up to hide the details.
What you see
The symptoms vary a little depending on what broke:
- The whole site is blank, front and back.
- The public site is blank but
/wp-admin/still works (or the other way round). - Only one page, post or product page is blank.
- A short message such as "There has been a critical error on this website" instead of a fully blank page.
The blank page often comes with an HTTP 500 status behind the scenes, but not always. Some setups return a normal 200 status with an empty page, which matters for monitoring (see below).
Why it matters
Visitors cannot buy, book or call you through a blank page, and many will not wait or come back. Search engines that keep seeing errors or empty pages may drop those pages from results until the site recovers. If the cause is a failed update or a broken plugin, it can also be a sign that something on the site is out of date, so it is worth finding out which part failed rather than just getting the page back.
How to check if your site has it
You can confirm this for free in a few minutes:
- Open the site in a private or incognito window, and on your phone using mobile data. This rules out your browser cache and your own network.
- Try the home page, one inner page and
/wp-admin/. Note which ones are blank. - Check the inbox of the admin email address set in WordPress. Since version 5.2, WordPress often sends a message titled something like "Your Site is Experiencing a Technical Issue". It names the plugin or theme at fault and includes a special recovery mode link.
- Use a free uptime checker, but be aware that a monitor that only looks for a 200 status can say "up" while your page is blank. Choose one that can also check for specific text on the page.
SiteMonday's week 29 uptime monitoring report covers this kind of check as part of a Monday service, if you would rather not test by hand.
Common causes
- A plugin or theme with a PHP fatal error, often right after an update.
- A plugin conflict after installing something new.
- The PHP memory limit being reached.
- A PHP version change at your host that an older plugin or theme cannot handle.
- A typo in
functions.phporwp-config.phpafter editing code by hand. - Corrupted or half uploaded files after an interrupted update.
How to fix it
You will need access to your files through your host's File Manager, SFTP or FTP. Take a backup of the site first if you can (your host may offer a one click copy). Then work through these steps in order and stop when the site comes back.
- Turn on the error log. Open
wp-config.phpin the main WordPress folder and add these lines above the comment that says to stop editing:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
- Read the log. Reload the blank page, then open
wp-content/debug.log. The last lines usually name a file path such aswp-content/plugins/some-plugin/.... That tells you the culprit. Your host's own error log (in the hosting control panel) may show the same thing. - Use the recovery link. If you got the technical issue email, click the recovery mode link, log in, and deactivate the plugin or theme it names.
- Disable all plugins. If you cannot log in, rename the
wp-content/pluginsfolder toplugins-off. If the site returns, rename it back, then reactivate plugins one at a time until the blank screen returns. The last one you turned on is the problem. - Switch the theme. Rename your active theme folder inside
wp-content/themes. WordPress will fall back to a default theme if one is installed. If the site loads, the theme is at fault. - Raise the memory limit. Add
define( 'WP_MEMORY_LIMIT', '256M' );towp-config.php. Some hosts cap this value, so you may need to ask them if it makes no difference. - Check the PHP version. In your hosting panel, look for a PHP version setting (in cPanel it is often called MultiPHP Manager, in other hosts it sits under Site Tools or a similar section). Try the previous version if the problem began after a host change.
- Restore a backup. If nothing works, restore the most recent backup from before the problem started. Be aware that this also removes anything added since that backup, such as new orders, posts or form entries, so ask your host first if the site takes orders or bookings. See backup restore untested for why you should know this works before you need it.
If a theme or plugin is the cause, update it, replace it, or contact its developer. A fatal error you cannot trace is a good moment to ask a developer for help. If your page shows a server error message instead of a blank page, the guide to the HTTP 500 error is also relevant.
Where things are on common hosts
Menu names change between hosts and versions, so look for these rather than exact labels:
- File access: File Manager, SFTP details, or a Site Tools or hosting dashboard.
- Error logs: a Logs or Metrics section, or the
debug.logfile described above. - PHP version and memory: a PHP settings or PHP manager page.
- Backups: a Backups or Restore page, which many managed WordPress hosts include.
Platform specific notes are in the WordPress guide.
How to confirm the fix worked
- Reload the home page, an inner page and
/wp-admin/in a private window. - Test the pages that matter most: contact form, checkout or booking.
- Open
debug.logagain and check that no new fatal errors appear. - Turn debugging off. Set
WP_DEBUGback tofalse(or remove those lines) and deletedebug.log, since a log file can reveal file paths and other details you do not want public.
How to stop it coming back
- Take a backup before every plugin, theme or WordPress update, and test that you can restore it.
- Update one thing at a time so you know what caused a problem.
- Remove plugins and themes you no longer use.
- If your host offers a staging copy, try big updates there first.
- Do not edit theme or core files on the live site without a backup.
- Keep the admin email address in WordPress current so the technical issue message reaches a real person.
- Use uptime monitoring that checks page content, not only the status code.
Step by step for your platform
- WordPress white screen of death on WordPress
- WordPress white screen of death on WooCommerce
- WordPress white screen of death on Elementor
- WordPress white screen of death on WP Engine
- WordPress white screen of death on cPanel
- WordPress white screen of death on SiteGround
- WordPress white screen of death on Bluehost
Questions
Is the WordPress white screen of death caused by a hack?
Usually not. Most cases come from a plugin, theme, memory or PHP version problem. If you see files you did not upload or changes you did not make, ask your host or a developer to check for malware.
Can I fix it if I cannot log in to WordPress?
Yes. You do not need the dashboard. Use your host's File Manager or SFTP to rename the plugins folder or theme folder and edit `wp-config.php`.
Will I lose my content?
Normally no. Your posts and pages live in the database, which a blank screen does not delete. Take a backup before changing files anyway.
Why is only my admin area or only one page blank?
The faulty code only runs in that part of the site. It might be an admin only plugin or a page builder or template used on that one page.
How long does it take to fix?
Often 10 to 30 minutes if the log names a plugin or theme. If you have to restore a backup or find a rarer cause, it can take longer.
Will Google penalize my site for a white screen?
A short outage is unlikely to cause lasting harm. Pages that stay broken for days may drop out of search results until they work again, so fix it quickly.