Blog

WordPress 500 error after an update: regaining access and restoring the previous version

A WordPress 500 error that appears right after an update or activation almost always comes from the extension or theme you just touched. This guide helps you regain access in a few minutes, then restore the version that was working while the developer fixes theirs.

WordPress 500 error after an update: regaining access and restoring the previous version

Key points

  • After an update, a 500 error, a white page, or a critical error generally comes from a PHP file of the extension or theme you just updated.
  • The error log indicates the folder involved. To regain access, rename this folder via FTP.
  • The free Maintenance module keeps the two previous versions of each extension and theme so they can be restored.
  • With nexya Pro, an update that breaks the site is automatically rolled back.
  • Changing the PHP version, the WordPress core, and errors unrelated to an update are not covered by the module.

WordPress 500 error: what the message means

A WordPress 500 error, or “Internal Server Error,” means that the server could not complete the page request. The message does not explain why: it only signals that the code stopped midway.

On the WordPress.org forums, the same case comes up every week: you update a plugin, or reactivate it, and the site returns a 500 error, a white screen, or a critical error message. Sometimes only the public site is affected, sometimes the admin area as well.

The good news is that the timing of the crash already gives you a clue. If everything was working a minute before the update, you should first look at the plugin or theme you just changed.

500 error, white screen, or critical error: three symptoms, one common lead

Depending on the server configuration, the same PHP error can be displayed in three ways. The server may return a raw 500 error. If error display is turned off, you see a white page. WordPress may also intercept the error and display “There has been a critical error on this website.”

These three screens often have the same origin: a PHP file that cannot execute. To find out which one, you need to read the error log. Most hosts offer this in their interface. You can also get it by setting WP_DEBUG and WP_DEBUG_LOG to true in wp-config.php. The errors are then written to wp-content/debug.log.

The line to look for usually starts with “PHP Fatal error.” It indicates a file path, and this path contains the name of the folder of the plugin or theme involved.

With nexya Pro, files modified by an interrupted update are identified and the original can be restored.
With nexya Pro, files modified by an interrupted update are identified and the original can be restored.

Common causes after an update or activation

Once the plugin is identified, the cause is usually in this short list:

  • The new version requires a more recent PHP version than the one on the server.
  • The allocated PHP memory is no longer sufficient for the new version.
  • The update stopped midway and left incomplete files.
  • Two plugins are loading the same library in versions that are not compatible.
  • A rule added to the .htaccess file is not accepted by the server. In this case, the web server’s error log mentions it, not the PHP one.

The error log almost always says which folder is involved. Read it before disabling everything.

Regaining access when the administration no longer opens

If the admin area still opens, deactivate the plugin from the Plugins page. The site should return immediately.

If it no longer opens, use FTP or the host’s file manager. In wp-content/plugins, rename the plugin’s folder, for example by adding -off to the end of its name. WordPress will no longer find it and will deactivate it. For a theme, rename its folder in wp-content/themes: WordPress will then fall back to a default theme if one is still installed.

Is the site back? You found the culprit. Now you just need to choose between waiting for a fix from the developer or immediately restoring the version that worked.

Preparing for a rollback before the next update

  1. 1

    Turning on the Maintenance module in the hub

    Open the nexya hub and turn on the Maintenance module. From then on, the previous version of each extension is kept before it is updated. The module keeps two for each extension and each theme.

    Turning on the Maintenance module in the hub
  2. 2

    Exporting the database

    Before a series of updates, export the database from the Maintenance module. The same screen is also used for database cleaning. Keep the file outside the site.

    Exporting the database
  3. 3

    Closing the site, then restoring the previous version if needed

    During the intervention, close the site with the maintenance switch. If an update causes a 500 error, restore the previous version of the extension or theme, check the site, then reopen it. With nexya Pro, an update that breaks the site is automatically rolled back.

    Closing the site, then restoring the previous version if needed

Restoring the previous version with the Maintenance module

The nexya Maintenance module keeps the previous version of each plugin before it is updated. It stores two for each plugin and each theme. After an update that breaks the site, you can therefore restore the previous version without having to look for it in archives or upload it via FTP.

This feature is part of the free version, for as many sites as you want. It only works once the module is turned on: versions are kept from that moment on, not before. That is why it is best to turn it on before the next series of updates.

With nexya Pro, the rollback happens automatically: when an update breaks the site, it is undone without you having to intervene. If an update stopped midway and left modified files, nexya Pro also adds a file fingerprint, with the option to restore the originals.

What nexya does not fix

The Maintenance module covers a specific case: a plugin or theme that breaks the site after its update. Several causes of 500 errors fall outside this scope, and it is better to know this before starting.

nexya does not change the PHP version of your hosting. If a plugin now requires PHP 8.3, the change must be made in the host’s interface. In the meantime, the previous version of the plugin allows you to keep the site online.

A PHP error unrelated to an update is also not covered by the module: a file modified by hand, a server limit, or a plugin you install and activate for the first time. In the latter case, there is no previous version. You must deactivate the plugin as described above, then check with its developer.

Finally, the module restores plugins and themes, not the WordPress core. For an update of WordPress itself, your host’s backup remains the solution.

The Maintenance module's waiting page is displayed to visitors during the intervention, instead of a blank page.
The Maintenance module's waiting page is displayed to visitors during the intervention, instead of a blank page.

Preventing the next update from crashing the site

A few simple habits reduce the risks. Update one plugin at a time, and check the site after each one: if a 500 error appears, you immediately know which one caused it.

Before a major update, export the database from the Maintenance module. This copy is useful if the new version modifies tables and you need to roll back.

During a longer intervention, close the site with the module’s waiting page. Visitors see a clean message rather than a blank page, and you work without pressure.

The fewer extensions there are, the fewer updates can go wrong. Each nexya module turns on and off from the hub, and a turned-off module loads nothing on the site.

FAQ

Why does my site show a 500 error right after updating an extension?

Generally, the new version contains code that your server cannot execute. It may require a newer PHP version or more memory, or conflict with another extension. The error log indicates the file involved.

What to do if the WordPress administration no longer opens?

Connect via FTP or your host's file manager. In wp-content/plugins, rename the folder of the problematic extension: WordPress disables it and the site should return.

Can nexya restore a version I updated before installing it?

No. The Maintenance module keeps previous versions from the moment it is turned on. An update made before that has no copy.

Is automatic rollback free?

No. In the free version, you restore the previous version yourself. Automatic rollback of an update that breaks the site is part of nexya Pro.

The 500 error appeared when activating a new extension. Can the module help?

Not directly: an extension installed for the first time has no previous version. Disable it by renaming its folder, then contact its developer.

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