Are you repeatedly trying to fix the “Invalid JSON Error” in WordPress? This error occurs when you edit the WordPress posts or page on the website. Whenever you try to emend, the message crop up ‘The Response is not a valid JSON response and, updating would stop.’

Before knowing how can we quickly and easily fix this ‘Invalid JSON Response Error’ first we will get to know what is Invalid JSON Response Error and why is it occurs?

What is an ‘Invalid JSON Response Error’?

The invalid JSON Response Error would mean that WordPress Rest API encountered an error on your website. The Rest API is a set of techniques WordPress uses to transmit to the server as the work you do on your website. You can also get more information about this error in the WordPress site health tool.

Now, after knowing what is ‘invalid JSON Response Error? Let us know why is Invalid JSON error occurring?

What produces ‘Invalid JSON Response Error’ in WordPress?

Failing to receive an awaited response from the server causes an Invalid JSON Response Error in WordPress.

Naturally, WordPress has to communicate with the server while you are altering the blog post on your website. It depends on receiving a response from the web hosting server in the backdrop. This response is basically in JSON format that transports data using JavaScript.

That unexpectedly, WordPress fails to receive a response, or it is not in the JSON format then, the message you’ll see says that it is Not a Valid JSON Response Error.

This error appears because of various reasons, but the most common reason is the occurrence of incorrect URL settings in WordPress or backlog permalinks.

Now, let us know how we can fix this error.

How to tackle ‘Invalid JSON Response Error’ in WordPress?

First: Check the URL of WordPress in the Settings

You need to sure that your WordPress and site settings are correct.

To check go to, Settings >> General Settings page. Here, you glance at the WordPress Address URL and Site Address URL fields.

In most cases, both URLs are similar. But in rare cases, some users give WordPress their directory to serve their website at different address fields. In this case, both the URL will be non-identical.

However, if the site address is mistaken, then the Invalid JSON Response Error occurs. If you try to make any alterations in the settings, click save settings, that it is saved. Now, try to modify the blog or try to save the posts.

If still, you face the Invalid JSON Response Error then, carry on with reading.

Second: Try to Fix Permalink Structures

Sometimes we mess up with the permalink. It will not permit WordPress to obtains a valid JSON format response and cause the error to turn up.

To inspect this, go to Settings>> Permalinks Page. You need to cautiously look at the permalinks’ options.

If you are not assured whether you are picking the settings, then plainly choose one of the default format settings. Now, save the alterations and revert to your page and try to emend your blog posts. And, still, it shows an error then, try the next step.

Third: Rejuvenate WordPress .htaccess file

The .htaccess file in WordPress is used as an arrangement file to the permalinks. It has been generated and updated automatically. If not, you can go to Settings >> Permalinks, activate the update, and save the changes you have done. However, sometimes it failed to be updated, and it would affect the permalinks and may cause JSON response Error.

Now, needs to fix this by connecting the website to an FTP client or File Manager app in the WordPress hosting account.

After connecting, you need to locate the file in .htaccess on your website and, you need to delete all the codes mentioned in it and need to replace them with the codes, and save the changes.

Now, try to modify the blog posts, and if still the Invalid JSON Response Error occurs. Try some steps mentioned below.

Fourth: Oversee the Rest API Debug Log

To check this, go to Tools >> WordPress Health Site. Here, you can see an issue tagged with “The Rest API encounter an unexpected result.” When you shall click and, scroll you will get a hint of which third party or which plugin has caused such an error. After this, try to modify the blog, and if the error is not fixing this time, go and check some other steps.

Fifth: Shut Off All WordPress Plugins

Uncommonly, WordPress Plugins strife with each other or with the core. It could be resulted in unexpected behavior and can also cause Invalid JSON Response Error.

Go to the Plugins >> Installed Plugins after select all WordPress plugins and deactivate them.

Now, you can try and activate plugins one by one and check again until you get the culprit which causes the error. After that,  when you get it to go again to installed plugins to support or find a solution.

Sixth: Advance Troubleshooting

There are a lot of things that can chunk an Invalid JSON Response Error. We have addressed mainly all the offenders but, if they don’t fix it, then here are some other steps which you can take that are as follows:

  1. Shifting to a Default WordPress Theme,
  2. Temporarily switch off Website Application Firewall, and
  3. Plugin Debugging in WordPress.

If all fails to fix the ‘Invalid JSON Response Error’ then, in our advice go and seek experts’ help because this is due to the misconfiguration in your WordPress principal server. Check the most reliable WordPress hosting companies such as BlueHost, SiteGround, HostGator, DreamHost, and Hostinger that can fix all the errors which you face in WordPress.

You can connect with them through a support ticket and, they can quickly solve your problem. It is a minor error but can sometimes take a longer time to fix it.


Get Free SEO Analysis

    (c) 2021 Sky SEO - All Rights Reserved.