Block Encountered an Error (JS issue in Tabs.js)
- This topic has 5 replies, 2 voices, and was last updated 11 months ago by
Peter.
-
AuthorPosts
-
April 17, 2025 at 12:52 AM #48082
Michele Schembri
ParticipantI have Metabox 5,10,8 and MB Blocks 1.7.4.
When clicking on a block in a specific block that's rendered, I get the message 'This block has encountered an error and cannot be previewed'.
Image for reference: https://ibb.co/TB59H0PB
Error for reference:
TypeError: Cannot read properties of null (reading 'click') at tabs.js?ver=1.2.0:75:47 at NodeList.forEach (<anonymous>) at setActiveTabsFromLocalStorage (tabs.js?ver=1.2.0:72:13) at HTMLDocument.<anonymous> (tabs.js?ver=1.2.0:94:3) at HTMLDocument.dispatch (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.7.2:2:40035) at v.handle (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.7.2:2:38006) at Object.trigger (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.7.2:2:70124) at HTMLFormElement.<anonymous> (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.7.2:2:70726) at ce.each (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.7.2:2:3129)April 17, 2025 at 9:32 PM #48092Peter
ModeratorHello Michele,
Thank you for your feedback.
What is the WordPress version on your site? If it is WP 6.8, the issue has been reported here https://support.metabox.io/topic/issue-with-wordpress-6-8/
April 21, 2025 at 10:38 PM #48130Michele Schembri
ParticipantHi, WordPress version is 6.7.2. Thanks.
April 22, 2025 at 11:06 PM #48135Peter
ModeratorHello,
Please update plugin MB Blocks to the new version 1.7.5 and WordPress 6.8 then check the issue again. If it still doesn't work, please share the code that you use to create the custom block or export the field group to a JSON file and share it with me. I will import it to my site and investigate the issue.
April 23, 2025 at 10:09 PM #48142Michele Schembri
ParticipantThe issue persists - one way of overcoming it was to disable the MB Tabs plugin. However of course that's not a fix as now I can't use tabs.
April 24, 2025 at 10:25 PM #48156Peter
ModeratorHello,
Thank you for the feedback. I can reproduce the issue on my demo site.
It has been escalated to the development team to fix the issue with tabs when using custom blocks. I will let you know when it's done. -
AuthorPosts
- You must be logged in to reply to this topic.