When I deactivate WPDataTables, the error disappears, and Elementor works normally. Similarly, if Elementor is inactive, the error also goes away. However, when both are active, the error prevents any Elementor-dependent functionality (like toggle menus and other JavaScript-based interactions) from working.
Interestingly, I have other WordPress sites running the same versions of Elementor and WPDataTables where this issue does not occur. This suggests the problem might be related to how the script is loaded or a dependency conflict.
Steps I’ve tried:
1. Deactivating all other plugins – the issue persists as long as both WPDataTables and Elementor are active.
2. Switching to a default WordPress theme – the issue remains.
3. Checking for JavaScript dependencies – it seems the script may assume that elementor is available before it’s actually loaded.
Can you help identify why this is happening and provide a solution? Is there a way to ensure that wdt-custom-elementor-js.js only executes after Elementor is fully loaded?
Our developers released a new Update 7.1 in the meantime, which has a fix for this bug, that throws the error "elementor is not defined" in the browser developer console.
That is usually manifested by Elementor Navigation menu dropdowns not working, and similar issues like that.
Please update wpDataTables to the latest version 7.1 and purge cache of the Site after the update - just to avoid any 'old cache issues'.
Then refresh the Page and let us know if the issue is fixed on your Site.
I am experiencing a JavaScript error related to WPDataTables on my WordPress site when Elementor is active. The error in the console is:
ReferenceError: Can't find variable: elementor
The issue originates from the file:
https://aifi.net/wp-content/plugins/wpdatatables/integrations/starter/page-builders/elementor/js/wdt-custom-elementor-js.js?ver=7.0.1
When I deactivate WPDataTables, the error disappears, and Elementor works normally. Similarly, if Elementor is inactive, the error also goes away. However, when both are active, the error prevents any Elementor-dependent functionality (like toggle menus and other JavaScript-based interactions) from working.
Interestingly, I have other WordPress sites running the same versions of Elementor and WPDataTables where this issue does not occur. This suggests the problem might be related to how the script is loaded or a dependency conflict.
Steps I’ve tried:
1. Deactivating all other plugins – the issue persists as long as both WPDataTables and Elementor are active.
2. Switching to a default WordPress theme – the issue remains.
3. Checking for JavaScript dependencies – it seems the script may assume that elementor is available before it’s actually loaded.
Can you help identify why this is happening and provide a solution? Is there a way to ensure that wdt-custom-elementor-js.js only executes after Elementor is fully loaded?
Thank you for your assistance.
How can I downgrade to the previous version that didn’t cause the error?
Hello,
Just following up on this issue.
Our developers released a new Update 7.1 in the meantime, which has a fix for this bug, that throws the error "elementor is not defined" in the browser developer console.
That is usually manifested by Elementor Navigation menu dropdowns not working, and similar issues like that.
Please update wpDataTables to the latest version 7.1 and purge cache of the Site after the update - just to avoid any 'old cache issues'.
Then refresh the Page and let us know if the issue is fixed on your Site.
Thank you.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables