Title: Customizer Javascript error in plugin
Last modified: July 4, 2022

---

# Customizer Javascript error in plugin

 *  [ullikah](https://wordpress.org/support/users/ullikah/)
 * (@ullikah)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/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

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

 *  Thread Starter [ullikah](https://wordpress.org/support/users/ullikah/)
 * (@ullikah)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/customizer-javascript-error-in-plugin/#post-15842779)
 * Hello Team,
    Is this issue going to be addressed or has the plugin been abandoned.
   I feel tempted to report this to the WordPress crew to have this plugin removed
   because its causing quite a few issues in the Dashboard when activated.
 *  Plugin Contributor [Slava Shevchenko](https://wordpress.org/support/users/kaganvmz/)
 * (@kaganvmz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/customizer-javascript-error-in-plugin/#post-15843012)
 * [@ullikah](https://wordpress.org/support/users/ullikah/) Hi. Thanks for reporting
   the bug. We are on it. We will fix it as soon as possible.
 *  Plugin Contributor [Slava Shevchenko](https://wordpress.org/support/users/kaganvmz/)
 * (@kaganvmz)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/customizer-javascript-error-in-plugin/#post-15843140)
 * [@ullikah](https://wordpress.org/support/users/ullikah/) Could you please provide
   us with steps to reproduce the bug? I’ve just checked everything works in a proper
   way.

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

The topic ‘Customizer Javascript error in plugin’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice-and-consent-banner/assets/icon.svg?rev=2395849)
 * [Free Cookie Notice & Consent Banner for Privacy Compliance (GDPR, CCPA, DSGVO and others)](https://wordpress.org/plugins/cookie-notice-and-consent-banner/)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice-and-consent-banner/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice-and-consent-banner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice-and-consent-banner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice-and-consent-banner/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Slava Shevchenko](https://wordpress.org/support/users/kaganvmz/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/customizer-javascript-error-in-plugin/#post-15843140)
 * Status: not resolved