WordPress showing a white screen or critical error? Here's how to fix it
Updated · 4 min read · by the Codevo team
Short answer
A WordPress white screen or "critical error" is almost always a PHP fatal error, usually caused by a plugin or theme conflict, a low PHP memory limit, or a PHP version change on your host. Check your admin email for the recovery mode link, or rename the plugins folder via File Manager to get back in.
What you might be seeing
- ✗The whole site is a completely blank white page
- ✗I see "There has been a critical error on this website"
- ✗The front of the site works but wp-admin is blank
- ✗It broke right after I updated a plugin, a theme or WordPress itself
- ✗The site says "Briefly unavailable for scheduled maintenance" and never comes back
Common causes
Roughly in order of how often we see them.
- 01
Plugin or theme conflict
One plugin calls a function that doesn't exist, or two plugins load the same library in different versions, and PHP stops with a fatal error. This is the most common cause, especially right after an update.
- 02
PHP memory limit reached
Page builders, WooCommerce and backup plugins can use more memory than the limit set by the host or in wp-config.php. When PHP runs out, it stops and you get a blank page or an "Allowed memory size exhausted" error in the log.
- 03
PHP version changed by the host
Hosts regularly move accounts to newer PHP versions (for example 7.4 to 8.x). Older themes and plugins that use removed functions then throw fatal errors, even though you didn't change anything.
- 04
Failed or interrupted auto-update
If a background update times out, WordPress can be left with half-copied files or a stuck .maintenance file in the site's root folder. The site then shows a maintenance message or breaks completely.
- 05
Corrupted or missing core files
A bad upload, a disk issue on the server or malware can damage files in wp-admin or wp-includes. WordPress can't load without them.
- 06
Errors in wp-config.php or functions.php
A missing semicolon or a stray space before <?php in wp-config.php or the theme's functions.php is enough to break the whole site. This often happens after someone pastes a code snippet from a tutorial.
What you can check yourself
Safe steps you can try before calling anyone. Take a backup before changing anything.
- 1
Check your admin email for the recovery mode link
Since WordPress 5.2, a fatal error triggers an email to the site's admin address with the subject "Your Site is Experiencing a Technical Issue". It names the plugin or theme at fault and gives a recovery mode link. Use it to log in and deactivate that plugin from Plugins → Installed Plugins. Check spam too.
- 2
Take a backup before you touch any files
In cPanel or hPanel, use the Backups section (or JetBackup) to download a full backup of files and the database. Everything below involves changing files, so have a copy you can restore.
- 3
Disable all plugins by renaming the folder
Open File Manager in your hosting panel, go to public_html/wp-content and rename the plugins folder to plugins-off. If the site loads, a plugin is the cause. Rename it back to plugins, then go to Plugins → Installed Plugins and reactivate them one by one until the error returns.
- 4
Switch to a default theme
If plugins weren't the problem, go to wp-content/themes and rename your active theme's folder. WordPress falls back to a default theme like Twenty Twenty-Four if it's installed. If the site loads, the theme is the cause.
- 5
Check the PHP version in your hosting panel
In cPanel look for "Select PHP Version" or "MultiPHP Manager", in hPanel go to Advanced → PHP Configuration. If the version changed recently and the site broke at the same time, switching back temporarily can bring the site up while the code gets fixed.
- 6
Remove a stuck .maintenance file
If the site is stuck on "Briefly unavailable for scheduled maintenance", look in public_html for a file named .maintenance (turn on "show hidden files" in File Manager) and delete it.
When to call a developer
- →Renaming the plugins folder and switching themes didn't fix it
- →You need WP_DEBUG turned on but aren't comfortable editing wp-config.php
- →The site only works on an old PHP version that your host is about to remove
- →You find files in wp-includes or wp-admin you don't recognise, which can mean the site is hacked
- →It's an online store and orders are being lost while the site is down
How we fix it
- [1]We take a full backup of files and the database before we change anything.
- [2]We turn on debugging in wp-config.php with WP_DEBUG and WP_DEBUG_LOG set to true and WP_DEBUG_DISPLAY set to false, so the error goes into wp-content/debug.log instead of showing to visitors.
- [3]We read that log and the server's PHP error log to find the exact file and line causing the fatal error, rather than disabling things at random.
- [4]We fix the cause: update or replace the broken plugin, patch theme code for the current PHP version, raise WP_MEMORY_LIMIT if memory is genuinely the problem, or replace damaged core files with a clean copy of the same WordPress version.
- [5]We test the main pages, the admin area, forms and checkout, then switch debugging off again.
- [6]If updates keep breaking the site, we suggest a staging copy so updates get tested before they go live.
Want the details on how we handle bug fixes and maintenance? See our bug fixing service.
Questions people ask
Q.01What does "There has been a critical error on this website" mean?
It's WordPress's message for a PHP fatal error. Something in a plugin, theme or core file crashed. WordPress also emails the admin address with the name of the faulty plugin or theme and a recovery mode link.
Q.02I didn't get the recovery mode email. What now?
Check spam, and make sure the admin email under Settings → General is one you can access. Many hosts also block PHP mail, so the email may never be sent. In that case, rename the plugins folder in File Manager to get back into the admin.
Q.03Will renaming the plugins folder delete my plugin settings?
No. Plugin settings are stored in the database, not in the plugin folder. Renaming the folder only deactivates the plugins. When you rename it back and reactivate them, the settings are still there.
Q.04How do I increase the PHP memory limit in WordPress?
Add define( 'WP_MEMORY_LIMIT', '256M' ); to wp-config.php above the line that says "That's all, stop editing". This only works up to the limit your host allows, which you can check under the PHP settings in cPanel or hPanel. Take a backup of wp-config.php first.
Q.05Why did my WordPress site break when I didn't change anything?
Something changed even if you didn't do it. Plugins and WordPress can auto-update in the background, and hosts upgrade PHP versions across their servers. Check the PHP version in your panel and the last-updated dates in Plugins → Installed Plugins.