Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Updating failed. The response is not a valid JSON response.

  • Hi guys,

    Getting this error at the moment. After trying to debug the fault it seems shortcodes (or specifically WP Show Post) is giving me this error.

    Is this something the team is aware of? How can I work around it?

    TIA

    Luis

  • Hi there,

    Previous users who encountered this same type of error found it related to ModSecurity settings on their server.

    https://generatepress.com/forums/topic/issue-editing-elements-the-response-is-not-a-valid-json-response/#post-2318842
    https://generatepress.com/forums/topic/updating-failed-the-response-is-not-a-valid-json-response-trying-update-pages/#post-2160217

    You may want to reach out to your hosting support to see if this is the same case.

  • Hi Alvind,

    Wouldn’t this stop all posts being saved or updated? Because any new posts I make without the shortcode inserted can be saved as normal.

    Luis

  • Hi there,

    whilst in the editor, can you right click and inspect the page to open the browser developers tools.
    And check in the Console tab for any red errors, before and after the Updating failed. notice appears.

  • Hi David,

    I had a look and couldn’t see anything obvious.

    I’ve made an account for you, please have a look and see what you can find.

    It probably only started happening sometime in the last few weeks.

    Luis

  • If you notice, even though there is an error when saving the post, it actually does save. You can confirm this by viewing the post on the frontend.

    Have you tried re-saving the permalinks?

  • Hi Alvind,

    Yes it appears to save most of it.. hmm. But any changes I make to SEO title, Meta description etc are ignored though. =(

    Yes, I have resaved permalinks.

    Any ideas why this is only happening with shortcodes?

    Luis

  • I’m not entirely sure why that’s happening. The browser console isn’t showing any warnings either, so there’s no clue as to what the problem might be.

    Could you check the Tools > Site Health section to see if there are any critical issues that need addressing? I’m unable to view them even after logging into your site because the account role isn’t admin.

  • Site Health is just showing this >

    PHP modules perform most of the tasks on the server that make your site run. Any changes to these must be made by your server administrator.
    The WordPress Hosting Team maintains a list of those modules, both recommended and required, in the team handbook(opens in a new tab).
    Warning The optional module, imagick, is not installed, or has been disabled.
    Warning The optional module, intl, is not installed, or has been disabled.

  • Install the Query Monitor Plugin:

    https://wordpress.org/plugins/query-monitor/

    It will report any errors that occur on the page, let us know if it shows anything before or after the Update failed notice occurs

  • Hi David,

    I don’t know how often this happens… but the problem has seemingly disappeared. =)

    I have some suspicions / theory but I’ll wait for it to remerge (if it does) before confirming.

    Thanks for all the help!

    Luis

  • Glad to hear that, hopefully it doesn’t re-emerge 🙂

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