Replies: 0
Hello!
I’ve run through most of the suggestions to deal with issues arising from update to WordPress 6.0 but the final one was beyond my technical comfort zone so hoping for help diagnosing the issue I’m facing please.
Prior to the update I’d been using Embeddable Affiliate Widgets from https://uk.bookshop.org/ like this…
<script
src="https://uk.bookshop.org/widgets.js"
data-type="book"
data-affiliate-id="5307"
data-sku="9781787331235"></script>
…using the following steps in the Visual Editor:
Create classic block
Edit as HTML
Paste in script like below (direct from bookshop.org)
Now when I try to do that I can get the widget to preview by repeatedly pasting the script into a block, choosing the Convert to HTML option from thd dropdown when I’m invited to Attempt Block Recovery.
But when I click Update I get this error: Updating failed. The response is not a valid JSON response.
When I preview in a new tab I just see the script. The existing widgets on my website seem to be working fine. Here are the errors from the Console when I inspet the page:
JQMIGRATE: Migrate is installed, version 3.3.2
deprecated.min.js?ver=96593d5d272d008fbcb6912fa0b86778:2 select( ‘core/edit-post’ ).getPreferences is deprecated since version 6.0. Please use select( ‘core/preferences’ ).get instead.
i @ deprecated.min.js?ver=96593d5d272d008fbcb6912fa0b86778:2
blocks.min.js?ver=70f0d7113c28590b968147e200d13a68:3 Updated Block: core/paragraph
21Unchecked runtime.lastError: The message port closed before a response was received.
jquery-migrate.min.js?ver=3.3.2:2 JQMIGRATE: Migrate is installed, version 3.3.2
vendors-AllFrames-TopFrame.js:1 Uncaught (in promise) DOMException: Failed to set the ‘cookie’ property on ‘Document’: The document is sandboxed and lacks the ‘allow-same-origin’ flag.
at s (chrome-extension://mklbhckkgddhlcdagmobdmnadpjokkkn/vendors-AllFrames-TopFrame.js:1:166278)
at Object.setItemStart (chrome-extension://mklbhckkgddhlcdagmobdmnadpjokkkn/AllFrames-TopFrame.js:1:173172)
at chrome-extension://mklbhckkgddhlcdagmobdmnadpjokkkn/vendors-AllFrames-TopFrame.js:1:114763
at s (chrome-extension://mklbhckkgddhlcdagmobdmnadpjokkkn/vendors-AllFrames-TopFrame.js:1:96731)
at Generator._invoke (chrome-extension://mklbhckkgddhlcdagmobdmnadpjokkkn/vendors-AllFrames-TopFrame.js:1:96484)
at Generator.next (chrome-extension://mklbhckkgddhlcdagmobdmnadpjokkkn/vendors-AllFrames-TopFrame.js:1:97090)
at j (chrome-extension://mklbhckkgddhlcdagmobdmnadpjokkkn/vendors-AllFrames-TopFrame.js:1:102031)
at a (chrome-extension://mklbhckkgddhlcdagmobdmnadpjokkkn/vendors-AllFrames-TopFrame.js:1:102238)
/wp-json/wp/v2/posts/695?_locale=user:1 Failed to load resource: the server responded with a status of 403 ()
39Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
4DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND
Any help very much appreciated as I’ve been banging my head for weeks and user support for my host, Bluehost, and Bookshop haven’t been able to help.
Thanks!