WordPress · Article 0142
How to Fix the WordPress White Screen of Death
The WordPress White Screen of Death (WSOD) occurs when a page displays as blank or fails to render normally. A PHP fatal error, incompatible plugin, broken theme, exhausted server resources, or another application failure may be responsible. The safest solution is to identify the actual error before changing your website.
What is the WordPress White Screen of Death?
The White Screen of Death is a symptom rather than a specific WordPress error code. A visitor may see an entirely white page, an incomplete page, or a blank administration screen. In some cases, the browser displays a critical-error message instead.
WordPress identifies PHP errors and database errors as possible causes of a blank screen. A fatal PHP error can stop page generation before WordPress finishes displaying the requested page. A database problem can also prevent the application from producing its normal output.
The first task is to determine whether the problem affects the entire website, only the WordPress dashboard, or a particular page. That distinction helps narrow down the responsible component.
Common causes of a WordPress white screen
1. Plugin compatibility problems
A recently installed or updated plugin may contain incompatible code, conflict with another plugin, or fail under the PHP version configured by the hosting provider. If the blank screen appeared immediately after a plugin update, investigate that plugin first.
2. A broken or incompatible theme
A theme can cause a fatal error through its PHP files, functions, templates, or compatibility requirements. A problem in the active theme may affect the entire frontend or only particular templates.
3. PHP fatal errors
Syntax errors, calls to unavailable functions, incompatible code, and missing dependencies can stop PHP execution. The hosting error log or WordPress debug log may identify the affected file and line number.
4. PHP memory exhaustion
A WordPress request may exceed the memory available to PHP. The server log may contain a message indicating that the allowed memory size was exhausted. Do not increase memory limits blindly; first identify the request or component consuming the resources.
5. PHP version incompatibility
A plugin or theme may require a different PHP version from the one currently configured by the host. Conversely, older website code may not work correctly after a PHP upgrade. Check the requirements of the affected software before changing the hosting version.
6. Damaged or incomplete files
An interrupted update, incomplete upload, or accidental file modification may leave WordPress core, plugin, or theme files incomplete. Compare the affected files with a clean copy of the same software version before replacing anything.
7. Database or hosting problems
A database connection failure, server resource limit, or hosting service interruption may prevent WordPress from generating a page. A completely blank page does not automatically mean that a plugin is responsible.
Step 1: Identify which pages are affected
Before changing files, check the scope of the problem.
- Open the homepage in a private or incognito browser window.
- Open one or two other public pages.
- Try accessing the WordPress login page at
/wp-login.php. - If you can log in, check whether the dashboard also displays a blank screen.
- Record the affected URLs, approximate failure time, browser message, and any HTTP status code.
If only one page is blank, investigate its template, shortcode, page-specific plugin, or content-related functionality. If the entire site and dashboard fail, investigate recent updates, PHP errors, and server logs.
Step 2: Check WordPress Recovery Mode
WordPress includes a Recovery Mode feature that can help administrators regain access after certain fatal errors caused by plugins or themes. When WordPress detects a supported fatal error, it may send a recovery email to the site administrator.
- Check the administrator email address configured for your WordPress website.
- Look for a WordPress technical-issue or recovery notification.
- Check the spam and junk folders if the message is missing.
- If the email contains a Recovery Mode link, use that link to access the dashboard.
- Review the error notice to identify the plugin or theme associated with the failure.
- Temporarily deactivate or correct the identified component, then test the affected page.
- Exit Recovery Mode after resolving the underlying problem and verify normal website operation.
Recovery Mode does not detect or repair every possible failure. For example, a server-level problem or an error outside the components it can isolate may require hosting logs or manual investigation.
Official reference: WordPress Recovery Mode documentation.
Step 3: Check the PHP and hosting error logs
The error log is often the most useful source of evidence when a WordPress page is blank. It may reveal a fatal error, memory exhaustion, incompatible function, or missing file.
- Sign in to your hosting control panel.
- Find the PHP error log, website error log, or server log section. Its location depends on the hosting provider.
- Open the log and locate entries matching the time when the blank page occurred.
- Look for terms such as
PHP Fatal error,Allowed memory size exhausted,Uncaught Error, orFailed opening required. - Record the affected file path and line number without sharing passwords, database credentials, or other secrets.
For example, an error mentioning a PHP file inside wp-content/plugins/ may point toward a plugin problem. An error inside the active theme directory may indicate a theme-related failure. Treat these paths as diagnostic clues, not automatic proof that the component is the only cause.
Step 4: Enable WordPress debug logging safely
If the hosting error log does not provide enough information, WordPress debugging can help record PHP errors. Use a staging environment whenever possible. If you must investigate a live site, keep error display disabled and restrict access to the resulting log file.
Open wp-config.php in your hosting File Manager or through a secure file transfer connection. Find the existing debugging constants, if present, and adjust them rather than defining them a second time.
The following settings are an example for temporary diagnostic logging:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
Place the settings before the line that says:
/* That's all, stop editing! Happy publishing. */
After reproducing the issue, inspect wp-content/debug.log if the configured logging path is the default and the file was successfully created. Match the timestamp to the failed request and investigate the first relevant fatal error.
Official reference: Debugging in WordPress.
Step 5: Test for a plugin conflict
If the logs or recent update history suggest a plugin conflict, isolate the suspected plugin. Do not immediately delete the entire plugins directory or remove plugin data from the database.
If you can access the dashboard
- Open Plugins → Installed Plugins.
- Deactivate the plugin most closely associated with the error.
- Reload the affected page.
- If the page works, investigate the plugin's update history, compatibility requirements, and available corrected version.
- If the problem remains, reactivate the plugin if appropriate and test the next evidence-based candidate.
If you cannot access the dashboard
- Back up the website files before making changes.
- Open the WordPress installation through the hosting File Manager or a secure FTP connection.
- Navigate to
wp-content/plugins/. - If the error log identifies a particular plugin, temporarily rename only that plugin's directory.
- Reload the affected page and check whether the error changes.
- If the site recovers, investigate the plugin before restoring its original directory name or installing a corrected version.
Renaming a plugin directory can deactivate that plugin. Its features may stop working temporarily, so check important forms, payment processes, membership functions, and other dependent features after recovery.
If there is no evidence identifying a particular plugin, avoid changing several plugin directories at once. A controlled test is easier to reverse and makes the result more useful.
Step 6: Check whether the active theme is responsible
If plugin testing does not explain the problem, investigate the active theme. This is especially important if the white screen began after installing, updating, or editing the theme.
- Check the PHP error log for a file path inside
wp-content/themes/. - If the dashboard is available, open Appearance → Themes.
- Temporarily activate an installed, compatible default WordPress theme.
- Reload the affected page and compare the result.
- If the website works with the default theme, investigate the original theme's code, version, and compatibility.
If the dashboard is unavailable, a hosting file manager may allow an administrator to rename the active theme directory. This is a more advanced recovery method: WordPress must have another usable theme available, and changing theme files can affect the website's appearance and functionality.
Do not delete the original theme. Keep a backup and restore the original directory name after testing if the test does not resolve the issue.
Step 7: Investigate PHP memory and version problems
If the log identifies memory exhaustion or a PHP compatibility error, check the hosting configuration before making changes.
- Memory exhaustion: Confirm the memory limit and identify which request or component consumes the available memory.
- PHP version: Compare the active PHP version with the requirements of WordPress, the active theme, and installed plugins.
- Recent PHP upgrade: Check whether the failure began immediately after the hosting provider changed PHP versions.
- Resource limits: Ask the hosting provider to inspect process limits, execution limits, and server resource usage when the logs indicate a hosting-level restriction.
Change PHP versions only after checking compatibility. If a memory adjustment is justified, use the hosting provider's supported configuration method and verify that the new limit is permitted by the hosting plan.
Step 8: Check WordPress core files and recent updates
If the logs point to a missing or damaged WordPress core file, investigate whether an update or file transfer was interrupted.
- Confirm the exact file and error message from the log.
- Check the installed WordPress version.
- Compare the affected core file with a clean copy of the same WordPress version.
- Use the official WordPress update or file-replacement procedure when a core file is confirmed to be damaged.
- Do not overwrite
wp-contentorwp-config.phpwith generic replacement files.
Replacing core files without identifying the problem can introduce additional issues. Preserve custom files and configuration, and take a complete backup before a repair.
How to verify that the white screen is fixed
A homepage that loads again does not necessarily mean the entire website has recovered. Test the functions that were affected and the workflows that depend on the repaired component.
- Open the homepage and several important internal pages.
- Check the WordPress login page and dashboard.
- Test navigation, search, forms, and other important interactive features.
- Check whether the browser receives the expected HTTP response rather than a server error.
- Review the PHP and WordPress logs for new fatal errors.
- Confirm that visitors cannot see debugging messages or private error details.
- Remove temporary diagnostic settings and secure or remove the debug log when troubleshooting is complete.
- Check the website again in a private browser window to reduce the chance of relying on a cached result.
Common mistakes to avoid
- Disabling every plugin immediately: Start with the component identified by the logs or recent changes whenever possible.
- Deleting the active theme: Preserve the original files and use a controlled test instead.
- Displaying PHP errors publicly: Keep debug display disabled on a live website.
- Changing PHP versions without checking compatibility: A version change can create additional plugin or theme failures.
- Increasing memory without diagnosing the cause: A resource limit may be a symptom of inefficient or faulty code.
- Replacing WordPress files without a backup: Preserve configuration and custom content before attempting repairs.
- Changing multiple settings simultaneously: This makes it difficult to determine which change resolved or worsened the issue.
- Assuming a recovered homepage means everything works: Test the dashboard and important website functions as well.
When to contact your hosting provider
Contact your hosting provider if the error logs are inaccessible, the PHP process repeatedly crashes, the server reports resource exhaustion, or the problem continues after the application-level checks.
Provide the support team with:
- The affected URL or URLs.
- The approximate failure time and time zone.
- The HTTP status code or exact browser message, if available.
- The relevant sanitized PHP error message or request identifier.
- Recent plugin, theme, WordPress, or PHP changes.
- The troubleshooting steps already completed and their results.
Never send your WordPress administrator password, hosting password, database password, or private authentication tokens in an ordinary support message.
Frequently asked questions
Does a white screen mean my WordPress website has been hacked?
No. A white screen can result from plugin conflicts, theme errors, PHP failures, database problems, or hosting resource limits. A security incident is one possibility, but the blank screen alone does not establish that the website has been compromised.
Can a plugin update cause the WordPress White Screen of Death?
Yes. An update may introduce incompatible code or a conflict with another component. Check the error logs and update history to identify whether the updated plugin is actually responsible.
Can I fix the white screen without accessing WordPress admin?
Often, yes. You may be able to use your hosting error logs, File Manager, or a secure FTP connection to investigate a suspected plugin or theme problem. Back up the website first and avoid changing unrelated files.
Where is the WordPress debug log?
When the standard WordPress debug logging configuration is used, the log is normally written to wp-content/debug.log. A custom path or hosting configuration may change its location.
Should I reinstall WordPress to fix a blank page?
Not as the first step. Reinstallation is unnecessary for many plugin, theme, PHP, and configuration problems. Identify the cause and replace files only when the evidence supports that action.
Why is only my WordPress dashboard blank?
A dashboard-only failure may involve an administrative plugin, a PHP error in an admin request, a JavaScript problem, or a resource limit. Compare the browser console and server logs for the failed dashboard request rather than assuming the public theme is responsible.
Related troubleshooting guides
- How to Fix a 403 Forbidden Error on Your Website
- How to Fix the WordPress Error Establishing a Database Connection
- How to Fix a 504 Gateway Timeout Error
- Browse all troubleshooting guides