Block Encountered an Error (JS issue in Tabs.js)

Support MB Blocks Block Encountered an Error (JS issue in Tabs.js)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #48082
    Michele SchembriMichele Schembri
    Participant

    I 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)
    
    #48092
    PeterPeter
    Moderator

    Hello 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/

    #48130
    Michele SchembriMichele Schembri
    Participant

    Hi, WordPress version is 6.7.2. Thanks.

    #48135
    PeterPeter
    Moderator

    Hello,

    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.

    #48142
    Michele SchembriMichele Schembri
    Participant

    The 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.

    #48156
    PeterPeter
    Moderator

    Hello,

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.