When creating a product loop, which contains a custom image field, if not all posts/products have an image assigned to the field, get error in BD (one the frontend everything displays OK):
Bad escaped character in JSON at position 392 (line 1 column 393)
I've found this on WooCommerce products, so my means to reproduce has been :
Add a new 'single image' field from metabox as a new field for 'products'. Do not populate the images in the products, or do not populate them all
create a global block with an image element pulling dynamically from the field create above
on a page, set up a post loop which targets 'products'
use the global block created above. the error will be returned immediately
While I'm using products here and metabox, this is also reproducible on posts in a post-archive template where a featured image has not been set (no metabox in the mix)
Breakdance v2.0 Metabox 5.9.11 / Metabox AIO 1.28
When creating a product loop, which contains a custom image field, if not all posts/products have an image assigned to the field, get error in BD (one the frontend everything displays OK):
Bad escaped character in JSON at position 392 (line 1 column 393)
{"type":"NETWORK_ERROR","errorDetails":{"friendlyName":"WordPress AJAX Request","message":"Bad escaped character in JSON at position 392 (line 1 column 393)"},"requestDetails":{"friendlyName":"WordPress AJAX Request","responseCode":"200","requestUrl":"https://geniussupplements.co.uk/?page_id=644&_breakdance_doing_ajax=yes&_ajax_nonce=e44500924b","requestMethod":"POST","body":{"action":"breakdance_server_side_render","properties":"{\"content\":{\"repeated_block\":{\"global_block\":648},\"query\":{\"query\":{\"active\":\"custom\",\"text\":\"post_type=post\",\"custom\":{\"source\":\"post_types\",\"postsPerPage\":8,\"conditions\":[[{}]],\"totalPosts\":null,\"ignoreStickyPosts\":false,\"ignoreCurrentPost\":false,\"postTypes\":[\"product\"],\"orderBy\":\"date\",\"order\":\"DESC\",\"date\":\"all\",\"beforeDate\":null,\"afterDate\":null,\"offset\":null,\"acfField\":null,\"metaboxField\":null},\"php\":\"return ['post_type' => 'post'];\"}}}}","parentProperties":"{}","elementSlug":"EssentialElements\PostsLoop","triggeringDocument":644,"totalMatchingElements":1,"currentIndexInMatchingElements":0,"breakdance_ajax_at_any_url":"true"},"requestTimeGmt":"Tue, 23 Jul 2024 20:20:58 GMT"}}
I've found this on WooCommerce products, so my means to reproduce has been :
While I'm using products here and metabox, this is also reproducible on posts in a post-archive template where a featured image has not been set (no metabox in the mix)