Customizer Javascript error in plugin
-
Hi,
The plugin is causing the following JavaScript/jQuery error in customizer:
Uncaught TypeError: can’t access property “container”, customize.control(…) is undefined. in “wordpress.site/wp-content/plugins/cookie-notice-and-consent-bannercookie-notice-and-consent-banner//js/customizer.js?ver=1.7.4”
Since the error seems to occur only under certain conditions it seems the loadscript.php doesn’t load all resources under certain plugin constellations.
It may be necessary to update the script with a “typeof” request to check if the function is defined before calling it and call on another function which would then define the required customize.control(…) function in case the “typeof” request comes back with an “undefined” response.
The error also occurs in other Dashboard/wp-admin areas which access plugin resources.
Environment used is: Elementor Free / Theme: OceanWP / WordPress Whitelabel / WP Hide.
Cheers
- The topic ‘Customizer Javascript error in plugin’ is closed to new replies.