Title: wp_enqueue_script was called incorrectly
Last modified: June 5, 2017

---

# wp_enqueue_script was called incorrectly

 *  Resolved [Daniel Payne](https://wordpress.org/support/users/djepayne/)
 * (@djepayne)
 * [9 years ago](https://wordpress.org/support/topic/wp_enqueue_script-was-called-incorrectly-12/)
 * I just read about your set of four plugins, however when I added this first plugin
   it started throwing error notices:
 * `Notice: wp_enqueue_script was called incorrectly. Scripts and styles should 
   not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts,
   or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information.(
   This message was added in version 3.3.0.) in /homepages/46/d271605949/htdocs/
   tualatinweb/membership/wp-includes/functions.php on line 4138`

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

 *  [John Locke](https://wordpress.org/support/users/lockedown/)
 * (@lockedown)
 * [9 years ago](https://wordpress.org/support/topic/wp_enqueue_script-was-called-incorrectly-12/#post-9199034)
 * I experienced this too, when a site is in WP_DEBUG mode.
 *  Thread Starter [Daniel Payne](https://wordpress.org/support/users/djepayne/)
 * (@djepayne)
 * [9 years ago](https://wordpress.org/support/topic/wp_enqueue_script-was-called-incorrectly-12/#post-9199043)
 * John,
 * Good eye.
 * I just updated my wp-config.php file and removed the WP_DEBUG setting, so that
   notice no longer appears, however shouldn’t this plugin fix their code while 
   using WP_DEBUG mode?
 *  Plugin Contributor [LisaK.social](https://wordpress.org/support/users/lisaksocial/)
 * (@lisaksocial)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/wp_enqueue_script-was-called-incorrectly-12/#post-9375376)
 * Hi Guys,
    We appreciate the feedback and have fixed this code.
 * Thanks for using Chamber Dashboard!
    -Lisa K.

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

The topic ‘wp_enqueue_script was called incorrectly’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/chamber-dashboard-business-directory_d5d3dc.
   svg)
 * [Chamber Dashboard Business Directory](https://wordpress.org/plugins/chamber-dashboard-business-directory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/chamber-dashboard-business-directory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/chamber-dashboard-business-directory/)
 * [Active Topics](https://wordpress.org/support/plugin/chamber-dashboard-business-directory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/chamber-dashboard-business-directory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/chamber-dashboard-business-directory/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [LisaK.social](https://wordpress.org/support/users/lisaksocial/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/wp_enqueue_script-was-called-incorrectly-12/#post-9375376)
 * Status: resolved