Title: Javascript error
Last modified: December 19, 2020

---

# Javascript error

 *  Resolved [snathana](https://wordpress.org/support/users/snathana/)
 * (@snathana)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-189/)
 * Hi, Pro user here. I have created a slider with specific product IDs, which I’m
   calling via the shortcode `[woo_product_slider id="7784"]`. I have noticed that
   if for any reason I include the same shortcode twice in the page, I get a Javascript
   error as below:
 *     ```
       jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2 Uncaught TypeError: Cannot read property 'add' of null
           at Slick.initADA (slick.min.js?ver=2.5.12&d88b4d&d88b4d:1)
           at Slick.init (slick.min.js?ver=2.5.12&d88b4d&d88b4d:1)
           at new Slick (slick.min.js?ver=2.5.12&d88b4d&d88b4d:1)
           at s.fn.init.$.fn.slick (slick.min.js?ver=2.5.12&d88b4d&d88b4d:1)
           at HTMLDivElement.<anonymous> (scripts.min.js?ver=2.5.12&d88b4d&d88b4d:1)
           at Function.each (jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2)
           at s.fn.init.each (jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2)
           at HTMLDocument.<anonymous> (scripts.min.js?ver=2.5.12&d88b4d&d88b4d:1)
           at e (jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2)
           at t (jquery.min.js?ver=3.5.1&d88b4d&d88b4d:2)
       ```
   
 * I don’t see any visual impact on the site (both copies of the slider work), but
   I get Javascript error on the console which is not ideal UX. Can you take a look
   please?
 * Cheers,
    Spyros

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

 *  Thread Starter [snathana](https://wordpress.org/support/users/snathana/)
 * (@snathana)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-189/#post-13812652)
 * Apologies, reverting the above.
 * The second slider is _not_ showing, instead it’s stuck at the preloader image.
 *  Plugin Author [ShapedPlugin LLC](https://wordpress.org/support/users/shapedplugin/)
 * (@shapedplugin)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-189/#post-13855088)
 * Hi [@snathana](https://wordpress.org/support/users/snathana/),
 * Sorry, for the delay. You can’t use the same shortcode twice on a page. Rather
   you can duplicate the shortcode from All Sliders. See this [screenshot](https://prnt.sc/weid10).
 * After clicking on the duplicate button, you’ll find it as a draft and then, you
   need to publish it with the necessary customization if you want to do.
 * If you need more help, please ask and open a [support ticket](https://shapedplugin.com/ask-question/).
 * Have a good day.
 * Thank you very much!

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

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

 * ![](https://ps.w.org/woo-product-slider/assets/icon-256x256.png?rev=3506938)
 * [Product Slider, Product Carousel and Product Grid Gallery for WooCommerce – WooProduct Slider](https://wordpress.org/plugins/woo-product-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-slider/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [ShapedPlugin LLC](https://wordpress.org/support/users/shapedplugin/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-189/#post-13855088)
 * Status: resolved