How to Fix WordPress Updating Failed Error

While using WordPress for a long time, you are sure to face some errors. Some of them are quite easy to fix but some of them are not. Since they don’t provide any reason. The big problem starts once you experience those errors that stop your working progress. For example, if you can’t able to publish or update any post of yours.

Many times people face this error multiple times a day. And since this error doesn’t give any sort of clues, it gets quite difficult for beginners to settle this. Fret not, in this article, we’ll provide you easy fix to get rid of such errors. Moreover, we’ll also explain why this occurs, so you can keep an eye on such points.

What Causes this Update/Publishing error?

We all know that the internet works by sending and receiving data. So if you are not able to do either of them, you’ll get a connectivity error. And that error causes most of the publishing or updating failed errors. WordPress uses REST API to send and receive the data. And if that REST API is not working properly, you’ll get such errors.

So the question is that if you haven’t made any changes to your site? Why is the REST API not working properly? There are 2 big reasons for this:

  • You might not be connected to the internet.
  • You might have changed the URL, which made some plugins crash and thus causes this error.

So let’s see how we can solve these issues and get your site running back on track.

Check Your Internet Connection and Site URL:

If you lose connection to your internet, WP will save the changes and start showing the error. You can open any other page on your browser and confirm whether your internet is working or not. If your internet is working then you need to check the URL of your site.

Navigate to Settings > General and check your site address and WordPress Address options. If they are not correct, then correct them. You should be using the same URL in both these fields. If your internet is working and your URL is correct, but you are still getting the error. You can move to the next step.

Check REST API Status:

WP sites come with a built-in health tool that shows info about your site security and performance. Navigate to Tools > Site Health and locate the REST API option. Is the REST API is not working? Then you’ll see the following error below: ‘The REST API encountered an unexpected result’.

You’ll see the debug option below the error. That might give you some clue of what is causing the problem. However, if you still can’t able to figure that out, you can proceed below and follow the solution.

Disable All Your WordPress Plugins:

This option is more like a bomb to blow up everything. Since it is mostly caused by the plugins, you can disable all of them to check whether they are caused by the plugins.

Also see: How to Embed a Google Form in WordPress

Navigate to Plugins > Installed Plugins and check the box on top. Then choose Disable from the bulk actions and click apply. That will disable all your plugins. Now you can check whether the problem is solved or not. After that, re-enable them one by one and see which plugin is the culprit.

Enable and Review WordPress Debug Log:

If your issue is not related to the REST API and you can’t figure it out. WordPress provides a built-in log to keep a track of all the errors. It won’t be able to log the REST API error but all the other errors. So if you can’t figure out what is the problem, you can check it via these logs. Add the following lines to your WP-Config.php file:

/ Change WP_DEBUG to true
define( 'WP_DEBUG', true );
// Keep a log of WordPress errors
define( 'WP_DEBUG_LOG', true );

Save the file and upload it back to your server. Now try to publish or update the post and see what errors this log is showing.

Switch to Block or Classis Editor:

If you are facing this error on your specific editor, just switch to the other one. Most of the time you’ll experience this error on the Block Editor only. Since the classic editor does not rely on the REST API. One of the reasons why everyone loves the Classic editor more than the block editor.

Just install the Classic Editor Plugin and activate it.

Then try to publish or update the post and it will work.

Leave a comment

Your email address will not be published. Required fields are marked *