1. Bahar Asar Member

    Javascript error

    Topic geplaatst op: 10-04-2017 om 23:53

    Hello,

    I have a webshop domain on your servers and have a problem regarding adding products to the basket. This error occur when a product is added to the shopping basket and it is related with the javascript we use. The full error message is as follows:

    JQMIGRATE: Migrate is installed, version 1.4.1
    theshopier-main.js:517
    Uncaught TypeError: Cannot read property 'length' of undefined
    at HTMLBodyElement.<anonymous> (theshopier-main.js:517)
    at HTMLBodyElement.dispatch (jquery.js:3)
    at HTMLBodyElement.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 HTMLFormElement.e.onFindVariation (add-to-cart-variation.min.js:1)
    theshopier-main.js:517 Uncaught TypeError: Cannot read property 'length' of undefined
    at HTMLBodyElement.<anonymous> (theshopier-main.js:517)
    at HTMLBodyElement.dispatch (jquery.js:3)
    at HTMLBodyElement.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 HTMLFormElement.e.onFindVariation (add-to-cart-variation.min.js:1)

    When my developer install the same ecommerce template we use to the another server this error does not occur.

    Could you please help us to eliminate this error?

    Reageer
  2. Alex Boon Versio medewerker
    Reactie geplaatst op: 11-04-2017 om 10:02

    This is an script related problem. javascript is not server sided, but client sided. So you have to solve this within the website script.

    Vond u dit antwoord nuttig?

  3. Dave Van Beeren Member
    Reactie geplaatst op: 21-04-2017 om 13:41

    I have a similar error with javascript trying to obtain google maps. It worked for a few weeks and suddenly i get "something get wrong" on my page. I replicated the content to another page without errors on javascript.

    Vond u dit antwoord nuttig?