20%Christmas Sale — Save 20% on All PRO Plugins!

20Days02Hours54Minutes32Seconds
Shop Now
· Security & Monitoring

“There Has Been a Critical Error on This Website”: Fix a Broken Plugin Without FTP

Worried man with his hand on his head looking at an open laptop on a table in a bright living room

It usually happens at the worst moment: you update a plugin, reload the page and the whole site shows one sentence – “There has been a critical error on this website.” Sometimes wp-admin shows the same message, so the usual fix in the plugin list is out of reach.

This guide explains what the message means, how to find the plugin that caused it and how to get your site back – with and without access to the files.

Key takeaways

  • The message means PHP stopped with a fatal error – most often caused by a plugin after an update or PHP change.
  • Read the recovery e-mail or debug.log first; the file path shows which plugin failed.
  • Switch off only that plugin – in wp-admin, by renaming its folder, or with a prepared recovery link.
  • WP Emergency Recovery is free and gives you a private recovery panel that works even when wp-admin does not load.

What the critical error message means

WordPress shows this message when PHP stops with a fatal error. Since WordPress 5.2, the message replaces the old white screen, and WordPress may send a recovery e-mail to the admin address. The cause is usually one of these:

  • a plugin update that is not compatible with your PHP version or another plugin;
  • a theme or a code snippet in functions.php;
  • a PHP version upgrade by the host;
  • a missing file after an interrupted update.

Step 1: Read the error, do not guess

Check whether the admin e-mail received the WordPress recovery message. It names the plugin or theme and contains a link to recovery mode. If no e-mail arrived, enable logging as described in the official guide to debugging in WordPress: set WP_DEBUG and WP_DEBUG_LOG to true and WP_DEBUG_DISPLAY to false, reload the page and read wp-content/debug.log. The file path in the error shows which plugin is involved.

Step 2: Switch off only the plugin that failed

If you can open wp-admin, deactivate that plugin in the plugin list. If you cannot, the classic method is to rename the plugin folder in wp-content/plugins with FTP or your host’s file manager. WordPress then treats the plugin as missing and loads the site without it.

Avoid deactivating all plugins at once unless you have to. It hides which plugin caused the problem and can reset settings in plugins that run code on deactivation.

Step 3: Restore and test

Once the site loads, check the plugin’s changelog and your PHP version, update or roll back the plugin, and test the main pages, the checkout and the forms. Our plugin rollback checklist lists the checks in order.

A faster route: prepare an emergency exit in advance

FTP access is not always at hand – in the evening, on a phone or when the hosting login belongs to someone else. WP Emergency Recovery is a free Pluginivo plugin that prepares a recovery route before anything breaks.

How it works

  1. Install it once. On activation it copies a small recovery layer to wp-content/mu-plugins/. Must-use plugins load before regular plugins.
  2. It creates a secret token. A random 64-character WP_RECOVERY_TOKEN is added to wp-config.php. If the file is not writable, Tools → Emergency Recovery shows the exact line to add.
  3. You save two URLs in your password manager: the early WordPress route /?wp_recovery=TOKEN and a standalone fallback recovery.php?token=TOKEN that does not load WordPress at all.
  4. When the site breaks, you open one of the URLs. The panel lists the active plugins and the latest fatal errors with the plugin that caused them.
  5. You click “Deactivate”. The plugin is switched off and placed on a file-backed block list, so it cannot load again until you remove the block.

What it deliberately does not do

The free plugin does not switch plugins off automatically – you see the error and decide. It cannot help when the failure happens before must-use plugins load, for example with a broken wp-config.php, damaged core files or a database outage. Errors in themes or core are logged but not treated as plugin failures. No data is sent to Pluginivo or any other service.

Keep the recovery token safe

The token works like an emergency administrator password. Store it in a password manager, use HTTPS and regenerate it if it may have leaked, because query strings can appear in server logs. After five wrong tokens from one IP within 15 minutes, further guessing is locked, while the correct token keeps working.

A short checklist for the next update

  • Back up files and database before larger updates.
  • Update plugins one at a time on a busy store.
  • Keep the two recovery URLs in your password manager.
  • After the update, open the home page, a product page and the checkout.

Frequently asked questions

What causes “There has been a critical error on this website”?

A fatal PHP error. Very often it comes from a plugin after an update, a PHP version change or a conflict with another plugin. It can also come from the theme, WordPress core or a broken wp-config.php.

Can I disable a plugin when wp-admin does not load?

Yes. You can rename its folder in wp-content/plugins via FTP or the file manager. With WP Emergency Recovery installed in advance, you open a private recovery URL and deactivate the plugin with one click instead.

Does WP Emergency Recovery switch off plugins automatically?

No. The free plugin keeps recovery manual on purpose: it shows the error and the plugin that caused it, and you decide what to deactivate.

When does the recovery panel not help?

When the failure happens before must-use plugins load – for example a broken wp-config.php, damaged core files, a PHP start-up error or a database outage.

Next step

Install WP Emergency Recovery for free while your site is healthy, or first try the interactive demo. The documentation explains every step. To notice unexpected file changes after updates as well, see File Integrity Monitor PRO.

MORE GUIDES

Continue Reading

More practical guides for WordPress and WooCommerce.

PLUGINIVO NEWSLETTER

More WordPress tips. Less guesswork.

Practical WordPress and WooCommerce guides, plus occasional updates about Pluginivo plugins.

← All articles