Response is not a valid JSON response error fix

How to Fix “the response is not a valid JSON response” Error in WordPress

You are creating content in the WordPress editor but the document fails to update. In fact, you see an error message that says “Updating failed. Error message: The response is not a valid JSON response.” Before you panic, let me assure you that this error can be resolved easily so you don’t lose your hard work.

Why does “the response is not a valid JSON response” error occur?

There could be multiple reasons why this error occurs. This post delves into each reason and offers multiple solutions to solve the problem.

Disable the Block editor and switch back to Classic editor

WordPress classic editor
Old is still Gold in WordPress

The error “Updating failed. Error message: The response is not a valid JSON response.” is overwhelmingly seen in the new Block editor called Gutenberg.

The easiest way to resolve the updating error is by disabling Gutenberg and switching back to the Classic editor. As they say, old is Gold.

You can install the Classic Editor plugin for this. Once you have activated the plugin, try to save your posts. You should not see any error message now.

But what if you still want to use the block editor?

Nice question. It could be that reverting to the classic editor is not an option for you. In that case, you should follow what we are doing on PassionWP. With the classic editor plugin installed and activated, navigate to Settings>Writing.

Now select the Classic Editor as the “default editor for all users” option, save your changes, and clear your website cache. Right after this, select the Block Editor as the default editor and again save the changes.

Classic Editor plugin settings for WordPress
Classic Editor plugin settings

Now try editing an existing post or create a new post with the block editor. You should not encounter the JSON response error. However, it could be that the editor fails to automatically save your changes.

In this event, press Ctrl + S (Cmd + S for Mac) to manually save your changes. This solution works for us and we are using the block editor without encountering the JSON response error.

Download the PDF

Download a short PDF guide of this tutorial to revisit the steps whenever you need. 

Mixed content error due to the use of SSL certificate

Another common reason for this error is the use of a secure socket layer (SSL) certificate (Https) on your WordPress site. Using an SSL certificate can result in some content being delivered non-securely on Http protocol even while the rest of the content is delivered in a secure manner over Https protocol.

This results in a mixed content error in which both https and https content is transmitted at the same time to the web browser, usually Google Chrome.

How to solve the Mixed Content Error in WordPress?

We investigated the mixed content error and noticed that it is linked to the use of the Really Simple SSL plugin that is used by over 3 million WordPress users to configure https on their websites.

To resolve the “the response is not a valid JSON response” or mixed content error, navigate to Settings > SSL. This will open the plugin’s settings. Now click on the Settings tab.

You should do the following two things here:

  1. Ensure that the “Mixed content fixer” option is turned on. This prevents mixed content problems on your website that we discussed above.
  2. Next, you should turn on the “Use an alternative method to fix the mixed content” option. This will ensure that “the response is not a valid JSON response” error does not erupt abruptly while editing.
How to fix the response is not a valid JSON response error in WordPress
Really Simple SSL settings

After saving the changes, go back to the post you were working on and try saving your post or page. You should no longer experience the response is not a valid JSON response error.

Alternative solutions to the response is not a valid JSON response error

Deactivate all the plugins on your site and edit the content normally. If you’re using the Really Simple SSL plugin then deactivate this plugin first. Subsequently, try saving the document. If you are able to save it without facing any errors, re-activate the plugins one by one to check which plugin was causing the error.

There is another solution you can try to fix the response is not a valid JSON response error in WordPress.

Navigate to Settings > Permalinks. Change the permalink structure from post-name or the current structure to Plain i.e. https://yoursite.com/?p=123. Now try saving your post/page. The problem should have been resolved.

Fix the response is not a valid json response error by changing the permalink
WordPress permalinks settings

But try this solution if all other methods fail as changing the permalinks will result in huge SEO issues on a live website and you will also need to add multiple redirects.

We discussed 4 possible solutions to the response is not a valid JSON response error in WordPress. I hope one of these methods worked for you. If it did, let me know in the comments below. If it didn’t, post your specific problem so others can suggest different solutions.

Also, make sure that you have downloaded the PDF guide containing the methods I have shared here.

About the Author: Trishan Mehta

Trishan loves to dig into the technical side of WordPress. When not WordPressing, he loves exploring the mountains to get a dose of fresh air and new insights on life. He also shares blogging tips and insights on his blog 1stPositionBlogging.com.

You May Also Like

36 Comments

    1. Hello Michelle,

      So sorry to hear that none of the solutions worked for you although the classic editor solution should have worked. Do you have the Really Simple SSL plugin installed on your blog?

    1. Yes, many people are switching back to the Classic editor. Looks like the WordPress team has some serious work on its hands with Gutenberg stability.

  1. After everything else… the permalinks was the fix. Thank you. Now I need to go back in and add Plugins, photos that were all deleted in the problem solving process. 🙁

  2. Oh My Goodness! Thank you so much for this guide, I was REALLY panicking already, because I recently changed from the default GoDaddy nameserver to the Cloudflare one

    And then I also activated this SSL thingy that comes with Cloudflare and suddenly I can’t edit posts!

    After reading this guide, I tried installing the “Really Simple SSL” plugin in my wordpress, enabled it and it worked! Thank you so much! You’re a lifesaver.

    1. Hello Brad,

      You’re welcome. I guess the WordPress team has some serious work on their hands otherwise we will see a continuous switch back to the classic editor.

  3. hi

    I can not change Parmalinks because i am using internal links of my posts.

    Classic editor als can not use because i use “reusable blocks” and “Colors” in Blocks in my posts.

    SSL are perfect working

    you have any other suggestion ?

    1. Hello Safdar,

      You can retain the block editor and still resolve the error. I have updated the post on how to do this.

Leave a Reply

Your email address will not be published. Required fields are marked *