How to Fix WordPress Updating Failed / Publishing Failed Error
Sometimes when editing a post or page, you may see the updating failed or publishing failed error. This error does not give any clues, which makes it particularly difficult for beginners.
There are Several Reasons why this Might Happen
You’ve lost internet connectivity
A recent change to the site URL
Any third-party service preventing API calls
A malfunctioning plugin
Five Steps to fix the WordPress Update Failed Error
Deleting the .maintenance file
Giving proper file permissions
Turning off safe mode
Adding FTP details to the wp-config file
Manually updating WordPress if everything else fails
Five methods to fix WordPress Publishing Failed Error
Checking internet connections and site URLs
Checking REST API status using WordPress site health
Disabling all the plugins and then re-enabling one by one
Inspecting the debug.log file by entering debug mode
Switching back to Classic Editor as a temporary fix