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

Phoca Gallery - image gallery extension
Andreas26188
Phoca Member
Phoca Member
Posts: 18
Joined: 22 Oct 2024, 14:55

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

Post 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
Andreas26188
Phoca Member
Phoca Member
Posts: 18
Joined: 22 Oct 2024, 14:55

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

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49521
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
Post Reply