Title: PHP Notice: Function wp_script_is was called incorrectly
Last modified: October 29, 2025

---

# PHP Notice: Function wp_script_is was called incorrectly

 *  Resolved [LexGear](https://wordpress.org/support/users/lexgear/)
 * (@lexgear)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/php-notice-function-wp_script_is-was-called-incorrectly/)
 * I’m on version 10.3.3 and I’m still getting heaps of warnings from woocommerce.
   Warnings related to woo and libraries:
    - flexslider
    - jquery-blockui
    - jquery-cookie
    - jquery-payment
    - photoswipe
    - prettyPhoto
    - select2
    - zoom
 * Example:
   **Notice**: Function wp_script_is 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 `flexslider` 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 **/var/www/
   html/wp-includes/functions.php** on line **6121**
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-notice-function-wp_script_is-was-called-incorrectly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/php-notice-function-wp_script_is-was-called-incorrectly/#post-18699219)
 * Hi there,
 * Thank you for bringing this to our attention.
 * To assist you further, could you please check if you still face the same issue**
   after deactivating all plugins except WooCommerce** and activate default theme
   like twenty twenty five or storefront?
 * I’ve tried to replicate this issue on my site, but I wasn’t able to reproduce
   it. My suspicion is that **custom code or another plugin on your site may be 
   calling these scripts incorrectly**, which is triggering the notices for FlexSlider,
   jQuery BlockUI, jQuery Cookie, and the other libraries you mentioned.
 * If you still face the same issue even after **deactivating all plugins** and **
   activating a default theme** like Twenty Twenty, please share your **System Status
   Report**.
 * You can find it here: **WooCommerce → Status**.
 * Please copy the report and paste it into [https://pastebin.com/](https://pastebin.com/)
   or [https://gist.github.com/](https://gist.github.com/), then share the link 
   in your reply. Once we have this information, we’ll be able to assist you further.
 *  Plugin Support [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/php-notice-function-wp_script_is-was-called-incorrectly/#post-18699233)
 * Hi there!
   This is a follow-up message.
 * In the latest WooCommerce version, some changes were made that may cause certain
   plugins using **deprecated functions** to trigger notices, as described here:
   [WooCommerce PR #61589](https://github.com/woocommerce/woocommerce/pull/61589).
 * To resolve these notices, you’ll need to **identify which plugins are causing
   them** and contact the respective plugin support teams so they can update their
   plugins to be compatible with the latest WooCommerce version.
 *  Plugin Support [thelmachido a11n](https://wordpress.org/support/users/thelmachido/)
 * (@thelmachido)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/php-notice-function-wp_script_is-was-called-incorrectly/#post-18704274)
 * It’s been a while since we heard back from you for this reason we are closing
   this thread. 
 * If WooCommerce has been useful for your store and you appreciate the support 
   you’ve received, we’d truly appreciate it if you could leave us a quick review
   here: 
 *  [https://wordpress.org/support/plugin/woocommerce/reviews/#new-post](https://wordpress.org/support/plugin/woocommerce/reviews/#new-post)
 * Feel free to open a new forum topic if you run into any other problem. 

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

The topic ‘PHP Notice: Function wp_script_is was called incorrectly’ is closed to
new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [thelmachido a11n](https://wordpress.org/support/users/thelmachido/)
 * Last activity: [7 months, 1 week ago](https://wordpress.org/support/topic/php-notice-function-wp_script_is-was-called-incorrectly/#post-18704274)
 * Status: resolved