WordPress 7 min read

WordPress updating failed: how I investigate an invalid JSON response

WordPress updating failed with an invalid JSON response? How I check failed save requests, login sessions and plugin conflicts to find the cause.

WordPress updating failed: how I investigate an invalid JSON response

You finish editing a WordPress page, press Update and get “Updating failed. The response is not a valid JSON response.” The website may still look normal, but you cannot reliably save the content you need to publish.

I would start by inspecting the failed save request. That message describes a response the editor could not use; it does not identify which plugin, server rule or session problem caused it. There is more value in seeing what came back than trying a sequence of fixes at random.

What does the WordPress invalid JSON response error mean?

The block editor uses the WordPress REST API to communicate with the site. The API sends structured data in JSON format, as the official REST API handbook explains.

If a save request receives an HTML login page, a server error page or extra output mixed into the data, the editor may be unable to interpret the result. An HTTP success status alone does not prove the response contains the expected data.

I would treat those as possibilities to investigate. The error banner by itself does not prove that your page content is invalid, that the database is damaged or that you need a new editor.

Protect the unsaved work and record the pattern

Before refreshing or logging out, keep a separate copy of the changes. I would not assume an autosave has captured everything when saving is already failing.

Next, narrow down the pattern:

  • Does it happen on every page or only one?
  • Can you save a short draft containing plain text?
  • Does the same action fail for another user with the appropriate permissions?
  • Did it start after a plugin update, hosting move or domain change?
  • Does it happen immediately, or only after the editor has been open for a while?

A page containing particular blocks might behave differently from a plain draft. That is useful evidence, but it does not establish blame. I would keep the original page intact and reproduce the issue on a test copy where possible.

Inspect the failed save request, not just the banner

In the browser's developer tools, I would open the Network panel, reproduce the save once and identify the request associated with it. The request URL, method, status, redirects and response body are the useful details.

A read of the public API index is not equivalent to saving a page as a logged-in editor. The problem may affect only authenticated requests, a particular endpoint or the content being submitted.

Here is how I would use the response to choose the next check:

  • An HTML login page: investigate the session and redirects involved in the save request.
  • A branded access-denied page: check which hosting, proxy or security layer generated it and correlate its logs.
  • A PHP warning followed by data: identify the code producing unexpected output.
  • A not-found page: check the requested route and relevant server routing rules.
  • A server error or empty response: inspect application and hosting logs for that exact time.

Those are diagnostic directions, not automatic fixes. A structured JSON error also needs its own code and message investigated, even though it is a different response from the malformed one described by the banner.

Check the login session and site URL consistency

If the response points towards authentication, I would check whether a fresh login changes the result after preserving the unsaved work. I would also compare the editor's domain and protocol with the destination used by the failed request.

WordPress's dashboard REST authentication relies on cookies and a request nonce, and the user must have permission for the action. The REST API authentication guide documents those requirements.

A redirect between different hostnames or protocols is a reason to inspect the configuration more closely. I would also review any caching rule affecting authenticated editor requests. I would not disable authentication to get a save working; the aim is to make the legitimate request work correctly.

WordPress will not save your changes? Send me the exact error, what you were editing and when it started. I can assess the fault and agree the scope of the investigation before work begins.
Ask Adam about your WordPress fault

Use Site Health and logs to support the diagnosis

I would check Tools, then Site Health, for relevant REST API or configuration findings. Its Status and Info tabs provide configuration checks and technical information, described in the WordPress Site Health documentation.

A passed general check does not prove that every save request succeeds. I would compare the findings with the failing action rather than stop at a green result.

If PHP output is implicated, I would correlate the request time with the logs. For controlled debugging on staging, WordPress provides separate logging and display settings in its debugging guide. Errors should be recorded for investigation rather than inserted into API responses. I would keep debug logs out of public reach and remove temporary debugging once the investigation is complete.

Test plugin conflicts and server rules in a controlled way

If the problem began after an update, I would compare the changed plugin or custom code with the failing request. A staging copy allows a focused compatibility test without removing functionality from the live site.

Changing several plugins, the theme and the cache together makes the result harder to explain. I would change one relevant variable, repeat the same action and record the outcome.

If a firewall rule is blocking the request, the useful question is which rule matched and why. A targeted correction should preserve the site's protection. If routing is wrong, I would review the server configuration appropriate to that host. Repeatedly resaving permalinks cannot explain a response generated by a different layer.

How I would verify the WordPress publishing fix

The original failing page and action should be part of the verification. I would check the save response, reload the editor and confirm that the intended content persisted.

I would also check a plain draft, any affected custom fields and the relevant user role. If uploading or publishing failed too, those actions need separate checks. A successful text save does not prove an image upload works.

Finally, I would check the public page and document what changed. If the issue followed an update, I would include that combination in future checks. My article on WordPress maintenance checks explains why verifying everyday actions matters alongside keeping versions current.

What to send when you need a developer to fix it

A useful first enquiry includes the exact message, the affected action, when the problem started and whether it affects one page or all content. Screenshots of the error and a short description of recent changes are enough to start a conversation.

You do not need to diagnose the REST API yourself. If you do share technical evidence, remove passwords, cookies, request tokens and private customer content. I can agree appropriate access for the investigation separately.

I am Adam Dawson. My WordPress development work includes plugin integrations and work on existing sites. If publishing has become unreliable, I would rather understand the broken request before proposing a change to the website.

Get a clear next step for your publishing problem Tell me what will not save and what changed before the error appeared. I will help define the investigation and the work needed.
Discuss your WordPress problem Explore WordPress development

Need a hand with this?

Get direct help with a WordPress fault, a custom feature or the regular upkeep of your website.

Talk directly to Adam

Share this article

Back to Blog