Title: jQuery enqueue possible error
Last modified: December 16, 2021

---

# jQuery enqueue possible error

 *  Resolved [sacredsamf](https://wordpress.org/support/users/sacredsamf/)
 * (@sacredsamf)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/jquery-enqueue-possible-error/)
 * Hello.
    We get a script loading error:
 * <script type=”text/javascript” src=”SITE_URL_HEREjquery?ver=5.8.2″ id=”wcusage-
   ajax-script-js”></script>
 * I believe the problem is in the following function:
    woo-coupon-usage\inc\functions\
   functions-general.php line 21
 * function wcusage_enqueue_frontend_ajax() {
    … wp_enqueue_script( ‘wcusage-ajax-
   script’, ‘jquery’ ); … }
 * According to [https://developer.wordpress.org/reference/functions/wp_enqueue_script/](https://developer.wordpress.org/reference/functions/wp_enqueue_script/)
   the second parameter is SRC, not another HANDLE name. That is why we get a script
   with just site url + jquery as src.
 * Can you please check?
    Thanks.

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

 *  Plugin Author [Elliot Sowersby](https://wordpress.org/support/users/elliotvs/)
 * (@elliotvs)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/jquery-enqueue-possible-error/#post-15169397)
 * Hi [@sacredsamf](https://wordpress.org/support/users/sacredsamf/)
 * Thanks for the message.
 * Would you be able to provide a screenshot of the error you are getting please?
 * Elliot
 *  Thread Starter [sacredsamf](https://wordpress.org/support/users/sacredsamf/)
 * (@sacredsamf)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/jquery-enqueue-possible-error/#post-15169848)
 * [https://ibb.co/XW7vMr5](https://ibb.co/XW7vMr5)
    [https://ibb.co/5GRdzhD](https://ibb.co/5GRdzhD)
 *  Plugin Author [Elliot Sowersby](https://wordpress.org/support/users/elliotvs/)
 * (@elliotvs)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/jquery-enqueue-possible-error/#post-15169911)
 * Thanks!
 * Will take a look into this and get back to you soon.
 *  Plugin Author [Elliot Sowersby](https://wordpress.org/support/users/elliotvs/)
 * (@elliotvs)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/jquery-enqueue-possible-error/#post-15170665)
 * Hi [@sacredsamf](https://wordpress.org/support/users/sacredsamf/)
 * Please could you update to version 4.15.1.1 and give it a try? The error should
   be fixed now.
 * Thanks,
 * Elliot

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

The topic ‘jQuery enqueue possible error’ is closed to new replies.

 * ![](https://ps.w.org/woo-coupon-usage/assets/icon-128x128.png?rev=3157888)
 * [Coupon Affiliates – Affiliate Plugin for WooCommerce](https://wordpress.org/plugins/woo-coupon-usage/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-coupon-usage/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-coupon-usage/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-coupon-usage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-coupon-usage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-coupon-usage/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 4 replies
 * 2 participants
 * Last reply from: [Elliot Sowersby](https://wordpress.org/support/users/elliotvs/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/jquery-enqueue-possible-error/#post-15170665)
 * Status: resolved