How to Fix the WordPress White Screen of Death: A Step-by-Step Guide
A WordPress website that suddenly displays a completely blank white page can be stressful, especially when visitors cannot access your content and you cannot open the WordPress dashboard. This problem is commonly known as the WordPress White Screen of Death (WSOD).
The good news is that a blank screen does not automatically mean your website or its content has been lost. In many cases, the issue is related to a plugin, theme, PHP error, memory limit, or custom code. The safest way to resolve it is to identify the actual cause before making changes.
In this guide, you will learn how to troubleshoot the WordPress White Screen of Death step by step, even if your WordPress admin dashboard is unavailable. You will also learn how to use Recovery Mode, check PHP error logs, disable problematic plugins safely, and restore your website.
Important: Create a complete backup before changing website files, plugins, themes, or server settings. If possible, perform these steps on a staging website first.
What Is the WordPress White Screen of Death?
The WordPress White Screen of Death is an error in which a WordPress website displays a blank white page instead of its normal content.
Depending on the underlying issue, you may experience:
- A completely blank homepage.
- A blank WordPress admin dashboard.
- A white screen on individual posts or pages.
- A message saying, “There has been a critical error on this website.”
- A website that works on some pages but fails on others.
The problem can affect the front end, the administration area, or both.
A PHP fatal error or database-related problem can produce a blank screen. Therefore, it is important to identify the exact error instead of immediately reinstalling WordPress or deleting plugins.
Common Causes of the WordPress White Screen Error
Before troubleshooting, understand what might be causing the problem.
| Possible cause | What may happen |
|---|---|
| Plugin conflict | A plugin update or incompatible plugin causes a PHP error |
| Theme issue | The active theme or its custom code stops working |
| PHP compatibility | A plugin or theme does not support the server’s PHP version |
| Memory limit | A PHP process reaches its available memory limit |
| Custom code error | Incorrect PHP code in a theme or custom plugin causes a fatal error |
| Corrupted files | WordPress, plugin, or theme files are damaged or incomplete |
| Server problem | PHP processes, database connections, or hosting resources fail |
These are possible causes, not a diagnosis. The error log can help identify which component is responsible.
Step 1: Check Whether the Entire Website Is Down
Start with a few simple checks before editing anything.
- Open your website in a private or incognito browser window.
- Visit the homepage.
- Open a few different posts and pages.
- Try accessing
/wp-admin/. - Test the website from another device or internet connection if possible.
For example:
https://example.com/https://example.com/wp-admin/
Replace example.com with your actual domain.
What the results may indicate:
- If only one page is blank, the problem may be related to that page, its content, or a specific plugin feature.
- If the homepage and admin dashboard are both blank, investigate PHP errors, plugins, themes, and server logs.
- If you see a database connection error, troubleshoot the database connection rather than treating it as an ordinary white screen.
- If the website returns a 500 Internal Server Error, check the server’s PHP and web-server error logs.
Do not make multiple changes at this stage. First, identify which parts of the website are affected.
Step 2: Check Your WordPress Admin Email
WordPress includes a Recovery Mode feature that can help administrators access a website after certain fatal PHP errors.
When WordPress detects an eligible fatal error, it may send an email to the site’s administration email address.
Follow these steps:
- Open the email account associated with your WordPress website.
- Check the inbox and spam folder.
- Search for an email about a technical issue on your website.
- Open the message and review the error details.
- If a Recovery Mode link is provided, use that link to access your WordPress dashboard.
After logging in:
- Look for the error notice in the dashboard.
- Identify the plugin or theme mentioned in the notice.
- Temporarily deactivate the problematic component or update it if a compatible fix is available.
- Test the website.
- Exit Recovery Mode after resolving the issue.
Recovery Mode pauses the faulty component for your administrator session. It can help you troubleshoot without immediately disabling that component for all visitors.
What if you do not receive a Recovery Mode email?
Check your spam folder and confirm that your WordPress administration email address is correct. The email may also fail to arrive because of server email delivery problems.
If no recovery link is available, continue with the file-based troubleshooting steps below.
Official reference: WordPress Recovery Mode.
Step 3: Create a Complete Website Backup
Before changing plugins, themes, or configuration files, create a full backup.
A complete WordPress backup should include:
- Website files.
- The WordPress database.
- Themes and plugins.
- Uploaded images and media.
- Configuration files.
You can usually create a backup through your hosting control panel or a reliable WordPress backup solution.
Example backup process:
- Log in to your hosting account.
- Open the website’s backup section.
- Create a backup of the website files.
- Create a database backup.
- Download or securely store the backup.
- Confirm that the backup files are available before making changes.
If your hosting provider offers a staging environment, use it to test changes before applying them to the live website.
Do not assume that a backup is usable just because a backup process completed. Make sure you know where the backup is stored and how to restore it.
For more routine maintenance tasks, read our WordPress Maintenance Checklist.
Step 4: Enable WordPress Debug Logging
If you cannot identify the cause through Recovery Mode, WordPress debug logging can help reveal the PHP error.
WordPress provides debugging options that can record errors in a log file.
Access the wp-config.php File
You need access to your website files through one of these methods:
- Your hosting File Manager.
- An FTP client.
- A secure file-management tool provided by your hosting company.
Find the WordPress installation directory and locate:
wp-config.php
Before editing the file, download a copy so you can restore it if necessary.
Add the Debugging Configuration
Open wp-config.php and look for the following line:
/* That's all, stop editing! Happy publishing. */
Your installation may have slightly different wording.
Add the following configuration above that line:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );Important: If any of these constants already exist in the file, edit the existing definitions instead of adding duplicate definitions. Duplicate constant definitions can create additional warnings.
Save the file.
Locate the Debug Log
Visit the affected website page again to reproduce the problem, then open:
wp-content/debug.log
If WordPress can write to the log file, it may contain useful error details.
Look at the most recent entries and check for:
PHP Fatal errorAllowed memory size exhaustedUncaught ErrorCall to undefined functionFailed opening required- A plugin or theme directory in the error path
Example of an Error Log
The following is an illustrative example, not a real website error:
PHP Fatal error: Uncaught Error: Call to undefined function
in /wp-content/plugins/example-plugin/includes/file.phpThis example points toward a PHP error in the example-plugin directory.
The actual error message and file path on your website will determine what needs to be fixed.
Security reminder: Do not leave debugging enabled on a live website after troubleshooting. Error logs can contain sensitive file paths and other technical information. Keep public error display disabled, protect the log, and turn debugging off when finished.
For more details, see the official WordPress Debugging Documentation.
Step 5: Check the PHP Error Log
WordPress debug logging may not capture every server-level problem. Your hosting provider may also provide a separate PHP error log.
Look for options such as:
- PHP Error Log
- Errors
- Server Logs
- Error Logs
The exact location depends on your hosting control panel.
Review the entries recorded around the time your website stopped working.
For example:
- A fatal error mentioning a plugin directory may indicate a plugin problem.
- An error mentioning your active theme may indicate a theme issue.
- A memory exhaustion message may indicate a PHP memory problem.
- Database connection errors may require hosting or database troubleshooting.
If you do not understand the error, copy the relevant lines and share them with your hosting support team. Avoid sharing passwords, database credentials, or private configuration details.
Step 6: Troubleshoot Plugin Conflicts
Plugins are a common source of WordPress compatibility problems.
If you can access the dashboard, you can deactivate plugins through Plugins → Installed Plugins.
However, if the dashboard is unavailable, you may need to use your hosting File Manager or FTP.
Method A: Disable Plugins Through File Manager
- Open your hosting File Manager.
- Navigate to the WordPress installation directory.
- Open
wp-content. - Locate the
pluginsfolder. - Rename it to
plugins-disabled. - Open your website again.
If the website starts loading, a plugin may be responsible.
Method B: Identify the Problematic Plugin
If renaming the entire folder restores the website:
- Rename
plugins-disabledback toplugins. - Open the WordPress dashboard if it is available.
- Check the installed plugins.
- Activate plugins one at a time.
- Test the homepage and admin dashboard after each activation.
- Stop when the error returns.
The last activated plugin is a strong candidate, but confirm it using the error log and compatibility information.
If you cannot access the dashboard, you can temporarily rename an individual plugin’s folder inside wp-content/plugins to disable it. Use the plugin name and error-log path to identify the likely candidate.
Do not delete plugin folders or their database data while diagnosing the issue.
For a more detailed explanation of plugin troubleshooting, read our guide: How to Fix WordPress Plugin Conflicts Safely.
Step 7: Check for a Theme-Related Error
If disabling plugins does not resolve the issue, investigate the active WordPress theme.
A theme can cause a white screen because of:
- Incompatible PHP code.
- An incomplete theme update.
- Incorrect custom functions.
- Compatibility problems with WordPress or a plugin.
Change the Theme Through WordPress Dashboard
If you can access the dashboard:
- Open Appearance → Themes.
- Check whether a default WordPress theme is installed.
- Activate an available default theme.
- Open your website in another browser tab.
- Check whether the white screen disappears.
Change the Theme Through File Manager
If the dashboard is unavailable:
- Open File Manager or FTP.
- Navigate to
wp-content/themes. - Identify the active theme folder.
- Download a copy of the folder before changing it.
- Rename the active theme folder temporarily.
- Check whether WordPress can load an installed default theme.
Important: A default theme must already be installed for this fallback to work. Renaming a theme folder can affect the site’s appearance, so do not do this without a backup.
If the website loads after switching themes, investigate the original theme’s updates, PHP compatibility, custom code, and support documentation.
Step 8: Check the PHP Version and Memory Limit
WordPress, plugins, and themes rely on PHP to process website requests. A PHP compatibility issue or insufficient memory can cause serious errors.
Check Your PHP Version
Open your hosting control panel and find the PHP configuration section.
Depending on your hosting provider, it may be called:
- PHP Configuration
- PHP Manager
- Select PHP Version
- MultiPHP Manager
Check the PHP version currently assigned to your website.
Compare it with the requirements of your installed WordPress version, plugins, and theme.
Do not randomly switch between PHP versions. An unsupported or outdated version can create security and compatibility problems.
If the error began immediately after a PHP version change, discuss the issue with your hosting provider and test a compatible configuration on staging before changing the live website.
Check the PHP Memory Limit
A PHP memory error may appear in the debug log as:
Allowed memory size of ... bytes exhausted
This indicates that a PHP process has reached its available memory limit.
You can ask your hosting provider to check:
- The PHP memory limit.
- The WordPress memory limit.
- Whether the account has resource restrictions.
- Whether a plugin or theme is consuming unusually high memory.
WordPress also supports memory-related configuration in wp-config.php, but the effective limit depends on the hosting environment and PHP configuration.
Do not keep increasing memory without identifying why the website needs it. A poorly optimized plugin or inefficient process may still cause problems.
Step 9: Review Recent Code Changes
If the white screen appeared after editing a theme file, adding a custom code snippet, or installing custom functionality, review those changes.
Common locations include:
- The active theme’s
functions.php. - Custom plugins.
- Code snippets added through a plugin.
- Custom PHP files.
- Recently modified configuration files.
A missing bracket, incorrect function name, or incompatible PHP statement can cause a fatal error.
Use the error log to identify the file and line number whenever possible.
If you recently added code:
- Find the exact code change.
- Restore the previous version from your backup if needed.
- Test the website again.
- Correct the code in a staging environment.
- Apply the verified fix to the live website.
Avoid editing WordPress core files to fix a theme or plugin problem.
Step 10: Clear Website and Browser Caches
Sometimes a website may continue displaying an old error page after the underlying problem has been fixed.
Clear the relevant caches only after correcting the actual issue.
Check these areas:
- Your browser cache.
- Your WordPress caching plugin.
- Your hosting cache.
- Your CDN cache, if you use one.
Then open the website in a private browser window.
Remember that clearing cache does not repair a PHP fatal error. It only helps ensure that you are viewing the latest version of the website.
Step 11: Restore WordPress Access and Test Your Website
Once you have identified and corrected the underlying problem, perform a complete website check.
Use this verification checklist:
- Homepage loads correctly.
- WordPress admin dashboard opens.
- Posts and pages display normally.
- Images and media load correctly.
- Navigation menus work.
- Contact forms work.
- Important plugins are active.
- The website works on mobile devices.
- No new fatal errors appear in the logs.
- Debugging is disabled after testing.
- Temporary diagnostic files are secured or removed.
If you renamed plugin or theme folders during troubleshooting, restore their original names and confirm that the intended plugins and theme are active.
Keep the backup until you have confirmed that the website is working normally.
How to Prevent the WordPress White Screen of Death
You cannot eliminate every possible WordPress error, but good maintenance practices can reduce the risk.
1. Keep WordPress Updated
Install compatible WordPress core, theme, and plugin updates. Before major updates, create a backup and test them on staging where possible.
2. Avoid Unnecessary Plugins
Every additional plugin introduces another component that must remain compatible with your WordPress installation and PHP environment.
Remove plugins that are no longer needed, after checking whether they are responsible for any important website functionality.
3. Use Compatible Themes and Plugins
Check update history, documentation, support information, and compatibility requirements before installing a plugin or theme.
4. Maintain Regular Backups
Keep recent copies of both website files and the database. Make sure you know how to restore them.
5. Monitor PHP Errors
Review error logs when your website behaves unexpectedly. Fix recurring fatal errors rather than repeatedly hiding their symptoms.
6. Use a Staging Website
Test plugin updates, theme changes, custom code, and PHP configuration changes on staging before applying them to your live website.
7. Maintain Your Website Regularly
A consistent maintenance routine helps you identify outdated components, broken functionality, and compatibility problems before they become major issues.
For a practical routine, follow our WordPress Maintenance Checklist.
Frequently Asked Questions
1. What causes the WordPress White Screen of Death?
The WordPress White Screen of Death can be caused by a plugin conflict, theme error, PHP fatal error, insufficient memory, incompatible code, or server-related issue. Checking the PHP error log is one of the best ways to identify the actual cause.
2. Can I fix the WordPress white screen without accessing the dashboard?
Yes. You may be able to troubleshoot the issue through WordPress Recovery Mode, your hosting File Manager, FTP, or server error logs. Always create a backup before changing website files.
3. Will disabling all WordPress plugins delete my website content?
Disabling plugins does not normally delete your posts, pages, or media files. However, some website features may stop working temporarily. Avoid deleting plugin folders or database records during troubleshooting.
4. How do I know whether a plugin is causing the white screen?
Check the PHP error log for a plugin directory or file. You can also disable plugins temporarily and reactivate them one at a time while testing the website. If the error returns after activating a particular plugin, investigate that plugin further.
5. Does the WordPress White Screen of Death mean my website has been hacked?
Not necessarily. A blank screen is not proof of a security breach. Plugin errors, theme problems, PHP incompatibility, and memory limits are possible explanations. If you notice unfamiliar files, unexpected administrator accounts, or suspicious redirects, perform a separate security investigation.
6. Should I reinstall WordPress to fix a white screen?
Reinstalling WordPress should not be your first step. Identify the error and investigate plugins, themes, PHP configuration, and server logs first. Reinstallation may not fix a problem caused by a plugin, theme, or hosting configuration.
7. Why is my WordPress admin dashboard blank but the homepage works?
The problem may affect an admin-specific plugin, dashboard code, user permissions, or a PHP process used by the administration area. Check the error logs and test plugins carefully before changing the theme or reinstalling WordPress.
Final Thoughts
The WordPress White Screen of Death can look serious, but it does not always mean your website is permanently damaged. The safest solution is to identify the cause, create a backup, and troubleshoot one component at a time.
Start with Recovery Mode and error logs. If necessary, investigate plugins, themes, PHP compatibility, memory limits, and recent code changes. Avoid deleting files or reinstalling WordPress before understanding the problem.
With a careful troubleshooting process and regular website maintenance, you can restore your WordPress website while reducing the risk of causing additional problems.



