Skip to content

Light version: pages open quickly, without the 3D graphics. You are seeing the light version because the 3D graphics would be slow on this device. The content is the same.

Turn on 3D

Preparing the graphics. This can take a moment on the first visit.

Henry Lõiv

Web design & development

Quick Answer

WordPress says “not a valid JSON response”. What now?

Development 2 min read

The editor did not receive the JSON response it expected; the message does not identify the root cause. Preserve your unsaved text before refreshing. Otherwise, troubleshooting may lose the work you are trying to save.

Inspect the failed request

Open the browser’s Network panel and repeat the save once. Check the status, response type and body. A login page, server error or security-layer response can arrive where the editor expected JSON. Reading that response is more useful than installing a plugin based only on the error wording. 3

Confirm that the WordPress session remains valid. Editor REST requests depend on user permissions and authentication; an open admin tab does not prove that the next request will succeed. 1

Check the server-side evidence

Review REST API notices in Tools → Site Health, and ask the host to correlate the failure time with server logs when necessary. 2

Do not disable every security control on the public site. If a particular rule blocks a legitimate request, fix that rule narrowly and verify the result.

For a regression following an update, reproduce it on staging with one change at a time. Finally, save again and inspect the public page. The disappearance of an error is not, by itself, proof that the intended revision was published.

Related reading

WordPress maintenance and performance

Sources

  1. WordPress: REST API authentication
  2. WordPress: Site Health screen
  3. MDN: using Fetch and opaque responses

Fact checked:

Let’s talk about your project

Tell me about your project

Tell me what you’d like to build or improve. You don’t need a finished brief — we’ll work out the scope and next steps together.

01 How can I help?
02 How many pages do you need?
03 Which extras do you need? Choose all that apply
04 When does it need to be ready?
05 Project details
06 Your contact details

Enquiry received

Thank you!

Your enquiry has been received. I usually reply by email within 2 working days.