WordPress 'Updating Failed. The Response Is Not a Valid JSON Response'

Share
Workaround available Self-hosted WordPress (WordPress.org) Updated November 13, 2026Based on 4 user reportsHow we research

Quick answer

The block editor could not read the REST API reply. Re-save Permalinks, make sure both URLs match, then disable plugins and security rules that break the REST API.

Most likely fix: Check the URLs

How to fix it

Try these in order — the most common fix is first.

  1. 1. Check the URLs

    1. Settings > General: WordPress Address and Site Address must both be correct and use the same protocol.
    Did this fix it?
  2. 2. Reset permalinks

    1. Settings > Permalinks, click Save Changes without changing anything. If it persists, regenerate .htaccess by renaming it first.
    Did this fix it?
  3. 3. Test plugins and theme

    1. Deactivate all plugins and switch to a default theme, then retry saving. Reactivate until the error returns.
    Did this fix it?
  4. 4. Check redirects and firewall

    1. Make sure only one thing forces HTTPS, and whitelist /wp-json/ in any firewall, CDN or security plugin rule.
    2. Open yoursite.com/wp-json/ in a browser. It should show JSON, not a page or error.
    Did this fix it?
  5. 5. Use the Classic Editor temporarily

    1. Install the Classic Editor plugin to publish while you debug.
    Did this fix it?

Symptoms

When saving or publishing a post the editor shows 'Updating failed' or 'Publishing failed. The response is not a valid JSON response.'

Why it happens

  • Mismatched WordPress Address and Site Address
  • Broken permalinks or .htaccess rules
  • A plugin or theme printing warnings or extra output before the JSON
  • Mixed content or competing HTTPS redirects
  • A firewall or security plugin blocking the REST API

This guide also covers

  • updating failed the response is not a valid json response
  • wordpress publishing failed json
  • wordpress gutenberg updating failed

Still not working?

If WordPress keeps failing, you're not alone. See every WordPress problem users report or the alternatives people switch to.

Done fighting WordPress? Our small team builds your own WordPress alternative, made for how you work. On your domain or hosted by us. Price agreed together.

Get a quote
Fixed it? Share this guide

Other WordPress errors

All 11 WordPress errors and fixes →