If your WordPress site is returning an error message such as "Updating Failed" or "Publishing Failed" when you effort to make changes, the results tin be not only frustrating merely tin can also forbid visitors from accessing what they need.

Fortunately, there are a few common causes and workarounds that can help you lot resolve this issue if you encounter it. With a footling troubleshooting, you should be back to your regular posting schedule in no time.

In this commodity, we'll talk over what causes the "Updating Failed" and "Publishing Failed" errors in WordPress. Then nosotros'll explain iv ways you can set up or piece of work around the problem, to go your content upward for readers.

Allow'southward get to it!

Why WordPress Sometimes Fails to Update or Publish Content

The Block Editor has been around for a while at present. It's even so being met with mixed reactions, all the same, and there are also new challenges and errors that WordPress users tin face up because of it.

One such issue is a bulletin reading "Publishing Failed" in the WordPress editor:

wordpress updating failed and publishing failed error
Publishing Failed mistake in the Block Editor

This message may appear later you click on the blue Publish push button, in an try to make your content live. A variation of this error is the "Updating Failed" message, which may bear witness upwards when you attempt to brand changes to a post or page that you've already published:

wordpress updating failed error
Updating Failed error in the Cake Editor

Every bit you tin imagine, this problem can exist an particularly frustrating one for bloggers, likewise equally any site owner who finds themselves needing to update key data on their web pages.

There are a few unlike causes of the "Publishing Failed" error, just one in particular is linked to the Block Editor. The new WordPress editing interface relies on the Rest API to create, save, and publish posts. In the event that something is blocking or disabling this procedure on your site, yous won't be able to launch new content.

If you're a beginner or only a less-technical user, whatsoever mention of the Balance API can seem intimidating. However, in this case, at that place'south no need to worry.

All you demand to sympathize for the purposes of resolving the "Publishing Failed" error is that the REST API is how the Block Editor communicates with WordPress.

When this communication is cleaved or disabled, the Block Editor'due south publishing functionality breaks. If that is what'southward causing the fault on your site, you'll need to become the Balance API working again in order to fix it.

How to Set up the WordPress Updating Failed and Publishing Failed Errors (In 4 Steps)

Once you understand why your WordPress content is failing to update or publish, resolving the problem becomes easier. Hither are iv steps you can take to go about fixing this problem on your site.

Step one: Decide Whether the Balance API Is Being Blocked

A common crusade of the "Publishing Failed" mistake in WordPress (since the Block Editor was launched) is that the Rest API is being blocked or disabled. If y'all're seeing this message, a wise place to start troubleshooting is by testing the REST API to make sure information technology'south working.

You lot can do this directly in WordPress using the Site Health tool. To admission it, navigate to Tools > Site Wellness:

access site health
Accessing the Site Health tool in WordPress.

Under the Condition tab, WordPress will list whatsoever existing bug with your installation. If the Residue API is beingness blocked, you'll run across the following message:

"The Residuum API encountered an unexpected result.

The Residue 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."

The Site Health tool will as well brandish a specific error that is producing the 'unexpected result'. This could be a "401 Not Authorized" response, an operation timeout, a "403 Cookie Nonce Is Invalid" bulletin, or some other fault.

How you should become almost resolving this trouble and enabling the Residual API again will depend somewhat on the fault you encounter listed here.

Subscribe At present

Footstep 2: Re-Enable the Rest API past Resolving the Specified Error

Ideally, the Site Wellness tool volition provide some indication as to how you can re-enable the REST API on your WordPress site. Some common solutions include:

  • Checking to see if Cloudflare is blocking the REST API. If y'all're a Cloudflare user, your firewall may exist inadvertently blocking legitimate requests. Check your Rule Fix to determine if the REST API is being blocked, and disable rules every bit necessary to let information technology through.
  • Making certain a plugin is not blocking or disabling the Residue API. Some plugins may block the REST API as well. Disabling your plugins one at a time can help you decide which one, if any, is causing the problem. Y'all may so remove, replace, or change the settings for that plugin to enable the Rest API again. Security and operation optimization plugins are mutual culprits.
  • Authenticating your WordPress site with the REST API via your .htaccess  file. The Remainder API requires your website to authenticate itself earlier it can connect. In the event that your site is not doing so, you lot can make a small edit to your .htaccess file to resolve this issue.
  • Determining if the issue is server related. Some users have found that they meet this trouble when running WordPress on a Windows server. You lot'll demand to edit your web.config file to fix it.

