Title: createLightbox is not a function
Last modified: February 7, 2022

---

# createLightbox is not a function

 *  Resolved [bilal43](https://wordpress.org/support/users/bilal43/)
 * (@bilal43)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/createlightbox-is-not-a-function/)
 * Hi)
    I am facing a JavaScript error in WordPress 5.9 for lightbox, I checked 
   by deactivating all plugins and switching theme to Basic 2021 also. Lighbox working
   fine for Elementor Version 3.4.7 and below but above versions has an error
 *     ```
       frontend.min.js?ver=3.5.5:2 Uncaught (in promise) TypeError: (intermediate value)(intermediate value)(intermediate value).createLightbox is not a function
           at LightboxManager.onLinkClick (frontend.min.js?ver=3.5.5:2:26529)
           at HTMLAnchorElement.<anonymous> (frontend.min.js?ver=3.5.5:2:26760)
               at HTMLDocument.dispatch (jquery.min.js?ver=3.6.0:2:43064)
               at HTMLDocument.v.handle (jquery.min.js?ver=3.6.0:2:41048)
               at HTMLDocument.c (rocket-loader.min.js:1:9405)
               onLinkClick @ frontend.min.js?ver=3.5.5:2
               (anonymous) @ frontend.min.js?ver=3.5.5:2
               dispatch @ jquery.min.js?ver=3.6.0:2
               v.handle @ jquery.min.js?ver=3.6.0:2
               c @ rocket-loader.min.js:1
       ```
   

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

 *  [Elementor Team](https://wordpress.org/support/users/talmo/)
 * (@talmo)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/createlightbox-is-not-a-function/#post-15338125)
 * Hi,
 * We are awarer of some issues with the lightbox after WP’s latest update, as far
   as we know they are working on it on their end as this is a bug and will be fixed
   in their next update.
 * You can try rolling back on the 5.9 version.
 * Let me know if it helped.
 *  [Elementor Team](https://wordpress.org/support/users/ozyeger/)
 * (@ozyeger)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/createlightbox-is-not-a-function/#post-15360656)
 * Hi [@bilal43](https://wordpress.org/support/users/bilal43/)
 * Did you manage to solve the issue?

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

The topic ‘createLightbox is not a function’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [Elementor Team](https://wordpress.org/support/users/ozyeger/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/createlightbox-is-not-a-function/#post-15360656)
 * Status: resolved