Title: Function wp_enqueue_script was called incorrectly
Last modified: January 3, 2025

---

# Function wp_enqueue_script was called incorrectly

 *  [Todd Farino](https://wordpress.org/support/users/tfarino/)
 * (@tfarino)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-10/)
 * Hi we just installed the free version to check out the plugin and we immediately
   got this notice visible on top of all the pages,
 * **Notice**: Function 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. This notice was triggered
   by the `salon-customServiceCategory` handle. Please see [Debugging in WordPress](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   for more information. (This message was added in version 3.3.0.) in **/home/xhkzl3jxzjvl/
   public_html/wp-includes/functions.php** on line **6114**
 *     ```wp-block-code
       Avada VersionsCurrent Version: 7.11.13Previous Version: 7.11.4 7.11.5 7.11.6 WordPress EnvironmentHome URL: https://thesupernursery.comSite URL: https://thesupernursery.comWP Content Path: /home/xhkzl3jxzjvl/public_html/wp-contentWP Path: /home/xhkzl3jxzjvl/public_html/WP Version: 6.7.1WP Multisite: –PHP Memory Limit: 256 MBWP Debug Mode: ✔Language: en Server EnvironmentServer Info: ApachePHP Version: 8.1.31PHP Post Max Size: 128 MBPHP Time Limit: 300PHP Max Input Vars: 3000ZipArchive: ✔cURL: ✔mail: ✔MySQL Version: 10.6.20Max Upload Size: 128 MBDOMDocument: ✔WP Remote Get: ✔WP Remote Post: ✔GD Library: 2.3.3 Active Plugins (19)Advanced Custom Fields PRO: by WP EngineAkismet Anti-spam: Spam Protection: by Automattic - Anti-spam TeamAll-in-One WP Migration: by ServMaskWooCommerce Delivery & Pickup Date Time Pro: by CodeRockzSuper Nursery Builder: by Super NurserySuper Nursery Core: by Super NurserySuper Nursery Custom Branding: by Super NurseryReally Simple Security: by Really Simple SecurityRearrange Woocommerce Products: by Aslam DoctorSalon Booking WordPress Plugin - Free Version: by Salon Booking SystemUpdraftPlus - Backup/Restore: by TeamUpdraftDavidAndersonWooCommerce Payment Gateway Based Fees: by InoPlugsWooCommerce Checkout Add-Ons: by SkyVergeWooCommerce Square: by WooCommerceWooCommerce: by AutomatticWP Mail SMTP: by WP Mail SMTPSEOPress PRO: by The SEO Guys at SEOPressSEOPress: by The SEO Guys at SEOPressWPS Hide Login: by WPServeurNicolasKulkawpformation
       ```
   
 * Thank you for all your help on this.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-wp_enqueue_script-was-called-incorrectly-10%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 * ![](https://ps.w.org/salon-booking-system/assets/icon-256x256.gif?rev=3214950)
 * [Salon Booking System - Free Version](https://wordpress.org/plugins/salon-booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salon-booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salon-booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/salon-booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salon-booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salon-booking-system/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Todd Farino](https://wordpress.org/support/users/tfarino/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-10/)
 * Status: not resolved