Seeing “Updating failed. The response is not a valid JSON response.” when you save or publish in WordPress? This error means the block editor couldn’t read the server’s reply as JSON. Copy your unsaved text first and check whether the edit was saved. If the error persists, reproduce it once on a draft and inspect the save request in your browser’s Network panel.
Read the response body alongside the HTTP status. A login page can point to an expired session or a redirect. A security block page can point to a firewall rule. A server error or PHP warning gives you a reason to check the logs. If the error only happens when you upload an image, inspect the upload request.
Jump to: protect your work, inspect the request, check the session, check routing, review security rules, isolate conflicts, verify the repair.
1. Protect the content before troubleshooting
Copy the unsaved title and article into a local document before refreshing, signing out or switching editors. Record the exact error and the time, including your time zone. Check whether WordPress actually saved a revision before clicking Update repeatedly: a confusing response does not by itself prove the underlying write failed.
Note what changed shortly before the problem began. Useful clues include a domain move, HTTPS change, security rule update, plugin release or a problem that affects only one author. These are leads to test, not proof that the latest change is responsible.
Before altering plugins, themes or server configuration, confirm a recoverable backup. Use an isolated copy for disruptive tests; our WordPress staging site guide covers the safeguards needed to keep test activity away from live integrations.
2. Inspect the WordPress invalid JSON response
Open your browser’s developer tools and select Network. With your text safely copied, reproduce the failure once on a draft or controlled test item. Look for the request triggered by Save or Update, often under Fetch/XHR. Record its address, method, status, redirect destination if any, and response content type. Read the Response or Preview tab.
The important clue is what came back. An HTML login form suggests an authentication or redirect path. A branded challenge page points toward a security layer. A server error page needs server-side investigation. A PHP warning before otherwise structured data suggests unexpected output. These are diagnostic branches, not a reliable diagnosis from the status code alone.
WordPress documents its REST API’s JSON request and response format in the REST API reference. A successful HTTP status is not enough if the response body is the wrong format. Conversely, a structured JSON error can be valid JSON while still refusing the requested operation.

The illustration represents inspecting an unexpected reply; it is not a screenshot from a client website. In a real investigation, keep a small redacted evidence note rather than distributing a complete browser export. Request headers and exported network files can contain cookies, tokens and private article content.
3. Check the login session and editing permissions
If the reply looks like a login screen, preserve your work and sign in again through the normal dashboard URL. Open a fresh editing tab and test a small draft. Compare the failing account with an authorised account that can edit the same content type. Do not grant administrator access simply to make an error disappear.
The official authentication guide explains that dashboard REST requests use cookies together with a nonce, and the user still needs the correct capability. A public endpoint loading in a separate tab therefore does not prove an authenticated save will work.
Check whether the editor and its requests use the intended domain and HTTPS scheme. A redirect to a different host, unexpected subdirectory or login URL is useful evidence for the site maintainer. WordPress Address and Site Address can legitimately differ in some installations, so do not force them to match without understanding the setup.
If signing in again helps only briefly, investigate what is expiring or being reused. Stale editor pages, an inappropriate cache rule or custom authentication code are possibilities to verify. Avoid adding application passwords or disabling authentication as a shortcut for the normal editor.
4. Separate REST routing from a general site failure
Read Tools → Site Health → Status and capture the actual REST API result. Its Info tab also provides environment details useful to the developer. The Site Health documentation explains the distinction between diagnostic status and configuration information. A passed test is helpful context, but it does not exercise every save request.
On a typical root installation, the REST index is available at /wp-json/. WordPress’s REST API key concepts also document the query-string route, /?rest_route=/, for non-pretty permalinks. Your installation may use a different base path; follow its actual API address rather than guessing a new URL.
If the pretty route returns a web-server 404 while the query-string route works, inspect rewrite handling with the host or developer. Back up configuration first. Saving the existing permalink settings may refresh WordPress rewrite rules, but it cannot repair every reverse proxy, Nginx or hosting configuration problem. Do not change the public permalink structure as an experiment.
If the failure began after moving the site, compare domain redirects and origin configuration against the WordPress migration checklist. A repeated redirect has its own investigation path in our redirect loop guide.
5. Match security and cache evidence to the failed save
A firewall or CDN can return an HTML challenge where the editor expects data. Ask the host or security provider to look up the exact request time, URL and request identifier. If there is a matching event, review the specific rule and the narrowest appropriate correction with the maintainer. A 403 without that evidence is not a reason to switch off all protection.
A useful test compares the same permitted draft action before and after a scoped correction. Keep the account, content and environment consistent. Do not publish firewall bypass instructions or remove authentication from protected routes to solve an editor problem.
Check that dashboard pages and authenticated write requests are not being served inappropriate cached output. Cache clearing can remove a stale response, but it does not explain why that response was cached. Document the relevant exclusion or corrected configuration, then test again with a fresh session.
Sometimes only a particular paragraph triggers a failure. In staging, compare a short harmless draft with the failing content, adding sections gradually. This can help locate a content-sensitive rule or custom processing error without sending repeated live writes. Keep private material out of third-party testing tools.
6. Isolate plugin, theme and PHP output problems safely

This original miniature illustration represents separation between testing and the live site. Use that separation for conflict testing: reproduce the issue in staging, change one component at a time and keep a record of the result. WordPress’s plugin and theme conflict lesson provides a structured approach.
If disabling a component removes the error, re-enable it and reproduce the problem again where safe. That comparison is stronger evidence than a single successful save. Some faults depend on two plugins working together, so keep versions and reproduction steps for the vendor rather than declaring one plugin defective immediately.
For unexpected PHP output or server failures, correlate the failed request with private server logs. Follow the WordPress debugging guidance on a local or staging copy. Keep error display off in responses and protect any log files; do not leave debug output publicly exposed. Address the underlying warning or fatal error rather than merely hiding its text.
Switching to another editor may help recover an urgent draft, but a successful save through a different route does not prove the REST problem is repaired. Keep that distinction in the handover so the same issue does not return when another team member uses the block editor.
7. Verify saving, reloading and the original failure case
After the targeted fix, save a small draft, reload it and confirm the text persisted. Then repeat the action that originally failed with the affected account and content type. If media was involved, test the intended upload separately. Preview the page and verify the published result only when publication is appropriate.
For example, if a harmless paragraph saves but an existing long article fails, the initial test is incomplete. Compare the two requests and narrow the difference before changing another setting. If all users fail at the same time, prioritise shared infrastructure and code evidence; if one user fails, investigate that session and permission context first.
Record the cause supported by the evidence, the exact correction, what was tested and how to undo the change. Recheck Site Health and remove temporary diagnostics when finished. This gives the next maintainer a useful recovery note instead of a list of settings that happened to be toggled.
Need help fixing a WordPress invalid JSON response?
DriftFix helps site owners and agency teams investigate WordPress editing failures, plugin conflicts and WooCommerce problems. Send the error message, affected page type, approximate failure time and recent changes to willem7904@gmail.com. A redacted response excerpt is useful; passwords and session cookies are not needed in the initial enquiry.
We can start with a written brief and agree a scoped investigation before changing the site. The goal is a fix you can reproduce and verify, with a clear record of what caused the failed save.

