Title: Lightbox JavaScript code generates Uncaught TypeError
Last modified: December 29, 2021

---

# Lightbox JavaScript code generates Uncaught TypeError

 *  Resolved [jelinekm](https://wordpress.org/support/users/jelinekm/)
 * (@jelinekm)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/lightbox-javascript-code-generates-uncaught-typeerror/)
 * SimpLy Lightbox v.2.3.3 generates the following error in both Chrome (v96.0.4664.110)
   and Firefox (v95.0.2) dev console even on pages where neither the lightbox nor
   gallery is used:
 *     ```
       pgc_sgb_lightbox.min.js?ver=2.3.3:1
       SimpLy Lightbox v.2.3.3
   
       pgc_sgb_lightbox.min.js?ver=2.3.3:1
       Uncaught TypeError: Cannot read properties of null (reading 'indexOf')
           at Function.value (pgc_sgb_lightbox.min.js:1)
           at new e (pgc_sgb_lightbox.min.js:1)
           at o.<anonymous> (pgc_sgb_lightbox.min.js:1)
           at new o (pgc_sgb_lightbox.min.js:1)
           at pgc_sgb_lightbox.min.js:1
       ```
   
 * This seems to have negative effect on interaction with other plugins, whose JS
   code does not get executed.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flightbox-javascript-code-generates-uncaught-typeerror%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [GalleryCreator](https://wordpress.org/support/users/gallerycreator/)
 * (@gallerycreator)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/lightbox-javascript-code-generates-uncaught-typeerror/#post-15204815)
 * Hello,
    since you don’t need a lightbox on this page, you can disable its script
   on this page
 *  Plugin Author [GalleryCreator](https://wordpress.org/support/users/gallerycreator/)
 * (@gallerycreator)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/lightbox-javascript-code-generates-uncaught-typeerror/#post-15205160)
 * I understand why you have this error, I will fix this error in the next version.

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

The topic ‘Lightbox JavaScript code generates Uncaught TypeError’ is closed to new
replies.

 * ![](https://ps.w.org/simply-gallery-block/assets/icon-256x256.png?rev=2543539)
 * [Mixed Media Gallery Blocks](https://wordpress.org/plugins/simply-gallery-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-gallery-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-gallery-block/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-gallery-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-gallery-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-gallery-block/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)

 * 2 replies
 * 2 participants
 * Last reply from: [GalleryCreator](https://wordpress.org/support/users/gallerycreator/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/lightbox-javascript-code-generates-uncaught-typeerror/#post-15205160)
 * Status: resolved