Site logo

[Support request] “Updating failed. The response is not a valid JSON response.”

Home Forums Support [Support request] “Updating failed. The response is not a valid JSON response.”

Home Forums Support “Updating failed. The response is not a valid JSON response.”

  • This topic has 5 replies, 2 voices, and was last updated 3 years ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2568233
    Matt

    I’ve just pushed a staging version of my site live where I switched from Divi to Generatepress theme. No other plugins changed, and I’m getting the error message here. Any idea why?

    #2568453
    David
    Staff
    Customer Support

    Hi there,

    (generally) WP throws that error if it cannot communicate with the REST API, which can simply be a permalink issue.
    First thing to try is regenerating permalinks, by going to Settings > Permalinks and Click Save Changes.

    If the issue persists, go to the Tools > Site Health and check if there are any issues related to the REST API being reported.

    #2570771
    Matt

    Hi – nothing showing related to Rest API… I tried the permalinks too.

    #2570893
    David
    Staff
    Customer Support

    What is on the page ?
    As the other issue can arise if there are shortcodes on the page that the editor “doesn’t like”

    #2570991
    Matt

    It happened when trying to embed a cookie policy into an html block. Other than that it was an empty page, as per this demo.

    #2571245
    David
    Staff
    Customer Support

    Yeah it probably doesn’t like the script in there.

    You can create a shortcode using the PPH Snippet here:

    https://docs.generatepress.com/article/creating-a-shortcode/

    Add your code in place of short code example

    And rename the my_shortcode to something useful eg. cookie then you can add [cookie] shortcode in the editor.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.