• Hello,

    Clicking on an image in an RRG grid gives this javascript error. Have you tested this please?

    Uncaught TypeError: Cannot read property 'trim' of null
        at Object.loadMedia (jquery.swipebox.min.js?ver=2.2.1:2)
        at Object.openMedia (jquery.swipebox.min.js?ver=2.2.1:2)
        at Object.init (jquery.swipebox.min.js?ver=2.2.1:2)
        at HTMLAnchorElement.<anonymous> (jquery.swipebox.min.js?ver=2.2.1:2)
        at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
        at HTMLDocument.r.handle (jquery.js?ver=1.12.4:3)

    Latest Swipebox release is 3 years old so maybe not a good idea to use a plugin that is no longer maintained?

    https://github.com/brutaldesign/swipebox/issues

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    I’m pretty fond of swipebox, so I won’t give it up just like that ?? But if you can convince me that it’s broken, i have no choice. My guess is that there is a conflict with some other plugin, as the gallery is working fine on my demo site (https://responsive-gallery-grid.bdwm.be/) and on any other site where I have RGG installed.

    Could you point me to the page where you get the error?

    Thread Starter morepix

    (@morepix)

    Hello Jules,

    Already tried to disable some plug-ins without luck. Your demo site does indeed work. Had a look at your code and my site is now also fixed. Installed “Responsive Lightbox & Gallery” plug-in and the error is gone. Lightbox now works.

    https://www.ads-software.com/plugins/responsive-lightbox/

    So it seems to be a pre-req to get your built-in LightBox functionality working via Swipebox? Now also works if I select 3th party under settings.

    Page with the error was https://www.horecare.be/producten-item/porselein/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lightbox via Swipebox gives JS error’ is closed to new replies.