How to fix updating failed in wordpress

When the Guetenberg Editor feature was activated on wordpress, some users got this “updating failed” error on their wordpress blog platform whenever they want to publish a post. Most times this error tends to be frustrating especially when you want to roll out an update on your blog or website. After studying this error “updating failed wordpress” we have come to understand or we have come to see the causes behind this error.

Updating failed wordpress
  • Network error
  • The REST API to create, save, and publish posts is faulty.

No need to worry if you are a less technical person as we will be showing you on how to handle this problem.

How to fix updating failed in wordpress

  1. NETWORK ERROR : This is a minor problem as what you will need to do is to swich off your network and power it on again. If this doesn’t work then other solutions listed below must definitely work
  2. CHECK IF THE REST API IS BLOCKED : The question comes, how do I go about this? Simple, all you need to do is to click on “TOOLS” on your wordpress dashboard, then click on “SITE HEALTH”. Under the STATUS TAB, wordpress will list any error with your installation.
Updating failed wordpress

If the REST API is blocked you will see this message below ;

“The REST API encountered an unexpected result.

The REST API is one way WordPress and other applications communicate with the server. One example is the block editor screen, which relies on this to display and save your posts and pages.”

Site health will also display what is producing the unexpected error.

After finding out what is producing the unexpected error, you should RE ENABLE THE REST API BY RECTIFYING THE SPECIFIED ERROR.

Normally, the site health tool will provide some tips as to how you can re activate the REST API on your wordpress site. Some examples of the solutions are ;

  • Check to see if cloudfare is blocking the REST API ; For cloudfare users, your firewall may be blocking authorized requests. Check your RULE SET to determine if the REST API is blocked and disable rules to let it go through.
  • Ensuring that a plugin is not blocking the REST API; Some plugins maybe responsible for blocking the REST API. Deactivate your plugins respectively to determine which one is causing the problem could help. After finding the one responsible for such error,you can then delete or replace such plugin.


If you couldn’t re-enable the REST API using the solutions listed above, you can also enable debugging mode to search for the error. When activated, the debug mode will log all PHP responses in a file named debug.log in your site’s wp-content directory. You can search this file for errors that may be preventing WordPress from connecting to the REST API and also from updating failed in wordpress. To activate debugging mode, here are the few codes you must add to your wp-config.php file before that line that reads */” That’s all, stop editing! Happy blogging. */”:

// Enable WP_DEBUG mode

define( ‘WP_DEBUG’, true );

// Enable Debug logging to the /wp-content/debug.log file

define( ‘WP_DEBUG_LOG’, true );

Make sure you remove the code once you have resolved this error.

If all of the above 3 steps didn’t work, here is a final solution to it all below


Well, with the above listed 4 steps I’m glad to tell you that the updating failed in wordpress will come to an end.

If this article helped, you can please help by sharing it.


1 Trackback / Pingback

  1. How to find all 404 errors on your website - Mynaijatech

Leave a Reply

Your email address will not be published.