There Has Been a Critical Error on This Website: How to Fix It

The Venbit TeamUpdated November 8, 20269 min read

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 saysWhat happenedStart 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 pageLoad 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 dayThe 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 onlyThe Plugins or Themes screen, to deactivate or fix the one listed
A blank white page with no textA PHP error or a database error that printed nothingRename wp-content/plugins, then read the debug log
Each wording of the message and where to start

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.

CauseWhat you will seeThe fix
Plugin update, new plugin or conflictIt broke within minutes of an update or an install, and the recovery email names the pluginThe recovery link, or rename that plugin's folder
Theme update or editIt broke after a theme update or after someone edited functions.php, and the email names the themeRename the theme's folder
PHP version changeIt broke the day the PHP version changed, and the debug log names a function PHP no longer hasRoll PHP back, then update or replace the plugin
Memory limitThe debug log says Allowed memory size ... exhaustedRaise WP_MEMORY_LIMIT, or ask the host for a higher PHP limit
Damaged WordPress filesA failed update or a bad file save, and the log names a file in wp-admin or wp-includesRestore a backup
The five causes, what each looks like and the fix

How to fix it, easiest step first

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 06Raise the memory limit if the log says Allowed memory size was exhausted.
  7. 07Roll PHP back in the hosting panel if the break lines up with a PHP version change.
  8. 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 saysWhat it meansWhat to do
A path that starts wp-content/plugins/ and a folder nameThat plugin threw the errorRename that plugin's folder
A path that starts wp-content/themes/ and a folder nameThe theme, or a child theme, threw itRename the theme folder
Allowed memory size of ... bytes exhaustedPHP ran out of memoryRaise WP_MEMORY_LIMIT
Call to undefined function, with the name of a functionOld code calling a function the running PHP version does not haveRoll PHP back, then update the plugin
A path inside wp-admin or wp-includesWordPress's own files are damagedRestore a backup
Reading the last PHP Fatal error line in debug.log

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 versionReleasedSecurity support ends
8.28 December 202231 December 2026
8.323 November 202331 December 2027
8.421 November 202431 December 2028
8.520 November 202531 December 2029
When security support ends for each PHP version, as listed on php.net on 8 November 2026

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 happens if...11
Plans & hiring1
Ownership & switching11
Platform-specific3
Seattle & local1

Questions & Answers

  • First load yourdomain.com/wp-login.php once, because WordPress sends the email only when the error hits the login page or the dashboard. If nothing arrives, open your host's File Manager or connect by SFTP and rename wp-content/plugins to plugins_old, then reload the site. A site that loads again had a plugin at fault. One that stays broken gets the same rename on the active theme's folder inside wp-content/themes. When both fail, add the three debug lines to wp-config.php and read wp-content/debug.log, which names the file that failed.

  • To the administration email address under Settings, General, and only when the error hits the login page or the dashboard. The subject carries your site's name in brackets, then "Your Site is Experiencing a Technical Issue." Check the spam folder. WordPress sends at most one a day by default, and the link in it expires. The email says when, and a new one is sent if the error happens again after the link expires.

  • It belongs to the same family. WordPress's error guide says PHP errors and database errors can both appear as a white screen with no information. A fatal error inside a plugin or theme gets the critical error message instead of a bare white page, and the recovery email follows when the error hits the login page or the dashboard. The fix order is the same for both.

  • No. A fatal error stops a page from drawing, and it does not delete your posts, pages or settings. Rename folders instead of deleting them while you troubleshoot, so every step can be reversed.

  • A plugin or theme written before PHP 8 can call functions that PHP 8.0 removed, such as create_function() and each(), and a call to a function that does not exist stops the page. Roll the PHP version back in your host's panel to get the site up, then update or replace the plugin before you try the upgrade again on a staging copy.

  • PHP's supported-versions page lists security support for 8.2 until 31 December 2026. Sites keep running after that date. They stop getting security fixes on 8.2. PHP 8.3 is supported until 31 December 2027, and WordPress's requirements page recommends 8.3 or greater. Test the move on a copy of your site first.

Keep reading

Let’s grow your business

Tell us about your business. We would love to hear from you. Or call us at (425) 314-1415.

Join the local businesses that grow with us

  • Pawn Fathers
  • Protectee
  • Pinnacle Energy Services
  • See Clearwater Beach
  • Q Blinds
  • Domaine des Florines
  • Track & Field AI
  • Edgewater Commercial Park
  • Colour Play Salon
  • Houston Hurricane & Security