Flex Slider js error for only some products
-
Hi all,
We have an online store with thousands of products that are all working as expected but a few new items that I added last night are throwing a javascript error dealing with the flexslider where there is more than one image.
Uncaught TypeError: e.indexOf is not a function jQuery 11 initFlexslider https://c0.wp.com/p/woocommerce/6.1.0/assets/js/frontend/single-product.min.js:1 e https://c0.wp.com/p/woocommerce/6.1.0/assets/js/frontend/single-product.min.js:1 wc_product_gallery https://c0.wp.com/p/woocommerce/6.1.0/assets/js/frontend/single-product.min.js:1 <anonymous> https://c0.wp.com/p/woocommerce/6.1.0/assets/js/frontend/single-product.min.js:1 jQuery 2 <anonymous> https://c0.wp.com/p/woocommerce/6.1.0/assets/js/frontend/single-product.min.js:1 jQuery 2Sample page is here: https://www.pre60s.com/product/under-dash-switch-plate-3/
A single image will always work and I’ve tried replacing the images with other ones that I know do work so it’s only happening on select (maybe 4 or 5) products with more than one image.
I didn’t have jetpack’s lazyload enabled but I did just enable that to see if it would make a difference and it did not.
Any help would be awesome.
Thanks!
The page I need help with: [log in to see the link]
-
Also wort noting that all plugins are up to day and there’s no conflicting plugins.
Okay, so now I’m going through the site and it’s every product that has more than one image. I’m going to check deeper for any javascript conflicts.
It looks like it’s an issue with my theme so I’ll mark this as resolved and keep working on it!
Thanks for letting us know.
Feel free to create a new topic if you need assistance with anything else.
Hi,
I have this same issue with the latest version. I have rolled back to version 6.0.0 and the problem is fixed.
I fixed this by updating flexslider js.
wp_dequeue_script( 'flexslider' ); wp_register_script('cdnflex', "https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.7.2/jquery.flexslider-min.js", array('jquery'), '1.0', 'all'); wp_enqueue_script('cdnflex');
The topic ‘Flex Slider js error for only some products’ is closed to new replies.