How to Fix WordPress White Screen of Death: Step-by-Step Guide

Written by

in

TL;DR: To fix the WordPress White Screen of Death, enable debugging in wp-config.php to identify fatal errors, then systematically deactivate plugins and switch themes to isolate the conflict. If the issue persists, increase your PHP memory limit or restore a recent database backup.

Enable Debugging Mode

The first and most critical step is to uncover what is hiding behind the blank page. You need to enable WordPress debugging to see specific error messages. Open your site’s root directory using an FTP client or your hosting file manager. Locate the wp-config.php file and download a backup before making any changes. Search for the line that defines WP_DEBUG. It usually looks like define(‘WP_DEBUG’, false);. Change false to true. Immediately below that line, add define(‘WP_DEBUG_LOG’, true);. This tells WordPress to write errors to a debug.log file in the wp-content folder. You can also add define(‘WP_DEBUG_DISPLAY’, false); to prevent errors from showing on the screen, which keeps your site clean while you investigate.

If you want to dig deeper, check out our guide on 10 Science-Backed Tips to Boost Your Health Today.

Isolate Plugin Conflicts

Plugins are the most common cause of the white screen. Once debugging is active, navigate to the wp-content/plugins directory via your file manager. Rename the folder of every active plugin by adding a suffix like _old. For example, change “contact-form-7” to “contact-form-7_old”. This effectively deactivates all plugins without deleting them. Refresh your website. If the screen returns to normal, one of your plugins was the culprit. Rename the folders one by one, refreshing the site each time, until you find the specific plugin causing the crash. Once identified, update that plugin or replace it with an alternative.

Reset Theme Files

If plugins were not the issue, the problem likely lies with your theme. Navigate to wp-content/themes. Rename your current active theme folder to something like “theme_old”. WordPress will automatically fall back to a default theme like Twenty Twenty-Four. If the white screen disappears, your theme files are corrupted or incompatible. Re-upload a fresh copy of your theme from the official WordPress repository or your developer account. Ensure you do not overwrite the entire WordPress installation, as this can delete your database configurations.

Increase PHP Memory

Sometimes, the server runs out of memory, causing a fatal error. Open wp-config.php again. Add the line define(‘WP_MEMORY_LIMIT’, ‘256M’); before the line that says /* That’s all, stop editing! Happy publishing. */. This increases the memory allocated to WordPress. If you have access to your hosting control panel, you might also need to increase the PHP memory limit in the PHP options section for your hosting account.

FAQ

Q: Why is my screen white but the dashboard works?
A: This indicates a frontend-specific error, often caused by a plugin conflict on the public-facing pages or a corrupted theme file in the header or footer sections.

Q: Can I fix this without accessing my files?
A: It is very difficult. Most fixes require FTP or file manager access. However, if your host provides a “Safe Mode” or “Recovery Mode,” you might be able to deactivate plugins directly from the login screen.

Q: What if I cannot access the admin area at all?
A: You must use FTP or your hosting file manager to rename plugin folders or switch themes manually. If the site is completely inaccessible, restoring from a recent backup is your safest option.

Related Articles

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *