Blog

Fatal error after an update: rolling back to the previous version of a WordPress plugin

When an update breaks the site, the fastest repair is often to restore the previous version of a WordPress plugin—the one that worked yesterday. This guide shows how to reopen the dashboard, perform this rollback using nexya's Maintenance module, and then fix the real cause without rushing.

Fatal error after an update: rolling back to the previous version of a WordPress plugin

Key points

  • A fatal error after an update almost always comes from a single plugin, and the previous version worked fine.
  • To reopen the dashboard, use the recovery link sent by WordPress or rename the plugin folder via FTP.
  • The free Maintenance module keeps the last two previous versions of each plugin and theme and restores one of them.
  • nexya Pro automatically undoes an update that breaks the site; the free version does it manually.
  • The WordPress core is not restored, and the plugin bug still needs to be reported to its author.

Why an update can crash the entire site

On WordPress support forums, this is a weekly question: since the last update, the site displays a fatal error, how do we roll back? In most cases, the solution involves reverting to the previous version of a WordPress plugin while waiting for the author to fix their code.

A fatal error means that PHP has stopped while reading an extension’s code. It cannot continue, so WordPress displays nothing other than “There has been a critical error on this website.” The rest of the site is not necessarily broken: a single file is blocking everything.

The usual causes are well known. The new version requires a newer PHP version than the one on the server. A library loaded by Composer conflicts with the same library, in a different version, bundled by another extension. Or the update simply contains a bug.

In all three cases, the previous version worked. Rolling back does not fix the underlying problem, but it restores the site to its visitors while you investigate.

Regaining access when the administration no longer opens

Before restoring anything, you need to be able to access the administration. Depending on the error, it may or may not still open.

WordPress has its own recovery mode. When an extension causes a fatal error, it generally sends an email to the administrator address, containing the name of the faulty extension and a link that opens the administration while bypassing that extension. If this email never arrives, that is a different issue—one of emails not being sent—which the nexya Mail module handles separately.

Without this email, you still have file access via FTP or the host’s file manager. Renaming the faulty extension’s folder in wp-content/plugins is enough to deactivate it: WordPress can no longer find it and the site reloads.

Also read the error message itself, in the host’s PHP error log or in the recovery email. It names the file at fault, and often the reason, such as a required PHP version. This line will prevent you from looking in the wrong place.

  • The name of the extension that appears in the file path
  • A mention of a minimum PHP version
  • The word vendor or autoload, indicating a Composer library conflict
The Maintenance module's holding page: visitors see a clean message during the repair.
The Maintenance module's holding page: visitors see a clean message during the repair.

Restoring the previous version of a plugin in five steps

  1. 1

    Read the error message

    In the WordPress recovery email or the host's PHP log, locate the file in question and the given reason, such as PHP version or library conflict.

    Read the error message
  2. 2

    Reopen the dashboard

    Follow the WordPress recovery link, or rename the faulty plugin's folder via FTP to disable it while you regain control.

    Reopen the dashboard
  3. 3

    Display the holding page

    From the Maintenance module, show a holding page to visitors while you work on the site.

    Display the holding page
  4. 4

    Restore the previous version

    If necessary, rename the folder back to its original name, then choose one of the two kept previous versions in the Maintenance module and restore it.

    Restore the previous version
  5. 5

    Report the bug and block the update

    Write to the plugin author with the exact error message and your PHP version, and disable its automatic update until a fix is released.

    Report the bug and block the update

Restoring the previous version of a WordPress plugin using the Maintenance module

The nexya Maintenance module keeps the previous version of each extension before updating it. It stores the two previous versions of each extension and theme, and reinstates one of them when you ask it to.

Therefore, the module must have been enabled before the problematic update. Like all nexya modules, it is turned on from the hub, and a disabled module records nothing—none of its hooks run on the site. It is free, for as many sites as you want.

Once the administration is open again, you choose the extension and the version to restore. The site gets back the code that worked before the update. If you had renamed the folder to regain control, rename it back to its original name first, then perform the rollback from the module.

While you are working, the same module can display a maintenance page to visitors. They see a clean message rather than a critical error, and you can test quietly in the background.

Restoring the old version does not fix the bug. It simply gives the site back to its visitors while waiting for it to be fixed.

What nexya Pro does additionally

In the free version, the rollback is done manually: you notice the breakdown, you restore the previous version.

nexya Pro adds automatic rollback: when an update breaks the site, it is undone all by itself. This is useful for sites where updates happen without anyone watching at the exact moment. The free version does not contain this code. nexya Pro is sold on nexya.dev, delivered by Freemius after purchase, and inherits the settings of the free version.

What this rollback does not fix

It is better to know the limits before you need them.

The WordPress core is not affected. If problems appeared after upgrading to a new major version of WordPress, nexya can restore the previous version of an extension or theme that has become incompatible, but it does not roll back WordPress itself.

The module does not diagnose PHP errors in general. It restores code that used to work; it does not tell you why the new code does not work. The error message remains your best clue.

The extension bug remains the responsibility of its author. Report it on their support forum along with the exact message, your PHP version, and the list of active extensions. Until the fix is published, disable automatic updates for this extension, otherwise it will revert to the broken version.

Finally, if the error stems from a PHP version that is too old, the old version of the extension is only a temporary reprieve. The Security module displays an alert when the server’s PHP no longer receives security patches, or will not receive them within six months, along with the version you should upgrade to. This is the request to make to your web host.

The hub panel, from which you turn on nexya modules before you need them.
The hub panel, from which you turn on nexya modules before you need them.

Preparing the next update

Rollback is only possible if a copy exists. Turn on the Maintenance module now, not on the day of the crash.

The same module exports the database. A copy taken right before a series of major updates takes only a few seconds, and also covers things that a plugin restoration doesn’t touch, such as settings modified by the new version.

Do the updates one by one on the plugins that matter, and check the site between each one. If something breaks, you immediately know which one to revert.

FAQ

How to revert to the previous version of a WordPress plugin?

With the nexya Maintenance module turned on before the update, you choose the plugin and one of the two kept previous versions, and the module restores it. Without a prior copy, you must find the old version elsewhere, such as in a backup.

The site displays "There has been a critical error on this website" and I can no longer log in. What should I do?

Look for the recovery email sent by WordPress, which opens the dashboard without the problematic plugin. Alternatively, rename the plugin folder in wp-content/plugins via FTP to disable it.

Can nexya undo a WordPress update itself?

No. It restores the previous version of a plugin or theme, not the WordPress core.

Is automatic rollback free?

No. The free version allows manual rollback. Automatic rollback of an update that breaks the site is part of nexya Pro.

Does the module explain the cause of the error to me?

No, it does not diagnose PHP errors. The error message in the PHP log or recovery email indicates the file and often the reason.

The modules in this post

nexya maintenance nexya hub nexya security

Try nexya Pro free for 7 days

Every module, forms, newsletters and the page cache, on your site. No commitment.

See the plans Or discover the free version