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

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

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1388844
    Ryan

    I’m using generatepress + generateblocks to build a site and whenever I use certain scripts in custom html blocks I get a “Updating failed. The response is not a valid JSON response.” error that prevents me from saving/updating the page.

    <div id="mni-membership-637269831464728009"></div><script src="https://eastcountychamber.chambermaster.com/Content/Script/Member.js" type="text/javascript"></script><script type="text/javascript">new MNI.Widgets.Member("mni-membership-637269831464728009",{member:53713,styleTemplate:"#@id{text-align:left;position:relative}#@id .mn-widget-member-name{font-weight:700}#@id .mn-widget-member-logo{max-width:100%}"}).create();</script>

    code like this from my local chamber of commerce…

    Now, this code works perfectly fine in another WordPress install just using Gutenberg blocks by itself and in other builders like Divi.

    I’ve also tried disabling every plugin except GP premium and generate blocks and the problem still persists.

    #1389099
    David
    Staff
    Customer Support

    Hi there,

    i tested your code using a HTML Block within and without using GenerateBlocks and it seems to work fine.

    There are quite a few reported issues of that error on wp.org just recently. A lot of users found its permalink related. Try hitting the Save button a couple of times in Settings > Permalinks and setting it to a plain format.

    #1389147
    Ryan

    Changing the permalinks does not seem to resolve the issue. Was there any other reasons for this error?

    #1389166
    David
    Staff
    Customer Support

    Can you check if there are any issues displayed in Dashboard > Tools > Site Health.

    #1390192
    Ryan

    No issues under site health other than to many themes and a lack of SSL.

    #1390381
    David
    Staff
    Customer Support

    You may need to check security plugin or server security settings ( your host should be able to assist here ) – as they may be blocking JS inside the post content.

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