• tomstgeorge

    (@tomstgeorge)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Niloy

    (@im_niloy)

    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 plugin and provide login credentials.

    Best Regards,

    Niloy

    Thread Starter tomstgeorge

    (@tomstgeorge)

    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

    (@tomstgeorge)

    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.