• Anonymous User 18112676

    (@anonymized-18112676)


    Hello,
    I’ve got a weird issue which I’ve narrowed down pretty well.
    When I write ” schema ( ” in a page, even if in code-editor, I can’t save the page. I receive the error “Updating failed. The response is not a valid JSON response.”

    This error message seems pretty common, it has however many, many causes, none of which seem to be remotely linked to “schema (“.

    Site health is fine. I’ve disabled all the plugins separately, and the issue still occurred. I’ve also flushed the browser cache. WordPress is up to date, recent PHP.

    I can work around it pretty easily.
    I’ve tested it with another wordpress install (similar setup, a few different plugins), same problem.

    Btw. Schema is German for pattern, so it should come up from time to time.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Tyler

    (@tylerthedude)

    Do you happen to use Cloudflare by chance? If so, then most likely what’s happening here is the firewall is blocking JSON responses. When this happens, it will come back as a 5xx error. You could try temporarily disabling the firewall or the proxy altogether and see if the error goes away.

    Could you attach the errors you’re receiving at Wp-Admin -> Tools -> Site Health? The report would help as we can determine what’s causing the problem (most likely due to the REST API).

    Do you or have you used any security plugins which may have disabled the REST API? If so, then you may want to disable the option so the REST API is not being disabled.

    Thread Starter Anonymous User 18112676

    (@anonymized-18112676)

    I do not use Cloudflare. The hosting provider is a local one from Switzerland.
    I can remove some security policies through “ModSecurity”, however only 1 was set, and removing that didn’t change anything.But those normally just block a page and give an error message.

    Site health:
    you should remove inactive plugins
    have a default theme available

    I don’t know enough about IT to answer your question about rest api.
    Btw. I disabled all the ad-blockers and tried with mobile device. Same problem.

    Plugins:
    amCharts: Charts and Maps
    Disable Comments
    Font Awesome
    H5P
    MathJax-LaTeX
    Open External Links in a New Window
    Orbit Fox Companion
    Safe SVG
    Shortcodes Ultimate
    Slides & Presentations

    Even after disabling every single one except amCharts, the problem still persists.
    Should I contact the hosting provider? Anything specifically I can tell them?

    Tyler

    (@tylerthedude)

    Hm, interesting. One thing you could try is flush your permalinks as I’ve done this on some of my WordPress sites, which resolved the issue. To flush your permalinks, go to Wp-Admin -> Settings -> Permalinks and select the “Plain” radio button. Save the changes, and then try updating your page/post again (you may have to clear your browser’s cache in order for this to take effect). If that did the trick, then simply revert back to your original Permalink settings and it should work as expected.

    You may also want to reach out to your hosting provider and see if they are running any services which may be blocking/disabling the REST API. Sometimes, temporarily disabling mod_rewrite can fix the issue.

    Thread Starter Anonymous User 18112676

    (@anonymized-18112676)

    thanks for the suggestions.
    I tried Plain Permalinks, deleted cache and still the same problem.

    If it helps, underneath the chart, I get some text in blue (link?) that movies too fast down to click on anything, however I could copy it with alt+a. Could be a kind of error message or hint:
    menu.label.undefined
    Download as …
    PNG
    JPG
    SVG
    PDF
    Save as …
    CSV
    XLSX
    JSON
    Annotate …
    Print

    I will also contact my hosting provider and ask them. thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The response is not a valid JSON response.’ is closed to new replies.