{"id":14663,"date":"2026-07-28T01:18:27","date_gmt":"2026-07-28T01:18:27","guid":{"rendered":"https:\/\/savethevideo.net\/blog\/?p=14663"},"modified":"2026-07-28T01:28:44","modified_gmt":"2026-07-28T01:28:44","slug":"how-to-fix-publishing-failed-the-response-is-not-a-valid-json-response-in-wordpress","status":"publish","type":"post","link":"https:\/\/savethevideo.net\/blog\/how-to-fix-publishing-failed-the-response-is-not-a-valid-json-response-in-wordpress\/","title":{"rendered":"How to Fix “Publishing Failed. The Response Is Not a Valid JSON Response” in WordPress"},"content":{"rendered":"

Few WordPress errors are as confusing as \u201cPublishing failed. The response is not a valid JSON response.\u201d<\/strong> You click Publish<\/em> or Update<\/em>, expecting your post to go live, and instead WordPress gives you a message that sounds more like a developer problem than a content editing issue. The good news is that this error is usually fixable with a practical checklist, even if you are not comfortable editing code.<\/p>\n

TLDR:<\/strong> This error usually happens when the WordPress block editor cannot communicate properly with your site through the REST API. Common causes include permalink issues, security plugins, mixed HTTP\/HTTPS settings, broken redirects, or server rules blocking requests. For example, if a site was recently moved from http:\/\/<\/em> to https:\/\/<\/em>, WordPress may still try to save content through the wrong URL, causing the JSON response to fail. In many cases, simply resetting permalinks or fixing the Site Address URL resolves the issue within minutes.<\/p>\n

What Does \u201cNot a Valid JSON Response\u201d Mean?<\/h2>\n

WordPress uses the REST API<\/strong> to send and receive information when you work in the block editor. When you save a post, WordPress expects the server to return data in a specific format called JSON<\/strong>. If the server returns something else, such as an HTML error page, a login screen, a redirect, or a security warning, WordPress cannot understand it and shows the JSON error.<\/p>\n

In simple terms, the editor asks your website, \u201cDid this post save correctly?\u201d Instead of receiving a clean answer, it receives a garbled or unexpected response. That is why the problem may appear during publishing, updating, uploading images, or saving drafts.<\/p>\n\"\"\n

1. Reset Your WordPress Permalinks<\/h2>\n

The easiest fix is often to refresh your permalink structure. Permalinks control how WordPress creates URLs, and if the rewrite rules are outdated or corrupted, REST API requests may fail.<\/p>\n

    \n
  1. Go to Settings > Permalinks<\/strong> in your WordPress dashboard.<\/li>\n
  2. Do not change anything unless you want to.<\/li>\n
  3. Click Save Changes<\/strong>.<\/li>\n<\/ol>\n

    This forces WordPress to regenerate its URL rules. After saving, return to your post and try updating or publishing again. This simple step fixes the issue surprisingly often, especially after migrations, plugin changes, or server updates.<\/p>\n

    2. Check Your WordPress Address and Site Address<\/h2>\n

    A mismatch between your site URLs can break communication between the editor and the REST API. Go to Settings > General<\/strong> and look at these two fields:<\/p>\n