Technology

How to fix Publishing failed. Error message: The response is not a valid JSON response

Pinterest LinkedIn Tumblr

Hello, In this tutorial I will show you how to fix this “Publishing failed. Error message: The response is not a valid JSON response” error.

Publishing failed. Error message: The response is not a valid JSON response

I know it’s a very painful error because we cannot understand what was wrong.

I found 3 reasons for this error. do all or one then problem will be fix.

  1. Mix Content issue ( that mean an SSL / HTTPS problem)
  2. .htaccess issue.
  3. Permalinks Settings

Let’s fix this “Publishing failed. Error message: The response is not a valid JSON response” error.

  1. Do you use Cloudflare SSL or any other domain related SSL certificate services? if yes then please turn off that.
cloudflare ssl off

2. The below code can be pasted at the bottom of your .htaccess file.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>

There are many .htaccess file editors available in the WordPress plugin library. You can do this in your WordPress dashboard using .htaccess file editor.

.htaccess file editors

3. Permalinks Settings

Go to WordPress settings, Then select permalinks after that Select “Post name” and save.

WordPress Permalinks Settings

after following all of the steps above your problem will be fixed.

Fix Publishing failed. Error message: The response is not a valid JSON response

if not please leave a comment. I’ll help you with a fix.

Write A Comment