Plugins and firewall applications are the source of the problem about of the fourth dimension, so it would exist wise to start your troubleshooting attempts in that location.

Chances are, you'll be able to find the tool that's causing the "Publishing Failed" mistake in WordPress and disable it or change its settings to resolve the upshot.

Stride 3: Enable Debugging Manner to Search for Errors

If you tin't re-enable the REST API using one of the solutions listed in Step 2, you can try turning on WordPress' debug mode. This feature is meant for temporary utilize as a troubleshooting tool.

When activated, the debug way will log all PHP responses in a file named debug.log in your site's wp-content directory. Yous can search this file for errors that may exist preventing WordPress from connecting to the Remainder API, and therefore from publishing or updating posts.

To activate debug mode, add the following code to your wp-config.php file earlier the line that reads "/* That'due south all, finish 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', truthful );        

Brand certain to remove this code from wp-config.php once you've resolved the error.

Equally an culling, Kinsta customers can access the error logs bachelor in their MyKinsta dashboard.

To access yours, log in to your MyKinsta and navigate to the Sites tab:

Sites tab in the MyKinsta dashboard
Sites tab in the MyKinsta dashboard.

Click on the name of the website experiencing the error in the resulting list. Then navigate to Logs and select fault.log from the drib-down carte du jour:

MyKinsta error log viewer
MyKinsta error log viewer

You should then come across a list of any bug your WordPress site is currently experiencing.

Footstep 4: Install and Actuate the Archetype Editor Plugin as a Temporary Solution

In the unlikely event that the higher up steps are not helpful in resolving the "Publishing Failed" fault in WordPress, you'll probable need to seek support from one of the following sources:

  • Your hosting provider if you believe the consequence is related to your server or if your host provides WordPress support.
  • A specific plugin or firewall application, such every bit Cloudflare, if yous believe a tool that is integral to your site is blocking the REST API and yous're unable to remedy the trouble yourself.
  • The WordPress Support forums, if you lot feel you need further guidance, such equally for a free plugin that does non provide user back up.

While y'all work with a relevant support provider to resolve the "Publishing Failed" mistake, you may wish to install the Classic Editor plugin as a temporary workaround:

classic editor plugin
Classic Editor plugin

Since the TinyMCE editor does non crave the employ of the REST API to publish or update posts, you should be able to make the necessary changes to your content with it.

Withal, this is only a stopgap measure. You'll still want to resolve the root crusade of the error in the Cake Editor and then re-enable it.

Is the annoying 'Updating Failed' or 'Publishing Failed' WordPress mistake preventing you from pushing new content live? That has to stop! Check out how to set up this issue with this guide 🎉💪 Click to Tweet

Summary

Not being able to publish or update your WordPress site's content can be a serious problem. Fortunately, in that location are a few common causes of these errors that you can rapidly troubleshoot to put things dorsum in order.

If you're receiving an "Updating Failed" or "Publishing Failed" message in the WordPress Block Editor, endeavour:

  1. Determining whether the Balance API is being blocked.
  2. Re-enabling the Residual API past resolving the specified error.
  3. Enabling debugging manner to search for errors.
  4. Installing and activating the Classic Editor plugin as a temporary solution.

Save time, costs and maximize site operation with:

  • Instant help from WordPress hosting experts, 24/vii.
  • Cloudflare Enterprise integration.
  • Global audience accomplish with 29 data centers worldwide.
  • Optimization with our built-in Application Performance Monitoring.

All of that and much more, in one plan with no long-term contracts, assisted migrations, and a 30-day-money-back-guarantee. Bank check out our plans or talk to sales to discover the program that's right for you.