In short
The WordPress white screen of death happens when PHP hits a fatal error and cannot build the page. The most common causes are a faulty plugin or theme, a PHP version incompatibility and an exhausted memory limit. To fix it, turn on WP_DEBUG_LOG in wp-config.php, read the error in wp-content/debug.log, rename the offending plugin folder via FTP and raise WP_MEMORY_LIMIT if needed.
In this guide
- What does the white screen look like?
- Quick checks first
- Step 1: Make the error visible with WP_DEBUG
- Step 2: Disable plugins via FTP
- Step 3: Switch to a default theme
- Step 4: Check the memory limit
- Step 5: Check PHP version compatibility
- Other possible causes
- How to keep it from happening again
- Next step: a WordPress setup that handles errors better
The WordPress white screen of death (WSOD) is when your site or admin dashboard loads as a completely blank page with no content. Behind it there is almost always a PHP fatal error that stopped execution. The fix follows a clear order: make the error visible with WP_DEBUG, disable the responsible plugin or theme over FTP, and check the memory limit. This guide walks through each step with the exact commands and file paths.
What does the white screen look like?
The problem does not always show up as a pure white page. In current WordPress versions, when a fatal error is caught you see the message "There has been a critical error on this website", and an email with a recovery mode link is sent to the admin email address. Other variations include:
- The front end loads, but only wp-admin is blank.
- Only one specific page or post is blank (usually a shortcode or page builder widget).
- Your browser's developer tools show a 500 status code for the document.
If you received the recovery email, use it first: the link logs you into the dashboard and names the plugin or theme that caused the error. In recovery mode, only you, while logged in, see the faulty plugin paused; for visitors the site is still broken. So once you are in, deactivate or update the plugin, then exit recovery mode and check the site in a private window. If no email arrived (your site's outgoing email may not be working), continue with the steps below.
Quick checks first
- Rule out caching: Open the site in a private window. A caching plugin may have stored a broken page.
- Remember the last change: A plugin or theme update, a PHP version change or a functions.php edit is very often the direct cause.
- Check the server error log: The last lines on the Errors screen in cPanel or in the
error_logfile in your site's root directory usually tell you the error already.
Step 1: Make the error visible with WP_DEBUG
WP_DEBUG is the constant that makes WordPress report PHP errors. On a live site, the safest approach is to write errors to a log file instead of showing them to visitors. Open wp-config.php in your site's root directory with File Manager or FTP and add the following lines just before the "That's all, stop editing!" comment (or its translated equivalent in localized installs). If the file already contains a define( 'WP_DEBUG', false ); line, delete or change it; do not define the same constant twice.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );Load the site once more and download the wp-content/debug.log file. A typical entry looks like this:
PHP Fatal error: Uncaught Error: Call to undefined function ornek_fonksiyon()
in /home/kullanici/public_html/wp-content/plugins/ornek-eklenti/ornek.php:42The plugins/ornek-eklenti part of the path tells you the culprit. If the path starts with themes/, the problem is in the theme. If you see a line like this, the cause is the memory limit:
PHP Fatal error: Allowed memory size of 134217728 bytes exhaustedOnce the problem is fixed, set WP_DEBUG back to false and delete the debug.log file. It sits in a publicly accessible directory and can expose your server paths.
Step 2: Disable plugins via FTP
When you cannot get into the dashboard, you can disable plugins at the file level. WordPress automatically treats any plugin whose folder it cannot find as deactivated. If you do not know how to connect over FTP, see our guide on creating an FTP account and connecting with FileZilla; cPanel File Manager does the same job.
- Go to the
wp-contentdirectory and rename thepluginsfolder toplugins-kapali. - Reload the site. If it loads, the problem is in a plugin.
- Rename the folder back to
plugins. The plugins stay inactive; reactivate them one by one from the dashboard to find which one brings the white screen back. - If debug.log already points to the source of the error, renaming just that plugin's folder is enough.
If you have SSH access, WP-CLI is faster:
cd ~/public_html
wp plugin list --status=active
wp plugin deactivate ornek-eklenti
# If you don't know which one it is, deactivate them all:
wp plugin deactivate --allStep 3: Switch to a default theme
If the plugins turn out to be innocent, the theme is next. The most common scenario is a broken code snippet added to functions.php through the theme file editor.
- Under
wp-content/themes, rename your active theme's folder (for example,temam-kapali). - If a default theme such as Twenty Twenty-Four is installed, WordPress switches to it. If there is no default theme at all, download one from wordpress.org and upload it to the
themesfolder. - If the site loads, fix the theme file you edited last or the
functions.phpfile in your child theme, using the line number from debug.log.
The WP-CLI equivalent:
wp theme list
wp theme activate twentytwentyfourStep 4: Check the memory limit
If debug.log contains "Allowed memory size ... exhausted", PHP ran out of the memory allocated for that request. You can raise the limit WordPress uses in wp-config.php:
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );WP_MEMORY_LIMIT applies to the front end and WP_MAX_MEMORY_LIMIT to the admin dashboard. However, these values cannot exceed the server's PHP memory_limit setting. You can view and change the hosting-side limit on the PHP settings screen in cPanel. For a detailed walkthrough, see our guide on increasing the WordPress memory limit. Raising the limit is a temporary fix; if a plugin keeps eating memory, the real fix is to replace that plugin.
Step 5: Check PHP version compatibility
A PHP version upgrade is one of the sneakiest causes of the white screen: even if you did not make the change yourself, the site stops the moment an old plugin calls a function that was removed in the new version. Consider this possibility if debug.log shows a fatal error following Call to undefined function, Uncaught TypeError or Deprecated warnings.
- Check which PHP version your site runs on the PHP version selector screen in cPanel.
- If the problem started right after a version change, temporarily switch back to the previous version and confirm the site loads.
- Install the latest version of the plugin or theme causing the error; if the developer no longer supports it, find an alternative.
- After updating, switch back to a current, supported PHP version. Staying on old PHP versions is a security risk.
With WP-CLI you can also check the PHP version the site sees and the integrity of the WordPress core. The second command lists modified or missing core files, helping you spot a half-finished update or malware tampering:
wp --info
wp core verify-checksumsOther possible causes
| Symptom | Likely cause | Fix |
|---|---|---|
| White screen right after a PHP version upgrade | Old plugin or theme incompatible with the new PHP version | Temporarily roll back the PHP version in cPanel and update the plugin in question |
| "Briefly unavailable for scheduled maintenance" message or a blank page after an update | Interrupted update | Delete the .maintenance file in the root directory and run the update again |
| Every page returns 500 | Corrupted .htaccess | Rename the file, then re-save permalinks in the dashboard |
| Blank page after uploads or saves | Disk quota full | Check disk usage in cPanel and delete old backups |
| Only one page is blank | Shortcode or page builder widget | Restore the page from a revision and remove the widget |
How to keep it from happening again
- Try major updates in a test environment first. We explain how to set one up in our WordPress staging guide.
- Update plugins one at a time, not in bulk; if something breaks, you know the culprit right away.
- Instead of using the theme file editor, make changes in a child theme and upload them over FTP.
- Back up your files and database before updating.
- Replace plugins that have not been updated in a long time with alternatives.
Next step: a WordPress setup that handles errors better
A large share of white screens comes from insufficient memory and a hosting environment that is hard to maintain. Sunucu Atlas WordPress hosting plans come with RAM options from 1 GB to 4 GB, NVMe storage and the LiteSpeed web server; as your site grows, you can move up to a plan with more RAM.
The troubleshooting tools are ready too: with cPanel File Manager, FTP accounts and the PHP settings screen, you can carry out every step in this guide from the control panel. To create a test site, install WordPress in one click with WP Toolkit; you can use a subdomain for the second install.
If you use many plugins, a page builder or WooCommerce, choose WordPress plans with 2 GB of RAM or more so you do not hit the memory ceiling. If you get stuck, you can open a support ticket with the Sunucu Atlas team (support is provided in Turkish); attaching your debug.log output speeds up the diagnosis. If you are starting a new site, compare WordPress plans by RAM and storage and pick the one that fits your traffic.
Frequently asked questions
What causes the WordPress white screen of death?
It is usually a PHP fatal error in a plugin or theme, a PHP version incompatibility or an exhausted memory limit. The exact cause shows up in wp-content/debug.log or the server's error_log file.
I can't access the dashboard. How do I disable plugins?
Rename the wp-content/plugins folder using FTP or cPanel File Manager. WordPress then treats all plugins as deactivated; once the site loads, rename the folder back and reactivate the plugins one by one.
Why isn't the debug.log file being created?
Make sure the WP_DEBUG and WP_DEBUG_LOG lines are added before the stop editing comment and that the same constant is not defined a second time in the file. The wp-content folder also has to be writable.
Is "There has been a critical error on this website" the same as the white screen?
Yes. It is how current WordPress versions display the same PHP fatal error. You can use the recovery mode link sent to the admin email to log in and deactivate the faulty plugin.
Will raising the memory limit fix the problem for good?
It will if the limit really is too low, but if a plugin keeps consuming memory, the problem comes back quickly. In that case you need to replace the plugin or move to a plan with more RAM.