SOLVED: JQuery Error on Woocommerce Flexslider

Bricks Version: 1.3.6
Browser: Firefox
OS: Windows

Hey folks,

So basic install – Bricks 1.3.6 with Woocommerce

When I add a product that uses the featured image, but also the gallery for additional photos I get this error.

jquery.min.js?ver=3.6.0:2 jQuery.Deferred exception: e.indexOf is not a function TypeError: e.indexOf is not a function
        at S.fn.init.S.fn.load (http://localhost:10035/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:84932)
        at new S.fn.init (http://localhost:10035/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:25740)
        at S (http://localhost:10035/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:1051)
        at Object.setupPaging (http://localhost:10035/wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1:4866)
        at Object.setup (http://localhost:10035/wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1:4464)
        at Object.init (http://localhost:10035/wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1:2106)
        at new v.flexslider (http://localhost:10035/wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1:21309)
        at HTMLDivElement.<anonymous> (http://localhost:10035/wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1:22487)
        at Function.each (http://localhost:10035/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:3003)
        at S.fn.init.each (http://localhost:10035/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:1481) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.0:2
    jquery.min.js?ver=3.6.0:2 Uncaught TypeError: e.indexOf is not a function
        at S.fn.init.S.fn.load (jquery.min.js?ver=3.6.0:2)
        at new S.fn.init (jquery.min.js?ver=3.6.0:2)
        at S (jquery.min.js?ver=3.6.0:2)
        at Object.setupPaging (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
        at Object.setup (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
        at Object.init (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
        at new v.flexslider (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
        at HTMLDivElement.<anonymous> (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
        at Function.each (jquery.min.js?ver=3.6.0:2)
        at S.fn.init.each (jquery.min.js?ver=3.6.0:2)

and this one

Uncaught TypeError: e.indexOf is not a function
    at S.fn.init.S.fn.load (jquery.min.js?ver=3.6.0:2)
    at new S.fn.init (jquery.min.js?ver=3.6.0:2)
    at S (jquery.min.js?ver=3.6.0:2)
    at Object.setupPaging (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
    at Object.setup (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
    at Object.init (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
    at new v.flexslider (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
    at HTMLDivElement.<anonymous> (jquery.flexslider.min.js?ver=2.7.2-wc.6.1.0:1)
    at Function.each (jquery.min.js?ver=3.6.0:2)
    at S.fn.init.each (jquery.min.js?ver=3.6.0:2)

Anyone else seen this issue?

Hi shingen,

are you using a custom template or something? I cannot reproduce it with the default templates, neither in 1.3.6 nor in 1.3.7beta.

Best regards,
timmse

Hey Timmse,

Thanks for your reply … here is a video showing the issue: Bricks Woocommerce JQuery error - YouTube

Also, I get the same issue on Beta as well. I used the import for the products, so nothing should have been pulled in that shouldn’t have been.

Hope this helps.

Cheers

Thanks so much for the video!

I did quick research, and it seems to be a problem with the latest woocommerce update, that is not related to Bricks (puh :upside_down_face:), because the flexslider is a part of woocommerce core.

I had a previous woocommerce version installed on my test sites, so I couldn’t reproduce it.
It will probably be fixed in the next woocommerce update.

Best regards,
timmse

Boy oh boy … that Woocommerce eh! LOL

Thanks for quickly looking into it. I will go bug Woocommerce now. =)

Also, just downgraded to v6.0.0 and all works fine, so the latest v6.1 is the issue.

Cheers

1 Like