The short answer
WordPress shows "There has been a critical error on this website" when a plugin, a theme, the memory limit or a PHP version change stops the page with a fatal error. Your content is untouched. Load yourdomain.com/wp-login.php and WordPress emails the admin a recovery-mode link. No email? Rename wp-content/plugins, then the theme, then read wp-content/debug.log.
What to know
- The message means WordPress caught a fatal PHP error. Your posts, pages and settings are still there.
- WordPress emails the admin address a recovery-mode link, but only when the error hits the login page or the dashboard. Load yourdomain.com/wp-login.php once, then check spam.
- No email: rename wp-content/plugins to plugins_old, then the active theme's folder, in File Manager or SFTP.
- PHP 8.2 gets security fixes until 31 December 2026, and a plugin written for PHP 7 can stop a page on PHP 8.
- Turn WP_DEBUG back off once you have read wp-content/debug.log.
The screen says "There has been a critical error on this website," or it says nothing and stays white. WordPress hit a fatal PHP error and stopped drawing the page, and it did not delete your content. The cause is one plugin, one theme, a memory limit or a PHP change, and the questions below find which. If you would rather have someone else on it, call (425) 314-1415.
Find your cause
Fix the critical error on your WordPress site
Pick what you see, and what you can open, and get the steps in the order to try them. Your answers stay in your browser.
What is on the screen?
Public pages show "There has been a critical error on this website." and a link that says "Learn more about troubleshooting WordPress." The login page and the dashboard add "Please check your site admin email inbox for instructions."
What "There has been a critical error on this website" means
WordPress 5.2 added fatal error protection. When a plugin or theme throws a fatal PHP error, WordPress catches it and shows the message you are looking at. If the error hit the login page or the dashboard, it also emails the site's admin address a secret link to recovery mode, with your site's name in brackets and then "Your Site is Experiencing a Technical Issue" in the subject. A fault on a public page sends no email, so the wording on the screen depends on where the error struck.
| What the screen says | What happened | Start here |
|---|---|---|
| There has been a critical error on this website. Learn more about troubleshooting WordPress. | WordPress caught a fatal error while building a public page. Nothing was emailed for a public page | Load yourdomain.com/wp-login.php once for the email, or rename wp-content/plugins |
| There has been a critical error on this website. Please check your site admin email inbox for instructions. | WordPress caught the error on the login page or the dashboard and emailed the admin address a recovery link, unless it already sent one in the last day | The email, then the recovery-mode link |
| There has been a critical error on this website, putting it in recovery mode. | You are inside recovery mode: WordPress paused the failing plugin or theme for your browser only | The Plugins or Themes screen, to deactivate or fix the one listed |
| A blank white page with no text | A PHP error or a database error that printed nothing | Rename wp-content/plugins, then read the debug log |
Recovery mode handles plugins and themes only. A fault in WordPress's own files gets the message and no pause. The "Learn more about troubleshooting WordPress" link goes to a general page that every WordPress site shows, so it cannot name the plugin that broke yours.
A blank white page is the same family of failure. WordPress's error guide says both PHP errors and database errors can show up as a white screen with no information. The first fixes are the same, so the questions above treat the two together.
What causes the critical error
WordPress's developer documentation names five causes: plugin conflicts, theme compatibility problems, an incompatible PHP version, the memory limit and corrupted WordPress files.
| Cause | What you will see | The fix |
|---|---|---|
| Plugin update, new plugin or conflict | It broke within minutes of an update or an install, and the recovery email names the plugin | The recovery link, or rename that plugin's folder |
| Theme update or edit | It broke after a theme update or after someone edited functions.php, and the email names the theme | Rename the theme's folder |
| PHP version change | It broke the day the PHP version changed, and the debug log names a function PHP no longer has | Roll PHP back, then update or replace the plugin |
| Memory limit | The debug log says Allowed memory size ... exhausted | Raise WP_MEMORY_LIMIT, or ask the host for a higher PHP limit |
| Damaged WordPress files | A failed update or a bad file save, and the log names a file in wp-admin or wp-includes | Restore a backup |
How to fix it, easiest step first
- 01Get the email. Load yourdomain.com/wp-login.php once, then search the admin address's inbox for "Your Site is Experiencing a Technical Issue," spam folder included. The address sits under Settings, General, Administration Email Address, or it is the one entered when WordPress was installed. By default WordPress sends this email at most once a day.
- 02Use the recovery link. Log in through it, read the notice that lists the paused plugin or theme, and deactivate it. Click Exit Recovery Mode in the admin bar, then reload the public site in a private window.
- 03Rename the plugins folder. In File Manager or SFTP, rename wp-content/plugins to plugins_old and reload. If the site loads, a plugin did it, and you find which by switching them back on one at a time.
- 04Switch the theme. Still broken? Rename the active theme's folder in wp-content/themes. WordPress falls back to a default theme if a Twenty-numbered one is installed.
- 05Turn on the debug log. Three lines in wp-config.php make WordPress write the failing file to wp-content/debug.log. The next section has them.
- 06Raise the memory limit if the log says Allowed memory size was exhausted.
- 07Roll PHP back in the hosting panel if the break lines up with a PHP version change.
- 08Restore a backup from before the break, files and database from the same date.
Turn on the debug log and read it
Open wp-config.php in the host's file editor. Above the comment that begins "That's all, stop editing," add these three lines exactly as written:
- define( 'WP_DEBUG', true );
- define( 'WP_DEBUG_LOG', true );
- define( 'WP_DEBUG_DISPLAY', false );
Line one switches debugging on, line two writes every error to wp-content/debug.log, and line three keeps errors off the screen your visitors see. If wp-config.php already contains a WP_DEBUG line, change that one to true rather than adding a second. WordPress's guide warns that true and false must not sit inside quotation marks, because the string 'false' counts as true.
Reload the broken page once, then open wp-content/debug.log and scroll to the bottom. Find the last line that begins PHP Fatal error. The file path in it tells you where to aim.
| What the line says | What it means | What to do |
|---|---|---|
| A path that starts wp-content/plugins/ and a folder name | That plugin threw the error | Rename that plugin's folder |
| A path that starts wp-content/themes/ and a folder name | The theme, or a child theme, threw it | Rename the theme folder |
| Allowed memory size of ... bytes exhausted | PHP ran out of memory | Raise WP_MEMORY_LIMIT |
| Call to undefined function, with the name of a function | Old code calling a function the running PHP version does not have | Roll PHP back, then update the plugin |
| A path inside wp-admin or wp-includes | WordPress's own files are damaged | Restore a backup |
When you finish, set WP_DEBUG back to false or delete the three lines, and delete wp-content/debug.log. WordPress's own debugging guide says it is not recommended to use these tools on a live site.
Raise the PHP memory limit
WordPress asks PHP for 40MB by default on a single site. A site with several heavy plugins can need more. Above the same "That's all, stop editing" comment in wp-config.php, add:
- define( 'WP_MEMORY_LIMIT', '256M' );
256M is a starting point, and any number your host allows works. If the error stays, your host caps PHP's memory below the number you wrote, and only the host can raise that cap. If a plugin keeps eating whatever limit you set, the debug log names its file, and the plugin is the real fix.
Why an old plugin breaks on a newer PHP version
PHP gives each version two years of full support, then two more years of security fixes only, and after that nothing. PHP 8.2 reaches the end of its security support on 31 December 2026, so a site still on 8.2 has a deadline. WordPress's requirements page recommends PHP 8.3 or greater.
| PHP version | Released | Security support ends |
|---|---|---|
| 8.2 | 8 December 2022 | 31 December 2026 |
| 8.3 | 23 November 2023 | 31 December 2027 |
| 8.4 | 21 November 2024 | 31 December 2028 |
| 8.5 | 20 November 2025 | 31 December 2029 |
The break shows up when a plugin or theme last updated in the PHP 7 years still contains code that PHP 8.0 removed. The php.net migration guide lists create_function() and each() as removed, so a plugin that still calls either stops the page the moment it runs. PHP 8.0 also made arithmetic on an array, a resource or an object throw a TypeError. Code that ran quietly on PHP 7 now ends in a fatal error, and WordPress turns that into the critical error message.
PHP 8.2 added a second wave, written as deprecations: creating a property a class never declared, putting a variable inside a string with the dollar-and-braces style, and calling utf8_encode() or utf8_decode(). Deprecated means PHP warns about the code now and a later release can remove it. A debug log that fills with deprecation lines tells you which plugins will break next, and so which to replace first.
How to keep the critical error from coming back
- Point the administration email address at a mailbox someone reads. The recovery link goes there and nowhere else.
- Take a backup before every round of updates, and keep one off the server. Our guide on backing up a WordPress website yourself covers it.
- Update plugins one at a time and load the site between each. When a single update breaks the site, you know which one.
- Delete plugins you stopped using. Every active plugin is code that has to keep working on the next PHP version, and an abandoned one stops getting fixes. See what happens if you don't update WordPress plugins.
When to stop and call someone
Renaming folders and adding three lines to wp-config.php are safe for a careful owner who made a copy first. Call when the debug log points into wp-admin or wp-includes, when the plugins and the theme are renamed and the site is still down, when you have no hosting login and no backup, or when the same error returns a week after you fixed it. A file path in the log that you do not recognise is a reason to read how to tell if your website has been hacked before you do anything else. If the site brings in calls and form fills every day, an hour of downtime is an hour without them, and a phone call gets it moving sooner.
How we handle it for clients
On our maintenance plans we test plugin and theme updates on a staging copy before they touch the live site and keep off-site backups, so a fatal error becomes a restore. We also track the PHP version each site runs, which keeps a date like 31 December 2026 from arriving as a surprise. We have worked from Mill Creek, WA since 2011, and when a client's site shows the message we call the same day. If yours shows it now, call (425) 314-1415.
Critical error on your site right now?
Call and we will read the error with you and tell you which file to rename or restore.
Get help from Venbit
More website guides
Every question in this series, from Fix website problems.
Symptoms & emergencies17
- What Size Should Images Be for a Website?
- Why Is My Logo Blurry on My Website? How to Fix It
- Images Not Loading on My Website? 9 Causes and Fixes
- Why Is My Website Down Right Now? How to Fix It
- Why Does My Website Say "Account Suspended"?
- Why Is My Contact Form Not Sending Emails?
- There Has Been a Critical Error on This Website: How to Fix It (you are here)
- Why Is My Website Showing "Not Secure" in Chrome?
- Squarespace Site Not Showing Up on Google? How to Fix It
- Why Did Google Remove My Website From Search Results?
- Why Did My Website Traffic Suddenly Drop? Top Causes
- Why Is My Website Slow on Mobile but Fast on Desktop?
- Why Does My Website Look Broken on My Phone?
- Why Do My Website Images Look Blurry or Broken?
- How to Tell If Your Website Has Been Hacked
- "This Site May Be Hacked": How to Remove Google's Warning
- How to Fix the "Deceptive Site Ahead" Warning
What happens if...11
- Hosting Company Shut Down? What to Do in the First 24 Hours
- How to Get Your Website Files From Your Hosting Company
- Hosting Expired and Your Website Is Down? What You Can Recover
- How to Recover a Deleted Website
- How to Move a Website to a New Host Without Downtime
- Is My Web Host Going Out of Business? Signs to Check
- What Happens If My SSL Certificate Expires?
- What Happens If My Domain Name Expires?
- What Happens If Your Web Host Goes Out of Business?
- What Happens If You Stop Paying Your Web Developer?
- Why Are My Business Emails Going to Spam?
Plans & hiring1
Ownership & switching11
- How to Find Out Who Built Your Website
- How to Find Out Who Owns a Domain Name
- Locked Out of Your Own Website? How to Get Access Back
- How to Transfer a Website to a New Developer
- Website Ownership Checklist for a Small Business
- What Is My Website Built With? How to Check in Seconds
- How to Find Out Who Hosts and Manages Your Website
- What to Do When Your Web Developer Disappears
- How to Switch Web Hosting Without Losing Your Email
- Who Is My Email Provider? How to Find Out in Two Minutes
- How to Back Up a WordPress Website Yourself
Platform-specific3
Seattle & local1
The Venbit Team
Web design & SEO, Mill Creek, WA
Venbit is a web design, SEO, and digital marketing studio in Mill Creek, Washington. Since 2011 we've designed, built, and ranked small-business websites for clients across the Puget Sound and around the country, so the numbers and advice here come from real projects, not a content mill.
Sources
- WordPress developer documentation, Common WordPress errors
- WordPress Core blog, Fatal error recovery mode in 5.2
- WordPress core source, class-wp-fatal-error-handler.php (the message wordings)
- WordPress core source, class-wp-recovery-mode.php (what recovery mode handles, one-day email default)
- WordPress core source, class-wp-recovery-mode-email-service.php (the email subject and body)
- WordPress developer documentation, Debugging in WordPress
- WordPress developer documentation, Editing wp-config.php
- WordPress, Requirements (recommended PHP version)
- PHP, Supported versions (security support end dates)
- PHP manual, Backward incompatible changes in PHP 8.0
- PHP manual, Deprecated features in PHP 8.2
- cPanel documentation, MultiPHP Manager
