Forum
Gallery (Perch 1)
I have added <?php perch_gallery_build(); ?>
to the page and the thumbnails are shown, but when I click on one of them, the URL changes to ..../image.php?id=1 and all I see on the page is the following:
‰PNG IHDRP4!æ¹IDATX…myY¯l×q^UÂqOÃ}†Ë{IMâ€#‰“y±‹¢$ëJ¢hRÞÂç¼%ÈÂ2,G5¡Aòâ±-x/ÉsNwïaÃUyhŠ‚ÔÃÆFÂÚ¨UU_ kmüñ;ÿ’K©ì´é¬¿[N%×O=y²ÅpZ×Ü* |òÉKï<ÿÃÔ½sD$,µqi…EJ®‡qÄ5nƒëÎÛrrÆ]ï¦ÓºvΕ’Y€Œ±¥äÒØefðÖr«ç¬¶µå±ëY¤Ô¦1K®¥÷Î*»„•HkEcۑÃ^)z8½÷Ì쌵Vp<6xéöš…ÃK˜·uê{Â
...etc. (there is a lot of it)
Is this one particular image, or all images?
Well it's quite interesting because I've just looked and the image.php file is what I used for the contact page form verification where you enter the number shown in the image to complete the form. The image.php file is top-level outside of the Perch folder.
So it's totally different to the Gallery App and I have no idea why it would go to that file when a Gallery thumbnail is clicked. Surely it should be using the files from within 'perch/apps/perch_gallery'?
No, it should be a page in your site that uses the Gallery functions to lookup and display an image.
Yeah it is. The file structure is below:
Below is the code for gallery.php:
Have you changed the links in the template to point to whichever file you want to use to display images?
Which template file is that? .../perch_gallery/templates/gallery/album.html?
Could be! Copy
/addons/apps/perch_gallery/templates/gallery
toperch/templates/gallery
and then you can edit any paths you need to change.That's not really helping me.
I followed all 5 steps from here: https://support.grabaperch.com/index.php?pg=kb.page&id=144 so all I need to do now is just add <?php perch_gallery_build(); ?> to a page with a call to the runtime.php file at the top and that should be it, right? Obviously making sure that images have been uploaded.
It's a set of tools for building an image gallery. You can use the example files to get going (they're in the zip) or you can built the pages out yourself, editing the templates as necessary.
If you do only one of those things, the dots won't join up.
Have you tried the example files? They might be a good place to start.
I uploaded the example files but they're not working either. They should work straight off shouldn't they?
In what way are they failing? I would expect them to work - but we're talking about very old software at this point.
I can see the text on the test pages but nothing else.
Please post your Diagnostics Report, you can find it under Settings in Perch.
Can you tell anything from that?
Only that you're on the latest versions of Perch 1, which is useful.
Do you get any errors in the page source or in your server's PHP error log?
Does it work in a clean site in your dev environment?
This just isn't working, I'm going to have to use a jQuery plugin from somewhere but my client won't be able to use it in Perch then.