• Resolved DickRaney

    (@dickraney)


    After updating Nextgen to 3.3.6 and WordPress to 5.4.2 the lightbox is broken and our mobile menu doesn’t work anymore. Using Twenty Twenty theme and only other plugin is Akismet. I see this error in the console:

    simple-lightbox.js?ver=3.3.6:1192 Uncaught TypeError: element.addEventListener is not a function
        at SimpleLightbox.addEventListener (simple-lightbox.js?ver=3.3.6:1192)
        at new SimpleLightbox (simple-lightbox.js?ver=3.3.6:187)
        at a.fn.init.$.fn.simpleLightbox (simple-lightbox.js?ver=3.3.6:1562)
        at nextgen_simplelightbox_init (nextgen_simple_lightbox_init.js?ver=3.3.6:14)
        at HTMLDocument.<anonymous> (nextgen_simple_lightbox_init.js?ver=3.3.6:17)
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
        at Function.ready (jquery.js?ver=1.12.4-wp:2)
        at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter DickRaney

    (@dickraney)

    For now, I solved my problem by rolling back to previous version 3.3.5

    I got the same issue and I had to roll back to version 3.3.5 too and wordpress 5.4.0
    After a while, a realized that the problem is the minify option using w3 total cache plugin, so I had to disable minify.

    Hi @mapasteper @dickraney,

    Unfortunately, this is a valid problem ( a side effect of updating SimpleLighbox to the latest version ) that is going to be resolved in the next NGG update.

    In the meantime, you can either roll-back to NGG 3.3.5 or switch to a different lightbox effect from “NextGen Gallery -> Other Options -> Lightbox Effects”

    Sorry for the inconveniences

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Lightbox Broken’ is closed to new replies.