• Resolved lucamortellaro98

    (@lucamortellaro98)


    Hi everyone,

    I’m facing an issue with Lazy Blocks version 3.8.2 on my WordPress site running version 6.7.1. When I try to interact with or preview my blocks in the editor, I get the following error message:

    “This block has caused an error and cannot be previewed.”

    Additionally, the browser console shows the error:

    First argument must be a String, HTMLElement, HTMLCollection, or NodeList

    This error seems to be originating from the file /wp-includes/js/dist/compose.min.js?ver=85f0708cd2e6b26addeb on line 9.

    Here’s what I’ve tried so far to resolve the issue:

    1. Updated WordPress to 6.7.1 and Lazy Blocks to 3.8.2.
    2. Disabled all other plugins except Lazy Blocks and switched to a default WordPress theme (Twenty Twenty-One) to rule out theme/plugin conflicts.
    3. Checked custom JavaScript in my blocks to ensure proper DOM references and no missing elements.
    4. Cleared the browser cache and tried incognito mode, but the issue persists.

    Despite these efforts, I’m unable to preview or interact with any blocks, and the error remains across multiple blocks.

    Has anyone encountered this specific issue with these versions? Any suggestions or fixes would be greatly appreciated!

    Thanks in advance for your help!

    Best regards,

    Luca

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error: ‘This block has caused an error and cannot be previewed’’ is closed to new replies.