If you trying to fix the issue “Updating failed. The response is not a valid JSON response.”, and you will not be able to fix these WordPress errors easily. then, you are at the right place, I will guide you on how to fix Updating failed The response is not a valid JSON response.
This problem is also facing me, and I am fixing it live in this video. You must watch the video on updating failed because the response is not a valid JSON response in WordPress during updating posts, publishing posts, uploading images, updating widgets, and more.
Errors Updating failed. The response is not a valid JSON response.
Updating failed The response is not a valid JSON response WordPress posts, pages, images, and others. it may be due to WordPress Block Editor, unnecessary and outdated themes, plugins, old versions of WordPress, security Plugin, wrong permalink, not installed SSL certificate, .htaccess file corruption, REST API conflict, etc.
Generally, you will face issues when you are trying to update a post “Updating failed. The response is not a valid JSON response”.
When you are trying to publish a post, it shows “Publishing failed. The response is not a valid JSON response.”
When you are trying to upload an image. You will face these errors. “The response is not a valid JSON response.”
How to fix “The Response is Not a Valid JSON Response.” error
To fix the update failed issue, you need to do something to resolve these problems.
Step 1: Update your WordPress
To fix these issues, Please update your WordPress or Reinstall from the WordPress dashboard. you can see the video on the Hostingkeeda YouTube channel.
Steps to Reinstall WordPress:
- Log into your WordPress account.
- Click on Dashboard and select the update option.
- Tap on re-install Version 6.3.2.
- Once you have installed it, your problems will be fixed.
After that, you have to check whether your problem is fixed or not.
If it does not fix please follow steps 2, 3, 4, and 5.
Step 2: Deactivate your Plugin
To fix these problems, you need to deactivate all active plugins, then it may work. Then, you can activate the plugins one by one and check that these issues do not reoccur.
Step 3: Update your Theme
You need to update your WordPress theme, then it may work properly. and fix your issue Updating failed. The response is not a valid JSON response.
Step 4: Regenerate WordPress .htaccess File
You should regenerate the WordPress .htaccess file because, in WordPress, the .htaccess file is used as a configuration file to manage SEO-friendly URLs (permalinks). It may work properly if you are facing an error like ‘there was an error. The response is not a valid JSON response’.
Step 5: Disable the Security Firewall
If you are using a firewall to secure your WordPress site, it may block some features, like editors, that may stop your work, like posting posts, updating, uploading images, and others.
To fix the “Updating failed. The response is not a valid JSON response” error, you need to disable your WordPress firewall plugin or service.
Finally, if you try the above steps and are unable to fix this error, ‘updating failed, The response is not a valid JSON response’. You need to log in to your cPanel and disable the security plugin, as I mentioned below.
Step 6: On/OFF ModSecurity from cPanel
You need to disable ModSecurity from cPanel. It blocks some features, such as updating, uploading images, and publishing services, for security purposes. You need to enable or disable it by following these steps.
- Login to your cPanel dashboard.
- Search ModSecurity or find it in the security section.
- Click on ModSecurity.
- Check your domain and on/off status.
- Example – Hostingkeeda.com is Off
Finally, your query is solved for “Updating failed. The response is not a valid JSON response”. when you off mod security it will allow you to update posts and pages, upload images and media, elementor, ACF, etc.