Support » Plugin: Lightbox with PhotoSwipe » Not working on one page

  • Resolved DickRaney

    (@dickraney)


    We use NextGen gallery to create the galleries and have 300 galleries. They all work fine until this one. Clicking on a gallery thumbnail just open the full image. Have to use back arrow to go back to gallery. Here’s a link to another page where it works just fine: https://pastebin.com/eyutmKei

    I don’t see any javascript errors and have tried deactivating other plugins.

    What’s wrong?

    • This topic was modified 7 months, 3 weeks ago by DickRaney.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    It’s not only the page you mentioned. At the moment all galleries behave like this.

    When I look at the source of your site I don’t see that Lightbox with Photoswipe is enabled at all. The frontend options are missing and also the scripts.

    Please check:

    1. Is Lightbox with Photoswipe installed and activated?
    2. Make sure all caches on your site are clean or temporary disable any kind of “optimizer” and caching plugins to make sure the browser gets the real page and not some “optimized” output which misses details.
    Plugin Author Arno Welzel

    (@awelzel)

    In addition:

    Also make sure that you did not accidentally disable Lightbox for Photoswipe on single pages. See “Excluded pages/posts” in the general settings of Lightbox for Photoswipe.

    Plugin Author Arno Welzel

    (@awelzel)

    Another point: galleries which are only created using JavaScript in the browser will not work.

    Edit: You can also try to turn off “lazy loading” in the gallery settings. This usually adds JavaScript code to the images which may prevent lightboxes from working properly. Modern browser support lazy loading without JavaScript by adding an attribute to the images – this can be done with by Lightbox with PhotoSwipe as well if the gallery does not support that.

    • This reply was modified 7 months, 3 weeks ago by Arno Welzel.
    Plugin Author Arno Welzel

    (@awelzel)

    It seems NextGEN creates its HTML output in a way which is compatible to Lightbox with PhotoSwipe:

    https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe-with-nextgen-gallery/

    I’ll see what I can do – but to be honest: making a free plugin compatible to a gallery which also offers a paid version is not my top priority. However, donations help to support my work.

    Thread Starter DickRaney

    (@dickraney)

    As I said, we have been using the same combination of NextGEN Gallery and Lightbox with PhotoSwipe for quite a while and have over 300 galleries that all work fine. I did check to be sure it was not disabled Lightbox for Photoswipe on this page.

    I am not asking you to make the plugin compatible. It already is and works on all the other gallery pages. I provided a link to another page that works. I just wanted to see if you could help me figure out why it isn’t working on this one page.

    Plugin Author Arno Welzel

    (@awelzel)

    I’m sorry, I can’t figure it out at the moment. I just see, that NextGEN galleries don’t work on my own test site as well – so there is some problem with NextGEN but I don’t know what it is.

    On my test page I just inserted a NextGEN gallery and told NextGEN not to use it’s own lightbox – but it does not work:

    https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe-with-nextgen-gallery/

    However – the Gutenberg gallery block on the same page works without issues.

    Or in other words: I don’t know how to make NextGEN work with Lightbox with Photoswipe at all since I have never seen it working here and all my ideas how to fix this (increasing filter priority for the handler which adds the lightbox click handlers using another filter to catch the HTML output) did not work. I already found out that NextGEN provides a number of hooks which might help here – but it will take a couple of hours to understand the details of hook API and to debug the issue.

    What settings did you use in NextGEN on sites which work with PhotoSwipe? Can you provide screenshots of the settings?

    Thread Starter DickRaney

    (@dickraney)

    We set NextGen lightbox to NONE since we use your lightbox. We insert gallery as basic thumbnail with no other special settings

    Plugin Author Arno Welzel

    (@awelzel)

    I did exactly the same – does not work here.

    As you can see – NextGEN does not use any lightbox due to “lightbox NONE”, but this does not help. Images are just plain media links and Lightbox with PhotoSwipe won’t get these images at all.

    Thread Starter DickRaney

    (@dickraney)

    You seem to be saying that your plugin is not compatible with NextGen gallery. And yet we have over 300 galleries on our website, all created with NextGen gallery, and they all work with your plugin except this one.

    I don’t understand your comment about the links being just media links. They are thumbnail images that are linked to the full size image file. They are image links. And your plug-in description says that that should work just fine.

    Plugin Author Arno Welzel

    (@awelzel)

    Well – at the moment all I see is that the image links created by the NextGEN gallery on my test page are not recognized by my plugin an I don’t know why. Therefore I also don’t know how to solve your problem.

    I’ll have to do more debugging to understand what is going on there.

    Plugin Author Arno Welzel

    (@awelzel)

    At last I identified the issue!

    My plugin expects images to have one of the following extensions: jpg, jpeg, jpe, gif, png, bmp, tif, tiff, ico, webp

    However – if an image ends with JPG (all uppercase), like DSC01152.JPG on your page or in my demo page, it is ignored.

    I just fixed this and will provide an update as soon as possible.

    Plugin Author Arno Welzel

    (@awelzel)

    Release 3.1.8 was just published and should fix this issue.

    Thread Starter DickRaney

    (@dickraney)

    Bravo!!! That fixed it. Thank you!!!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Not working on one page’ is closed to new replies.