Maab S.
6min Read

How to Fix a Broken WordPress 5.5 Site

How to Fix a Broken WordPress 5.5 Site

Released on August 11, 2020, WordPress 5.5 brought with it significant changes to the WordPress (WP) core. Websites that were upgraded to run the latest version started to break. So, if you are also facing some issues post-upgrade, know that you are not alone.

A majority of the problems were caused by the removal of the jQuery Migrate tool. This tool makes the transition from older to newer jQuery versions seamless.

If a plugin or a theme is using an older version of jQuery, which contains code not present in the newer version, the tool will restore that code or prompt you about the potential conflicts. This way, it prevents features, plugins, themes, or even entire websites from breaking during upgrades.

In the following sections, we will take a deeper dive into the kind of errors that were caused, and ways to fix them.

What kinds of errors were caused?

Thousands of affected plugins and themes

The absence of jQuery Migrate negatively impacted thousands of themes and plugins which were running older versions of jQuery. Some of these included famous themes like Astra, Storefront, Neve, and Hestia (approximately 1.5 million users altogether) and popular plugins like Ninja Forms Contact Form and Advanced Custom Fields, both with over a million users each.

Featured Images related issues

Some WordPress users reported that they could no longer see featured images on their posts, after the upgrade.

Pagination bugs

Another bug after the upgrade caused sitemap pagination to break. In case a sitemap had enough posts that it required pagination, only some of its URLs worked correctly, while others were throwing the 404 page not found error.

In addition to this, the page parameter was also getting dropped from some URLs, making some webpages impossible to access.

The reason for this, as explained by a WordPress developer, was that since page is a reserved query variable in the WP core, it has a set of usage rules associated with it. It can only contain numeric values. However, some themes and plugins were using it to store values other than numbers, which was leading to the conflict.

JavaScript Execution Errors

A lot of global JavaScript objects were removed from the WordPress core without being properly deprecated. Any website that used these objects, while running WordPress 5.5 inevitably broke.

A list of these objects, which was later shared by Automattic (the team behind WordPress) themselves, is:

  • adminCommentsL10n
  • attachMediaBoxL10n
  • authcheckL10n
  • commentL10n
  • commonL10n
  • inlineEditL10n
  • navMenuL10n
  • postL10n
  • plugininstallL10n
  • privacyToolsL10n
  • setPostThumbnailL10n
  • tagsl10n
  • tagsSuggestL10n
  • userProfileL10n
  • wp.themePluginEditor.l10n
  • wp.updates.l10n
  • wpColorPickerL10n
  • wpPointerL10n
  • wpWidgets.l10n

The Classic Editor not working:

No release after WordPress 5.0 has contained the classic WP editor, with Gutenberg taking its place. However, people who still want to use the old editor can use the plugin Classic Editor which removes Gutenberg and reinstalls the original editor.

This plugin currently has over 5 million active users, making it one of the most widely used WP plugins. However, WP 5.5 broke it too.

Users reported that even though the text editor was functioning properly, the visual editor was no longer working. This meant that unless you at-least know the fundamentals of HTML, you will not be able to produce content on WP.

How to fix the issue?

Option 1. Upgrade WordPress to 5.5.1 (or newer):

On September 1st, 2020, WordPress released a maintenance release (WP 5.5.1) that featured 39 bug fixes and 5 enhancements. The release fixed a lot of the issues caused by its predecessor, but not all. So, the first step to fix your post-upgrade broken website would be to upgrade to 5.5.1, or a later release.

Follow these steps to do so:

  1. Log in to your cPanel account.
  2. Select the WordPress Manager by Softaculous under Software.
    Select the WordPress Manager by Softaculous under Software.
  3. From the main WordPress dashboard, expand the site configuration section by clicking the downward arrow at the end of the relevant row.
    From the main WordPress dashboard, expand the site configuration section by clicking the downward arrow at the end of the relevant row.
  4. Now click Upgrade Now.
  5. Just to be on the safe side, tick the Create Backup checkbox. Then click Upgrade.
    Just to be on the safe side, tick the Create Backup checkbox. Then click Upgrade.
  6. Once you have returned to the main WordPress management page, you can check whether or not you have successfully upgraded, by expanding the site configuration section. To do so, click the downward arrow at the end of the row.
    Click the downward arrow at the end of the row.

Ever since the 5.5.1 release, WordPress has announced many subsequent releases, addressing more and more problems, and adding more and more features. At the time of writing this article, the latest release is the first candidate release of WordPress 5.6.

