Today, a website owner friend in the group reported that after upgrading to WordPress 5.3, when publishing a post, they were prompted:
Publishing failed. Error message: This response is not a valid JSON response. 
Common situations of WordPress post publishing failure
The occurrence of this problem
is usually due to two reasons:
1. Compatibility issues between a plugin and the editor 2. Issues with the WP REST API 3. Issues with the system imageBelow, we analyze the solutions for these two types of problems.
Compatibility issues between plugins and the editor
This issue usually occurs with the Gutenberg editor. It might be that a plugin you installed has compatibility issues with the Gutenberg editor. Simply disabling the Gutenberg editor and testing again should work. Disabling method:
How to Disable the New WordPress Gutenberg EditorAdditionally, some netizens have reported that switching to the Firefox browser allows normal publishing. You can also try this.
Issues with the WP REST API
If you use the browser's F12 feature to inspect resources when publishing a post, you will find that the WP REST API reports an error. At this point, you can try disabling the WP REST API to test if it works normally. To disable the WP REST API, you can install the following plugin.
Disable WP REST APIReasons related to the system image
The netizen who reported this problem to Naiba finally found through testing that it was a bug in the system image. Reinstalling the website environment with a different system image and then installing the website resolved it. It should be caused by a component in the system image being incompatible with the new version of WordPress. For technical novices, figuring out the exact problem is quite troublesome, so directly changing the image is a faster solution.

Indirectly solve the problem by inserting through the Media Library

Some netizens have reported that if your WordPress file upload prompts
this response is not a valid JSON response, then when uploading images, you can click on the Media Library, and then from the
Media Libraryinterface, click the
upload buttonto upload. Do not directly click the upload button in the post interface to
upload image files. This can
indirectly solvethis error.
The above method didn't work?
If neither of the two common situations above matches what you encountered, you can also use the following methods to diagnose and detect the problem.
- Disable all plugins and switch themes to try
- Reinstall WordPress to try
If you have already tried disabling plugins, switching themes, and reinstalling WordPress, and still cannot solve the problem, you can only refer to the ultimate solution below.
If server folder permissions are all normal but you still cannot publish posts, then you can only try reinstalling the website environment (to be safe, you can first install a WordPress on another server to test if it works).
Are you experiencing a WordPress update failure?
Some friends may also encounter WordPress update failure prompts.
this response is not a valid JSON responseIn this case, manually updating solves the problem. There are two related articles you can check out.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.