Title: Lightbox Broken
Last modified: July 22, 2020

---

# Lightbox Broken

 *  Resolved [DickRaney](https://wordpress.org/support/users/dickraney/)
 * (@dickraney)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/lightbox-broken-2/)
 * 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](https://wordpress.org/support/users/dickraney/)
 * (@dickraney)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/lightbox-broken-2/#post-13157607)
 * For now, I solved my problem by rolling back to previous version 3.3.5
 *  [mapasteper](https://wordpress.org/support/users/mapasteper/)
 * (@mapasteper)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/lightbox-broken-2/#post-13157925)
 * 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.
 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/lightbox-broken-2/#post-13159372)
 * Hi [@mapasteper](https://wordpress.org/support/users/mapasteper/) [@dickraney](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/lightbox-broken-2/#post-13159372)
 * Status: resolved