
One of the most frightening messages a WordPress site owner can see is “There has been a critical error on this website.” The whole site — frontend and admin — refuses to load, and visitors get nothing but an error page. Do not panic: a WordPress critical error fix is almost always possible, and the culprit is usually a single misbehaving plugin or theme. In this 2026 guide, we explain what causes the critical error and walk you through seven proven steps to bring your site back online.
What Causes the WordPress Critical Error?
Since WordPress 5.2, a PHP “fatal error” no longer produces a blank white screen — instead, WordPress catches it and shows this critical-error message. A fatal error means PHP could not finish running, so the page never gets built. The most common triggers are:
- A faulty or outdated plugin: The number-one cause. A plugin update, a conflict between two plugins, or a plugin incompatible with your PHP version can crash the whole site.
- A broken theme: A bad update to your theme — or a typo in the theme’s
functions.php— produces the same fatal error. - PHP version incompatibility: Your host upgraded PHP (e.g. to PHP 8.x) and an old plugin or theme still uses code that no longer works.
- Exhausted PHP memory limit: A heavy plugin or theme runs out of the memory WordPress is allowed to use, triggering a fatal error.
- Corrupted core files: A failed WordPress core update can leave half-written files that crash on load.
- Malware or hacked files: Injected malicious code in theme or plugin files often causes fatal errors — if you suspect a hack, treat it as urgent.
How to Fix “There Has Been a Critical Error on This Website”
Work through these steps in order — most people fix it at step 2 or 3:
- Use WordPress Recovery Mode (easiest). Check the admin email address for a message from WordPress with the subject “Your site is experiencing a technical issue”. It contains a special recovery mode login link (valid for about a day) that lets you into the dashboard safely. The email usually names the plugin or theme that failed — deactivate it from there. Always check the spam folder too.
- Deactivate all plugins via FTP. If you cannot reach wp-admin, connect with FTP or your hosting file manager, go to
wp-content, and rename thepluginsfolder toplugins.deactivated. Reload your site — if it works, a plugin is the culprit. Rename the folder back, then rename each plugin subfolder one at a time until the error returns: that one is the offender. Delete it and find an alternative in our free WordPress plugins collection. - Switch to a default theme. Still broken? In
wp-content/themes, rename your active theme’s folder (e.g. add-old). WordPress will fall back to a bundled default theme like Twenty Twenty-Four. If the site loads, the theme is at fault — inspect itsfunctions.phpor reinstall it fresh. You can browse reliable alternatives in the KamiWeb themes library.

- Read the exact fatal error. Add these three lines to
wp-config.phpjust above “Happy blogging”:define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);Reload the broken page, then openwp-content/debug.log— the newest entry shows the exact file and line that crashed. A path containing a plugin or theme name tells you exactly where to look. Turn debugging off when you are done. - Increase the PHP memory limit. If the log says “Allowed memory size exhausted”, open
wp-config.phpand adddefine('WP_MEMORY_LIMIT', '256M');If that does not help, ask your host to raise it inphp.ini— some shared plans cap it lower. - Re-upload fresh WordPress core files. Download a clean WordPress copy and re-upload
wp-admin,wp-includesand the root files — skippingwp-contentand your existingwp-config.php. This repairs a botched core update without touching your content. - Check the PHP version. In your hosting panel, confirm your site runs a PHP version your theme and plugins support (PHP 8.1–8.3 for most modern setups in 2026). If the host recently upgraded PHP and your theme is old, either update the theme or temporarily roll PHP back while you find a compatible replacement. For more troubleshooting walkthroughs, visit the KamiWeb blog.
Conclusion
“There has been a critical error on this website” is rarely the end of the world: check the recovery-mode email first, deactivate plugins via FTP, test a default theme, read the debug log, and you will find the culprit in most cases. Prevent repeats by updating plugins and themes one at a time, keeping PHP current, and running regular backups. For free utilities to keep your site healthy, explore the KamiWeb free tools — and start from the KamiWeb homepage for everything in one place.
