When trying to update the content on the WordPress website [ 123] \”Update Failure\”
or \”Published failure\” Error? You are here. Let’s see how to determine the root causes of these problems, and how to solve these problems. What caused the error of WordPress update and release failure?
When your WordPress instance cannot communicate with WordPress REST API (which depends on the WordPress block editing experience), you may encounter in WordPress
\”Published failure\”
[ [ [ [ 123] or \”Update failure\” error.
Although there are many reasons for this, the most obvious reason is the simplest: you have lost the Internet connection.
If you lose your connection, you may encounter a failure error. Another reason that may happen includes:
- Recent changes to the website URL
- Any third -party service that stops API calls
- A fault plug -in [ 123]
In most cases, this is easy to solve.
Step 1-Check your internet connection and save your permanent link settings
[[] [
123] It can be said that the most common reason you received this error is that you have lost the Internet connection. If you accidentally disconnect the connection when you update the blog post, WordPress may return this error. If you have guaranteed that you have been connected to the Internet, open the post or page in the editor view of the new tab (or make sure to copy/save changes before leaving the page) and try to update the content again.
Another common solution is to simply re -save the permanent link settings of the site (usually lost due to changing the hosting configuration). There are two super simple methods to do this. The first of our suggestions is to use WP CLI:
Use WP CLI to refresh your permanent link settings
If you can pass it through through itSSH access your hosting environment, so the easiest way to refresh permanent link settings is:
1 – SSH enter your server 2 -Navigation to the root directory of WordPress installation
3 -By running refresh the existing permanent link structure:
WP rewriting
]
4 -Update the permanent link structure back to the structure you used before, for example:
WP rewrite structure \u0026#39;/%Postname%\u0026#39;
] Note: If you run these commands in the production environment, please handle it carefully, because changing the permanent link settings to different structures (and then not changing it back to the same structure you use) will lead to traffic loss.
Refresh your permanent link settings in your WordPress management area
Or, you can also change this directly in the permanent link settings in the WordPress management area. This setting can be \”Settings\” \u0026 gt; \”Permanent Link\” access,
as shown below:
Step 2 -Check whether the REST API is stopped As mentioned above, another common reason you may receive WordPress Publicish Failed error is that REST API is disabled or prevented. Fortunately, WordPress has a beautiful tool that you can use it to check the REST API state.
Just turn to Tool, ] Then select the operating status of .
Here, you will see a bunch of errors related to your WP installation. If the REST API cannot work properly, you will see the following errors:
\”REST API encountered an unexpected result.\”
In addition, the operating status of the site is The report will also provide you with some prompts about how to eliminate failure, such as when the REST API is stopped by the specific plug -in installed and activated on the site.
The best way to debug the specific reasons on your website is to check the console log of the browser, that dayZhi may show the following:
In the above circumstances, the exact error message is \” error update failed. Error message: Response It is not an effective JSON response. \”, the wrong reason is that Cloudflare’s firewall prevents users from accessing WP JSON.
Therefore, if the problem seems to be you get from WP JSON 403 (prohibited) status code or REST API For errors, please make sure you have taken security measures (such as the web application firewall, and the next introduction) will not accidentally include the access to these directory on the blacklist, which will prevent users from publishing or updating content on your WordPress website Essence
Step 3 -Check your web application firewall service
Cloudflare is the world’s largest content delivery network (CDN) service, DDOS protection, Internet security and DNS service providers.
We are loyal fans of the Cloudflare of Servebolt -as a CloudFlare optimized partner, it provides better network connections between Servebolt and Cloudflare. We use Cloudflare Enterprise for all parts of our infrastructure, including Servebolt CDN and our acceleration domain services.
If you use Cloudflare in the site, the service may prevent your REST API call. If the firewall filter is triggered and Cloudflare believes that your IP address is suspicious, it will immediately prevent all REST API requests, which may cause \”update failure\” or \”release failure\” error in the WordPress management area.
Step 4 -View PHP error log and enable debugging mode in WordPress
Before using WP Debug and using WordPress’s own debugging system, those who use Servebolt will easily access your PHP error log.
By default, all sites running on the Servebolt Cloud will generate two logs
– -ERRORLOG
and Accesslog . These can be in the /LOGS folder in the root directory of your site (that is, as /Public directory at the same level). ERRORLOG files will include information that runs any code that runs on your site (this includes errors that do not destroy your site and will continue to fail in the background but sometimes occur) Essence
Moreover, if this does not provide any further information about the error source, you can enable the debug mode in WordPress. When you enter the debug mode, WordPress will automatically record any PHP response received in the new file named
defug.log
. This new file will appear in the WP-Content directory, so you only need to check to determine any server-side response that may cause the problem.
To enter the debug mode, please open your wp-config.php file and in the last line Added before:
// Enable wp_debug mode definition (\u0026#39; wp_debug \u0026#39;, true); // Removal to /wp-content/debug.log file record log record definition (\u0026 #39; wp_debug_log \u0026#39;, true); // Avoid displaying errors on the production site (if not declared, the default is true) definition (\u0026#39; wp_debug_display \u0026#39;, fake);
] After viewing the debug.log file, you can delete this code from the wp-config.php file to exit the debug mode. With serverbolt, you can visit PHP error logs by default, including errorLog and AccessLog. Except Slow query log You can ask for our support team. However, WordPress’s own debugging system is very suitable for identifying errors, so that you can run easily to control your code library.
This is indeed self-evident, but in
wp-config. When changing the pHP
, please do it with caution, which helps to back up your site. Websites running on Servebolt Cloud are backup twice a day -we run the day backup (3 days of storage) and night backup (storage 30 days).
You can also back up your WordPress website yourself. To restore backup, just contact our support team, we will restore your recent backup for free. Step 5 -Disables all WordPress plug -in and check again If you suspect that the error is caused by the WordPress plug -in on your website Solve the problem.
For this reason, just turn to
plugins , and then select Installed plugins. Then, just choose all plug -ins, and use to operate in batches drop -down menu to stop them at one time.
Next, return to your screen, check whether the WordPress update or release failure still exists. If not, now you will know that the plug -in running on your website causes errors. At this stage, the brute force recognition method is to re -activate the plug -in to check when to report an error. Moreover, by eliminating the process, you will be able to identify the fault plug -in.
After discovering the problem, we strongly recommend that you contact the plug -in author and let them know and provide any information they need to debug, because it helps them to improve their products for you (and all other users). This is of course not our first choice during debugging, because it is obviously very tedious and time -consuming.
Temporary solution: Installing classic editor plug -ins (not a solution) The launch of the version 5.0 version of WordPress marks the launch of the Gutenberg editor, that is, we are widely called today. 123] Concept.
Although this is just a temporary solution, switching from Good Tengbao editor to the classic editor may allow you to save and update your post.
Note:
This is obviously not a solution, so it can only be used as a temporary solution.
To switch from Gutenberg to Classic Editor, you only need to the Classic Editor plug -in and activate it on your site. Once it is activated, you only need to return to the post you are editing, and then you should be able to update or publish it again as usual.
Step 7 -Contact our support team
- If the above cannot solve your problem, and you have made a wise decision to host your WordPress website on the Servebolt cloud, Please contact our support team at any time. We can contact us by chatting and email. Our team will be very happy to investigate the cause of this problem.
- Conclusion
- Are you interested in the faster custody host? Try the server:
- Extensible: In the actual user work load test, the average response time of the server is 65 milliseconds, which is 4.9 times faster than the second response time faster than the second response time. Essence
In particular, it is not what anyone wants to prevent you from preserving your work or clicking the error you have been dealing with. Therefore, although you encourage you to often find direct repair and temporary solutions, we strongly recommend that you determine the root cause of the problem so that you can take measures to ensure that it will not happen again.
The fastest global loading time:
The average page load time of 1.26 seconds allows us to be among the best in the global webpageTest results list.
The fastest calculation speed:
Servebolt server provides the database speed of the previously unheard of database. The query per second is 2.44 times higher than the average speed. 2.6 times!
Perfect safety and normal operation time: The normal operation time of all monitors is 100%, and our SSL implementation is obtained by A+ rating, you can ensure that your website is online and safe. All these are supported by our expert team. Prepare Is it free to test Bolt with Servebolt today? ?