How To Fix ‘Updating Failed The Response Is Not a Valid JSON Response’ Error

Share your love

Affiliate Disclosure: This post may contain affiliate links. If you make a purchase by clicking on them, I may earn a small commission at no additional cost to you.

Are you facing the error ‘updating failed the response is not a valid JSON response’ while updating or publishing a post or page in the WordPress editor?

This is a pretty common issue that most people using the new WordPress block editor face.

The notification doesn’t explain much about the problem other than alerting you. This can leave you frustrated.

In this article, I am going to show you how to solve the‘ updating failed the response is not a valid JSON response’ error with some try and tested solutions.

What Does the Response Is Not a Valid JSON Response Mean?

Before we jump to the solutions, let’s first try to understand what the error ‘updating failed the response is not a valid JSON response’ really means and what causes it.

WordPress communicates with the hosting server while you do changes to the website. This communication works in the background is usually done in the JSON format.

If WordPress is unable to communicate with the server, or if the response is not in JSON format, you’ll end up seeing the error ‘updating failed the response is not a valid JSON response.’

updating failed the response is not a valid json response

There are a number of reasons why this error occurs and one of them is the incorrect URL structure or broken link. WordPress uses URL rewriting to display permalinks in an SEO-friendly way.

Now that we understand what causes the error, let’s look at different tried and tested solutions to it.

Make sure to back up your site before doing any changes. If anything goes wrong, you can simply restore the backup and undo the changes.

How To Solve ‘Updating Failed. The Response Is Not a Valid JSON Response’ Error

There are multiple reasons that cause the ‘updating failed the response is not a valid JSON response’ error.

This article provides 5 tried-and-tested solutions to the problem. You must try each one at a time until you find one that works for you.

1. Update Permalink Structure

The best and easiest way to fix the invalid JSON response is to refresh the permalink settings on your website.

From the WordPress navigation menu, go to Settings → Permalink and click on Save Settings at the bottom.

permalink structure wordpress

If WordPress has not updated the rewriting rules, clicking on the Save Settings button forces it to do.

If your website is old, I wouldn’t recommend you to change the URL structure as it can cause a lot of redirections. But if your website is brand new, you can just update the URL structure to Post name for SEO-friendly URLs.

Once you have saved the settings, go to the WordPress editor and check if the problem has been solved. If the error still occurs, proceed to follow the below solutions.

2. Check SSL and fix Mixed Content Error

Many a time the issue of ‘This response is not a valid JSON response’ is caused due to SSL not being completely implemented on your site. Sometimes despite your site having an SSL certificate, some content is not served through it.

You can easily fix this by installing a free plugin called Really Simple SSL. Once the plugin is active on your website, read the instruction presented on the screen and click on Go ahead, activate SSL.

Activate Really Simple SSL

Once the migration is complete, go to Settings → SSL to see whether there are any remaining SSL problems on the website.

You can check the Settings panel to make sure the Mixed content fixer toggle is set to ON.

mixed content

After that, check the WordPress editor to see if the problem persists. If it’s resolved, that’s great. If it is not resolved, go on to the next solution.

3. Switch To Classic Editor

The error ‘This is not a valid JSON response’ is mostly seen in the new WordPress block editor when you try to publish or update a post or page in the editor.

A quick solution that’s worked is to switch back to the Classis Editor. Reverting back to Classic Editor might not be a permanent solution for many and I too don’t recommend it.

But you can temporarily switch to it, update or publish the post and revert back to the Gutenberg editor.

To use the Classic Editor, from the WordPress navigation menu, go to Plugins → Add New and search for Classic Editor to install it.

Activate plugin classic editor

Once the plugin is installed, you can activate it and all your pages will use the Classic Editor.

Classic editor for post in WordPress

Open the post or page you are facing the issue with and publish or update it. This time you shouldn’t see any error.

After publishing, you can just uninstall the Classic Editor plugin and you’ll be able to again use the Gutenberg editor on your website.

4. Disable Plugins One by One

Sometimes, the invalid JSON response error is caused by plugin conflicts. You might have multiple plugins installed on your website and sometimes they conflict with each other causing the error.

To determine whether a plugin conflict is causing the error, deactivate all plugins and reactivate them one at a time until you find the culprit.

Bulk deactivate all plugins

After activating each plugin, you must check for errors by saving the draft or updating the post. Repeat this process until you find the plugin that is causing the problem and contact the developer for a solution.

5. Find the Text Causing the Error

I’ve noticed that the error occurs when you prepare the article in another blogging tool, such as Google Docs, and then copy the content to the WordPress editor.

Even if you format the article to remove the excess code, the error persists. In such cases, I’ve found that copying and pasting one section at a time rather than the entire article at once works best for me. This way, you can determine which section is causing the invalid JSON error.

Once you’ve located the section, you can copy and paste each sentence to narrow down the issue to a specific sentence. Once you’ve found it, you can change the wording slightly and type it out in the WordPress editor rather than copying and pasting.

I know it sounds strange, but it solved the updating failed the response is not a valid JSON response error for me.

That’s all! I hope this article helped you solve the invalid JSON error on your website. Do let me know in the comment section below which particular solution worked for you.

Next, Let an Expert Fix the Error for You

WordPress errors can frustrate you to the point where you don’t know what to do if you’re a beginner. Furthermore, attempting to fix the error on your own runs the risk of breaking the site.

If this is the case, let an expert fix your problem for you. You will have peace of mind knowing that it will be fixed and not have to worry about breaking your website.

WPdexigner offers maintenance services to assist beginners in resolving any WordPress issues that may arise. You can sign up for our service and let us handle the issues on your website.

Share your love

Leave a Reply