- This topic has 3 replies, 2 voices, and was last updated 1 week, 6 days ago by
Tahasin.
Hi,
since updating to WordPress 7 some of the WPDM Gutenberg blocks are throwing the following error in the editor console and failing to render:
TypeError: parameter 1 is not of type ‘Element’.
at Zd (wp-includes/js/dist/components.min.js)
at whileElementsMounted
…
The full stack trace points to @wordpress/components and specifically to Floating UI’s whileElementsMounted function. This appears to be caused by a breaking change in WordPress 7, which ships a newer and stricter version of Floating UI. Any block that uses Popover, DropdownMenu, or similar components from @wordpress/components is affected if the reference element is not yet mounted in the DOM when Floating UI tries to attach to it.
I am not the only one experiencing this — the same error occurs with blocks from other plugins, so it is a compatibility issue with WordPress 7’s updated component library rather than an isolated bug.
Could you please look into updating the WPDM blocks to handle this case? In the meantime I am working around it by using shortcodes instead of blocks.
WordPress version: 7.x
WPDM version: 3.3.58
PHP version: 8.4.16
Thanks
Hello,
I hope this message finds you well and thanks for reaching out.
Could you please share a few relevant URLs where the blocks are not rendering properly? This will help us take a closer look and investigate the issue more effectively.
Regards
Hi,
just to clarify: the issue does not affect the frontend rendering of pages or posts, which works normally where blocks have already been inserted. The error occurs in the WordPress block editor (Gutenberg) when trying to insert or use WPDM blocks while editing a post or page in the backend.
There are no URLs to share since the problem is entirely within the wp-admin editing interface. To reproduce it, simply open any post or page in the block editor and try inserting a WPDM block — the TypeError will appear in the browser console and the block will fail to load.
As mentioned in my original report, the root cause appears to be a compatibility issue with the updated Floating UI library shipped with WordPress 7’s @wordpress/components. The same error occurs with blocks from other plugins that have not yet been updated to handle this breaking change.
P.S. That said, here is a page where a WPDM block is currently in use on the frontend: https://www.informaticando.eu/windows/come-ripristinare-windows-update/
Thanks
You must be logged in to reply to this topic.