Title: js error when using Gallery
Last modified: August 18, 2017

---

# js error when using Gallery

 *  Resolved [cebcreative](https://wordpress.org/support/users/cebcreative/)
 * (@cebcreative)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/js-error-when-using-gallery/)
 * Hi there,
 * I wish to use the Envira Gallery in the contents section of my site but it is
   not displaying properly. I have tried disabling plugins to see if it’s a conflict
   but that all seems fine.
    I am getting the following error in the inspector which
   seems to relate to the .js for the plugin.
 * envira-min.js?ver=1.6.1.6:1 Uncaught TypeError: n.replace is not a function
    
   at e.displayEntryCaption (envira-min.js?ver=1.6.1.6:1) at e.displayEntry (envira-
   min.js?ver=1.6.1.6:1) at e.flushRow (envira-min.js?ver=1.6.1.6:1) at e.analyzeImages(
   envira-min.js?ver=1.6.1.6:1) at envira-min.js?ver=1.6.1.6:1 e.displayEntryCaption
   @ envira-min.js?ver=1.6.1.6:1 e.displayEntry @ envira-min.js?ver=1.6.1.6:1 e.
   flushRow @ envira-min.js?ver=1.6.1.6:1 e.analyzeImages @ envira-min.js?ver=1.6.1.6:
   1 (anonymous) @ envira-min.js?ver=1.6.1.6:1
 * Can you take a look and advise how to fix this? I would like to buy the pro version
   to get full features but I need to make sure it works first.
 * Many thanks,
    Charlotte
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjs-error-when-using-gallery%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [akyusa01](https://wordpress.org/support/users/akyusa01/)
 * (@akyusa01)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/js-error-when-using-gallery/#post-9421200)
 * Hi [@cebcreative](https://wordpress.org/support/users/cebcreative/) and thanks
   for reaching out! 🙂
 * I’m very sorry for any trouble, may I ask if you have already tested for a conflict
   by deactivating all other plugins and the theme?
 * Please let me know! 🙂
 * Thanks
 *  Thread Starter [cebcreative](https://wordpress.org/support/users/cebcreative/)
 * (@cebcreative)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/js-error-when-using-gallery/#post-9421234)
 * Hi [@akyusa01](https://wordpress.org/support/users/akyusa01/)
 * I have indeed tried deactivating all the plugins and just having the gallery 
   active but it still doesn’t work. I can see the div id=”envira-gallery-wrap etc
   in the inspector but on the front end nothing shows, just a blank space below
   the content.
 * I have used this plugin before on other sites which use the same theme and had
   no problems. Very odd?
 * Your help is much appreciated,
    Charlotte
 *  [Marc Nilius](https://wordpress.org/support/users/zottto/)
 * (@zottto)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/js-error-when-using-gallery/#post-9472410)
 * Hi,
 * the reason for this JS error are filenames / image titles that consist of numbers
   only (titles like e.g. “01”, “45”, … created based on filenames like 01.jpg, 
   45.jpg etc.).
 * JS recognizes these as numbers in the variable, but the replace function can 
   only work on strings.
 * Can you please fix this in the plugin?
 * Thanks,
    Marc
 *  [akyusa01](https://wordpress.org/support/users/akyusa01/)
 * (@akyusa01)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/js-error-when-using-gallery/#post-9486374)
 * Hi Marc 🙂 Thanks for the feedback, I’ve informed the developers about this 🙂
 *  Thread Starter [cebcreative](https://wordpress.org/support/users/cebcreative/)
 * (@cebcreative)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/js-error-when-using-gallery/#post-9493204)
 * Thanks [@zottto](https://wordpress.org/support/users/zottto/) and [@akyusa01](https://wordpress.org/support/users/akyusa01/)
   for your responses on this.
 * Would renaming image files with letters only be a temporary fix to resolve the
   problem?
 * Thanks,
    Charlotte
 *  [akyusa01](https://wordpress.org/support/users/akyusa01/)
 * (@akyusa01)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/js-error-when-using-gallery/#post-9493608)
 * Hi Charlotte 🙂 Yes, that would be a temporary work around (for now) until this
   has been addressed with the developers.
 * I’m very sorry for any trouble!

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

The topic ‘js error when using Gallery’ is closed to new replies.

 * ![](https://ps.w.org/envira-gallery-lite/assets/icon-256x256.png?rev=2022837)
 * [Envira Gallery - Image Photo Gallery, Albums, Video Gallery, Slideshows & More](https://wordpress.org/plugins/envira-gallery-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/envira-gallery-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/envira-gallery-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/envira-gallery-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/envira-gallery-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/envira-gallery-lite/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [akyusa01](https://wordpress.org/support/users/akyusa01/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/js-error-when-using-gallery/#post-9493608)
 * Status: resolved