Option 2. Get the jQuery Migrate Helper Plugin:

The simplest solution to all the problems created by the absence of jQuery Migrate, was to bring jQuery Migrate back.

The WordPress team helped do this by creating a plugin that will once again allow code from older versions of jQuery to run on the new WordPress versions. However, this is a temporary fix, and the WP team urges theme and plugin developers to update their code as soon as possible.

Follow these steps to install the plugin:

  1. From the WordPress dashboard, go to Plugins and then click Add New.
    From the WordPress dashboard, go to Plugins and then click Add New.
  2. Search for Enable jQuery Migrate Helper, click Install Now, and then Activate.
    (Note: You might not see Install Now. In that case, just hit Activate)
    Search for Enable jQuery Migrate Helper, click Install Now, and then Activate.

That’s it. The plugin will automatically re-enable the jQuery migration script, and get your website back up.

Option 3. Use your browser to debug (and resolve) additional errors:

The jQuery Migrate tools will resolve some of the conflicts itself, and prompt you about the rest. However, you would have to open the console panel of Chrome’s DevTools to look for the errors.

Option 4. Workaround for the pagination bug:

Upgrading to 5.5.1 or a later release should resolve the pagination bug. But if you are still experiencing it, or can’t upgrade for some reason, a potential workaround will be to replace all occurrences of page within the code of your theme or plugin with mypage (or anything that doesn’t conflict with the reserved query variable) and then rebuilding the theme/plugin.

Option 5. Update themes and plugins:

Just because the WordPress 5.5 update broke your website, doesn’t mean that you should stop updating your software. As we mentioned above, the jQuery Migrate tool only delays the need for theme and plugin developers to update their dated jQuery code.

They still have to upgrade to the newer jQuery versions to make their themes/plugins run on the latest WordPress versions. So, check for any upgrades to the themes and plugins installed on your website.

In case there aren’t any, make sure you get in touch with the developers to ensure that they are either working on an update, or that their software doesn’t require any update to continue working properly.

Option 6. If nothing else works, downgrade…

If, for some reason, you can’t upgrade to a newer WordPress version and none of the above fixes work for you either, the last resort would be to downgrade your WP version to the latest stable maintenance release: WP 5.5.1.

Alternatively, if you have a backup from this version, you can just restore this backup.

In this article, we will guide you on how to downgrade using the WP Downgrade plugin. Here are the steps:

Note: Before you proceed with the downgrade, it’s recommended that you create a full backup of your WordPress website. To do so, follow these steps:

  1. Log in to your cPanel account.
  2. Select the WordPress Manager by Softaculous under Software.
    Select the WordPress Manager by Softaculous under Software.
  3. From the main WordPress dashboard, expand the site configuration section by clicking the downward arrow at the end of the relevant row.
    Expand the site configuration section by clicking the downward arrow at the end of the relevant row.
  4. Now click Backup.
  5. Add a note, and choose where you want to save the backup. Then click Backup Installation.
    Add a note, choose where you want to save the backup and then click Backup Installation.
  6. Upon successful creation, you should get the following message:
    You should get this success message.

At any time, if you want to access the backup or restore using it, you can click on the Backup and Restore icon present on the top right.

You can click on the Backup and Restore icon present on the top right.

Once you have successfully backed up, you can proceed with the downgrade:

  1. From the WordPress dashboard, go to Plugins and then click Add New.
    From the WordPress dashboard, go to Plugins and then click Add New.
  2. Search for WP Downgrade and click Activate.
    (Note: You might not see Install now. In that case, just hit Activate)
    Search for WP Downgrade and click Activate.
  3. After installation, you will be able to see the plugin settings on the main WP Settings page. Select it.
    Select the plugin settings on the main WP Settings page.
  4. Type in the WordPress target version. You can refer to the WordPress release page if you are not sure which version to use.
    Type in the WordPress target version.
  5. Click Save Changes.
  6. Then click the Up-/Downgrade Core button.
    Then click the Up-/Downgrade Core button.
  7. Then click Re-install now.
    Click Re-install now.
  8. Wait for a few minutes for the downgrade to happen.
  9. Once you are returned to the main WordPress management page, you can check whether or not you have successfully downgraded, by expanding the site configuration section. To do so, click the downward arrow at the end of the row.
    Click the downward arrow at the end of the row.

We hope this article was effective in helping you solve your problem and fix your site.

Happy Hosting!


The Author

Maab S.

Maab is an experienced software engineer who specializes in explaining technical topics to a wider audience.

More posts from Maab