• Resolved cebcreative

    (@cebcreative)


    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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @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

    (@cebcreative)

    Hi @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

    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

    Hi Marc 🙂 Thanks for the feedback, I’ve informed the developers about this 🙂

    Thread Starter cebcreative

    (@cebcreative)

    Thanks @zottto and @akyusa01 for your responses on this.

    Would renaming image files with letters only be a temporary fix to resolve the problem?

    Thanks,
    Charlotte

    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.