Posts block, preview error
-
Hi there,
I’ve encountered a potential bug with the posts block in Otter. I can’t provide a link to the page as we are in pre-production and not live.
If I include more than one posts block on a single page, the block editor only renders the first posts block, subsequent posts blocks display te error This block has encountered an error and cannot be previewed.
The page previews and publishes without error.
I’m no WordPress expert, but I’ve included the console output below:
`react-dom.min.js?ver=16.9.0:103
TypeError: Cannot read property ‘name’ of undefined
at blocks.js?ver=1.5.10:1
at Array.map (<anonymous>)
at Z (blocks.js?ver=1.5.10:1)
at je (react-dom.min.js?ver=16.9.0:78)
at ph (react-dom.min.js?ver=16.9.0:215)
at lh (react-dom.min.js?ver=16.9.0:126)
at O (react-dom.min.js?ver=16.9.0:121)
at ze (react-dom.min.js?ver=16.9.0:118)
at react-dom.min.js?ver=16.9.0:53
at unstable_runWithPriority (react.min.js?ver=16.9.0:26)[DOM] Found 2 elements with non-unique id #_wpnonce: (More info: https://goo.gl/9p2vKq)
<input type=”hidden” id=”_wpnonce” name=”_wpnonce” value=”21333e4db8″>
<input type=”hidden” id=”_wpnonce” name=”_wpnonce” value=”3135642fab”>
The topic ‘Posts block, preview error’ is closed to new replies.