Uncaught TypeError: Cannot read property 'length' of undefined

This topic has 6 replies, 2 voices, and was last updated 7 years, 7 months ago ago by Rose Tyler

  • Avatar: kahrens212
    kahrens212
    Participant
    April 24, 2017 at 04:36

    I’m getting this javascript error which is preventing WooCommerce from working properly.

    Uncaught TypeError: Cannot read property ‘length’ of undefined
    at HTMLFormElement.<anonymous> (etheme.js:1634)
    at HTMLFormElement.dispatch (jquery.js:3)
    at HTMLFormElement.r.handle (jquery.js:3)
    at Object.trigger (jquery.js:3)
    at Object.a.event.trigger (jquery-migrate.min.js:2)
    at HTMLFormElement.<anonymous> (jquery.js:3)
    at Function.each (jquery.js:2)
    at a.fn.init.each (jquery.js:2)
    at a.fn.init.trigger (jquery.js:3)
    at Object.success (add-to-cart-variation.min.js:1)
    (anonymous) @ etheme.js:1634
    dispatch @ jquery.js:3
    r.handle @ jquery.js:3
    trigger @ jquery.js:3
    a.event.trigger @ jquery-migrate.min.js:2
    (anonymous) @ jquery.js:3
    each @ jquery.js:2
    each @ jquery.js:2
    trigger @ jquery.js:3
    success @ add-to-cart-variation.min.js:1
    i @ jquery.js:2
    fireWith @ jquery.js:2
    y @ jquery.js:4
    c @ jquery.js:4

    This is the plugin specifically that doesn’t work because of the JS error:

    https://woocommerce.com/products/variation-swatches-and-photos/?_ga=1.98998686.1414477794.1486336660

    It’s on etheme.js around line 1634. I’ve tried just commenting out that line in the file, however, it doesn’t work. What else could be done so that the theme works properly?

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 24, 2017 at 10:28

    Hello,

    I’ve sent the request to our developers and they say that’s will be fixed in the next theme update.

    Regards,
    Rose Tyler.

    Avatar: kahrens212
    kahrens212
    Participant
    April 24, 2017 at 11:41

    Hi Rose,

    As this is ecommerce I need this fixed ASAP, any chance you could ask your devs what I could temporarily make the code so it works?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 25, 2017 at 13:13

    Hello,

    Please wait for theme update or try to reupload etheme.js file that we’ve sent to your email address.

    Regards,
    Rose Tyler.

    Avatar: kahrens212
    kahrens212
    Participant
    April 25, 2017 at 13:16

    Is the file you’ve just sent me the latest version? (With the update / fix patched??)

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 25, 2017 at 13:25

    Hello,

    It is the file from our latest theme version.

    Regards,
    Rose Tyler.

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

You must be logged in to reply to this topic.Log in/Sign up

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