Title: Javascript error
Last modified: January 26, 2024

---

# Javascript error

 *  [tomstgeorge](https://wordpress.org/support/users/tomstgeorge/)
 * (@tomstgeorge)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-230/)
 * When I activate the plugin I’m seeing a javasript error on page:
 * Uncaught TypeError: Cannot read properties of null (reading ‘add’)
   at e.initADA(
   slick.min.js?ver=2.3.2:1:19335)at e.init (slick.min.js?ver=2.3.2:1:19101)at new(
   slick.min.js?ver=2.3.2:1:2832)at i.fn.slick (slick.min.js?ver=2.3.2:1:42781)at
   Object.slick (wpgs.js?ver=2.3.2:29:19)at Object.resetImages (wpgs.js?ver=2.3.2:
   252:31)at HTMLFormElement. (wpgs.js?ver=2.3.2:284:32)at HTMLFormElement.dispatch(
   jquery.min.js?ver=3.7.1:2:40035)at v.handle (jquery.min.js?ver=3.7.1:2:38006)
   at Object.trigger (jquery.min.js?ver=3.7.1:2:70124)
 * This is preventing ajax call from completing when selecting the 3 product attributes–
   preventing users from being able to buy this product.
   I did some research on 
   this javascript error and it appears to occur when slick.js is initialised twice.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-230%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Niloy – Codeixer](https://wordpress.org/support/users/im_niloy/)
 * (@im_niloy)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-230/#post-17375301)
 * Hi,
 * It’s possible that there could be an issue with your theme or another plugin 
   causing a conflict.
 * **How to test for conflicts:**
 * The best way to determine if a theme and/or plugin is causing the issue is to:
    1. Temporarily switch your theme to WordPress Default theme.
    2. Try to reproduce the problem. If the problem is resolved, it’s a theme conflict.
       If not, continue to the next steps.
    3. Temporarily deactivate all plugins except WooCommerce.
    4. Try to reproduce the problem again. If the problem is resolved, it’s a plugin
       conflict. To figure out which plugin is causing the problem, continue to the
       next step.
    5. Reactivate your other plugins one by one, testing after each, until you find
       the one causing conflict.
 * If it does, it’s likely a conflict with your current theme or one of the plugins.
 * I hope this information is helpful to you.
 * You can clone your site to a staging environment and perform tests without modifying
   your live site or impacting customers. Many hosts provide staging facilities,
   so it’s worth checking in with them. It’s also possible to do it using the free
   [WP Staging](https://wordpress.org/plugins/wp-staging/) plugin and provide login
   credentials.
 * —
 * Best Regards,
 * Niloy
 *  Thread Starter [tomstgeorge](https://wordpress.org/support/users/tomstgeorge/)
 * (@tomstgeorge)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-230/#post-17376141)
 * Thank you for your response – that is very helpful.
 * When I switch to the default Woocommerce theme the issue disappears so it looks
   like it is the theme.
   This is a custom theme that I have inherited – any pointers
   on what might need to be updated to get this theme to support this plugin?thanks
   for your help!
 *  Thread Starter [tomstgeorge](https://wordpress.org/support/users/tomstgeorge/)
 * (@tomstgeorge)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-230/#post-17378304)
 * I switched to **Gallery Slider for WooCommerce** which doesn’t have this issue.
 * thanks anyway

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

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

 * ![](https://ps.w.org/woo-product-gallery-slider/assets/icon-256x256.gif?rev=3065029)
 * [Product Gallery Slider, Additional Variation Images for WooCommerce](https://wordpress.org/plugins/woo-product-gallery-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-gallery-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-gallery-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-gallery-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-gallery-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-gallery-slider/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [tomstgeorge](https://wordpress.org/support/users/tomstgeorge/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-230/#post-17378304)
 * Status: not resolved