Title: Lightbox Breaks JavaScript after update
Last modified: June 18, 2022

---

# Lightbox Breaks JavaScript after update

 *  Resolved [AJ](https://wordpress.org/support/users/ajisimplifymecom/)
 * (@ajisimplifymecom)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/lightbox-breaks-javascript-after-update/)
 * this is the error code i get:
 *     ```
       Uncaught TypeError: migbGalleries is not iterable
           at HTMLDocument.<anonymous> (lightbox.js?ver=2.0.1:4:7)
           at j (jquery.min.js?ver=2.1.3:2:26911)
           at Object.fireWith [as resolveWith] (jquery.min.js?ver=2.1.3:2:27724)
           at Function.ready (jquery.min.js?ver=2.1.3:2:29518)
           at HTMLDocument.I (jquery.min.js?ver=2.1.3:2:29709)
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flightbox-breaks-javascript-after-update%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Binsaifullah](https://wordpress.org/support/users/binsaifullah/)
 * (@binsaifullah)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/lightbox-breaks-javascript-after-update/#post-15756864)
 * I have checked out the block, but unfortunately, I didn’t face the issue. I request
   you to follow the following steps to figure out the main reason-
 * 1. make sure that jquery is loading fine on your site (sometimes people disable
   jquery)
 * 2. install a standard WordPress theme like TwentyTwentyOne/Two – sometimes, there
   may have theme conflict/compatibility issue
 * 3. deactivate all other plugins and try out – sometimes this plugin may conflict
   with others.

Viewing 1 replies (of 1 total)

The topic ‘Lightbox Breaks JavaScript after update’ is closed to new replies.

 * ![](https://ps.w.org/mgb-masonry-image-gallery/assets/icon-256x256.png?rev=3516676)
 * [Masonry Image Gallery Block](https://wordpress.org/plugins/mgb-masonry-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mgb-masonry-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mgb-masonry-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/mgb-masonry-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mgb-masonry-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mgb-masonry-image-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Binsaifullah](https://wordpress.org/support/users/binsaifullah/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/lightbox-breaks-javascript-after-update/#post-15756864)
 * Status: resolved