• Resolved frederik.voordeckers

    (@frederikvoordeckers)


    On all the pages without variations, even non-shop pages, I’ll get the following JS error:

    Cannot read property 'addEventListener' of null

    Because it tries to bind the eventlistener to an element that is not there. Simple wrapping it with an if statement should fix it.

    Screenshot of the issue:

    https://goo.gl/kHSzCY

    Everything works fine on a page with a variation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter frederik.voordeckers

    (@frederikvoordeckers)

    Can be closed, after further investigation found the bug in the theme.

    Plugin Author David Rosendo

    (@drosendo)

    Great!

    Please do mention the Theme you are running and how you solved it so that other users may approach the fix.

    Please dont forget to review my plugin I really appreciate it!

    Cheers,
    David

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JavaScript Error on pages without variations’ is closed to new replies.