JS error when selecting custom Lazy Blocks in Gutenberg after updating WP to 6.3
-
After auto-updating WP to 6.3, I get a JavaScript error in page editing when selecting a created Lazy block in Gutenberg block selection. Then all the blocks disappear and the message “The editor encountered an unexpected error” is displayed. This makes it impossible to add a block or edit already added blocks to the page. This completely blocks editing. I have observed that this error occurs when during block selection, you hover over a block created by Lazy Blocks and a small preview appears next to it. It looks like displaying this preview generates an error.
I checked it on WP 6.3 and Lazy Block versions 3.4.3 and 3.4.4, also on three of my clients’ sites – everywhere this problem occurs if WP is version 6.3. So this is not an isolated case. Of course, I checked disabling all plugins, only disabling Lazy Blocks fixes the situation, but then it can’t be used.
When I reverted WP to version 6.2.2 everything works fine. All this on PHP 8.1.
It seems that in WP 6.3 something changed in the content editor and Lazy Block needs to be updated. I found similar problems on the support pages of other plugins, e.g. Spectra, Ultimate Blocks.
The errors relate to WordPress JS files related to React:
al@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:82583 enqueueForceUpdate@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:114312 t/t.prototype.forceUpdate@/wp-includes/js/dist/vendor/react.min.js?ver=18.2.0:10:4584 forceUpdate@/wp-includes/js/dist/components.min.js?ver=2b6a7c11f8f33ae48ab1:48:36549 Jd/<@/wp-includes/js/dist/components.min.js?ver=2b6a7c11f8f33ae48ab1:48:35931 Ur@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:73411 Jr@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:80643 Zr@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:80489 Gr@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:80023 n/xl/<@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:91526 xl@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:92039 fl@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85808 Nn@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:32474 El@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:93374 n/xl/<@/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:89834 v@/wp-includes/js/dist/vendor/react.min.js?ver=18.2.0:10:3386 ce@/wp-includes/js/dist/vendor/react.min.js?ver=18.2.0:10:5527
- The topic ‘JS error when selecting custom Lazy Blocks in Gutenberg after updating WP to 6.3’ is closed to new replies.