Uncaught TypeError: Cannot read property 'length' of undefined

This topic has 5 replies, 2 voices, and was last updated 5 years, 1 months ago ago by Hong

  • Avatar: Hong
    Hong
    Participant
    June 24, 2020 at 23:57

    Hi,

    I have a problem for the single product page, the variation of size, it doesn’t seem to work. I checked form google, the result is : Uncaught TypeError: Cannot read property ‘length’ of undefined, and you can see it, https://prnt.sc/t5wvey

    Or you can watch the following information :
    Uncaught TypeError: Cannot read property ‘length’ of undefined
    at Object.setVariationsGallery (etheme.min.js?ver=1.0:7)
    at HTMLFormElement. (etheme.min.js?ver=1.0:6)
    at HTMLFormElement.dispatch (jquery.js?ver=1.12.4-wp:1)
    at HTMLFormElement.r.handle (jquery.js?ver=1.12.4-wp:1)
    at Object.trigger (jquery.js?ver=1.12.4-wp:1)
    at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
    at HTMLFormElement.
    (jquery.js?ver=1.12.4-wp:1)
    at Function.each (jquery.js?ver=1.12.4-wp:1)
    at a.fn.init.each (jquery.js?ver=1.12.4-wp:1)
    at a.fn.init.trigger (jquery.js?ver=1.12.4-wp:1)
    setVariationsGallery @ etheme.min.js?ver=1.0:7
    (anonymous) @ etheme.min.js?ver=1.0:6
    dispatch @ jquery.js?ver=1.12.4-wp:1
    r.handle @ jquery.js?ver=1.12.4-wp:1
    trigger @ jquery.js?ver=1.12.4-wp:1
    a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
    (anonymous) @ jquery.js?ver=1.12.4-wp:1
    each @ jquery.js?ver=1.12.4-wp:1
    each @ jquery.js?ver=1.12.4-wp:1
    trigger @ jquery.js?ver=1.12.4-wp:1
    t.onFindVariation @ add-to-cart-variation.min.js?ver=4.2.2:1
    dispatch @ jquery.js?ver=1.12.4-wp:1
    r.handle @ jquery.js?ver=1.12.4-wp:1
    trigger @ jquery.js?ver=1.12.4-wp:1
    a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
    (anonymous) @ jquery.js?ver=1.12.4-wp:1
    each @ jquery.js?ver=1.12.4-wp:1
    each @ jquery.js?ver=1.12.4-wp:1
    trigger @ jquery.js?ver=1.12.4-wp:1
    t.onChange @ add-to-cart-variation.min.js?ver=4.2.2:1
    dispatch @ jquery.js?ver=1.12.4-wp:1
    r.handle @ jquery.js?ver=1.12.4-wp:1
    trigger @ jquery.js?ver=1.12.4-wp:1
    a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
    (anonymous) @ jquery.js?ver=1.12.4-wp:1
    each @ jquery.js?ver=1.12.4-wp:1
    each @ jquery.js?ver=1.12.4-wp:1
    trigger @ jquery.js?ver=1.12.4-wp:1
    (anonymous) @ frontend-ca9b7310ef9…641dfc49eae833.js:3
    dispatch @ jquery.js?ver=1.12.4-wp:1
    r.handle @ jquery.js?ver=1.12.4-wp:1

    Thank you for helping me to solve this problem.

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: Hong
    Hong
    Participant
    June 25, 2020 at 00:19

    Or maybe is the reason of plugin AffiliateWP? Because before everything is OK, and i installed it today, and then i found this error.

    Avatar: Hong
    Hong
    Participant
    June 25, 2020 at 02:19

    Hi, i tried check again, it is very strange, the variation switcher can be use, but i found if i click “ADD TO CART” button in the product girds, https://prnt.sc/t5yise and then, it will be like this : https://prnt.sc/t5yjnc or https://prnt.sc/t5yjt5 , https://prnt.sc/t5ygmt or other results and the page will be not clickable and always reloading, even i refresh the page. The only way is close it and open again the website. I am not sure of my explanation is clear ro not, but if it possible, please you can try once. Thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 25, 2020 at 08:55

    Hello,

    Please download frontend.js file from here – https://dropmefiles.com/FHR3g and re-upload it into et-core-plugin/packages/st-woo-swatches/public/js folder. Clear cache and check then.

    Regards

    Avatar: Hong
    Hong
    Participant
    June 25, 2020 at 22:15

    Thank you for all your hard work on this, Rose. It is ok for now. Have a nice day!

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘Uncaught TypeError: Cannot read property 'length' of undefined’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.