Page 1 of 1

Gallery Plugin - clicking on pic works only on last page of article?

Posted: 04 Aug 2026, 23:18
by Andreas26188
Hi, I stumbled across a problem with the gallery plugin. I have a website with many galleries, and there are some galleries with so much pictures, I have to split them into 2+ pages.
I use this code for a gallery with 98 pictures:

Code: Select all

{phocagallery view=category-masonry|categoryid=75|imageid=0|limitstart=0|limitcount=50|imageshadow=shadow1|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=1|displayname=1|displaydetail=1|displaydownload=0|float=left}

{phocagallery view=category-masonry|categoryid=75|imageid=0|limitstart=51|limitcount=48|imageshadow=shadow1|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=1|displayname=1|displaydetail=1|displaydownload=0|float=left}
Between these two blocks, I added a pagebreak (not displayed here, but pagebreak works as usual). And now the strange problem:

On my just shown example, I can click whatever thumbnail I like, nothing will happen. But the mouse pointer shows up indicating a hyperlink. If I switch to page 2, every picture opens detail view, works fine.

Now the more strange thing - I have another gallery which is ever larger (4 pages). And here no click on the first 3 pages works, but again the last page does.

I tested the function in the Gallery Categories View, but each gallery works perfect. So it's maybe something with the plugin in relation to pagebreak? I don't know. I hope I did something wrong and someone see my error, I am looking for hours and hours and nothing ...

If I have a large gallery on single page it always work. But I want to be friendly to mobile users :|

Please, have a look.
The 2 pages (code snippet see above) are here: https://www.augederseele.de/index.php/f ... -oldenburg
The 4 pages are here: https://www.augederseele.de/index.php/f ... helmshaven

Thanks for any advice,
Andy

Re: Gallery Plugin - clicking on pic works only on last page of article?

Posted: 07 Aug 2026, 11:43
by Andreas26188
An additional information, maybe helps tracking down:
I published an article today (https://www.augederseele.de/index.php/f ... us-stahl-2), which has a gallery of 90 pics splitted into 2 pages.
If you start with page 1 no picture will react to click. If you go to page 2, every picture gives the detail view, possibility for a slideshow, etc.
If you see the whole article on a single page, the pictures works all as intended, included all pics from page 1.
My html code in the editor looks normal for me:

Code: Select all

<h4>Die Galerie (Bild 1-50):</h4>
<p>{phocagallery view=category-masonry|categoryid=79|imageid=0|limitstart=0|limitcount=50|imageshadow=shadow1|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=1|displayname=1|displaydetail=1|displaydownload=0|float=left}</p>
<p> </p>
<hr title="Seite 2" alt="Seite 2" class="system-pagebreak">
<p> </p>
<h4>Die Galerie (Bild 51-90):</h4>
<p>{phocagallery view=category-masonry|categoryid=79|imageid=0|limitstart=51|limitcount=40|imageshadow=shadow1|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=1|displayname=1|displaydetail=1|displaydownload=0|float=left}</p>
I kept the "pagebreak" intentionally away from plugin code, as I "hoped" this maybe caused the problem, but nope it doesn't.

Anyone with hints or a solution?
Thank you in advance,
Andy

Re: Gallery Plugin - clicking on pic works only on last page of article?

Posted: 08 Aug 2026, 13:00
by Jan
Hi, when you look into the web development tool in your browser, in console, there are some javascript problems which prevent the Photoswipe popup javascript from working. Such errors need to be solved first.

First of all, try to disable Phoca Maps as this is the first error (it cannot find the container)

Jan

Re: Gallery Plugin - clicking on pic works only on last page of article?

Posted: 09 Aug 2026, 11:02
by Andreas26188
Hi, thank you for looking at it. I will use this article:
https://www.augederseele.de/index.php/f ... us-stahl-2
for further testing, okay?

I deleted the Phoca Map (which was embedded on page 2) from the article. The behaviour did not change at all.
This is what console says:
Image
The errors raise in console when clicking on any image of page 1. After click, the console displays error. In status bar, the link for the picture where the mouse pointer is will change to one of the corresponding thumbnails.

I even tried to disable the Phoca Map Plugin at all, but with no effect.

This is all the same with every article where huge galleries are "split" this way. The error is gone when viewing such a gallery on one page, same article:
https://www.augederseele.de/index.php/f ... ?showall=1

The same behaviour is on Android phone and tablet.

I do not understand what "photoswipe" does.

Greetings,
Andy

Re: Gallery Plugin - clicking on pic works only on last page of article?

Posted: 09 Aug 2026, 11:28
by Andreas26188
Hi, Ijust even tried to switch off "Photoswipe" in Phoca Gallery settings:
Image
of course with no effect for articles, where the plugin is embedded.
In the plugin settings, both "display title" and "display caption (photoswipe)" are "off".
Andy

Re: Gallery Plugin - clicking on pic works only on last page of article?

Posted: 12 Aug 2026, 23:26
by Jan
Hi, in latest plugin, many parameters were removed because they were obsolete.

Which version of Phoca Gallery and which version of Phoca Gallery plugin do you use?

See plugin options, plugin have some own parameters:
Image

In newest version of plugin, only Photoswipe is included.

Jan