ZenphotoCMS Forum
Dynamic albums are blank - bug in zen or bug at user? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Dynamic albums are blank - bug in zen or bug at user? (/thread-12484.html)



Dynamic albums are blank - bug in zen or bug at user? - mrHiggins - 28-03-2016

Dear mr. or mrs.

i use zenphoto for my new photopage. Version is 1.4.11 and i use zpmasonry (a little bit customized, but only left out some stuff, changed links and made hardcoded language changes to German)).I use bxslider_thumb_nav, slideshow2, viewersizeimage, zenpage plugins.

I sort my pictures by location, e.g. Berlin, Norway, Munich etc. with subalbums by district e.g. But I want also some dynamic albums by topic (e.g. "zoo & wildlife" where I want to show all albums with this topic ("Berlin Zoo", "Munich Zoo").

Therefor i created a Tag "Zoo-Wildlife", added this tag to my "Berlin Zoo" album. Then i created a "Zoo & Wildlife" dynamic album in root, selected "tagged" and entered the Tag there.
If i enter it in backend i see the dynamic album search:
words=Zoo-Wildlife&searchfields=tags_exact&inalbums=1&inimages=1&unpublished=1

I thought perfect - in the dynamic album I see the album i tagged.

BUT:

if i click the link, i see only a blank (colored with backcolor). It is the same if I refresh the page. But i found out, if I go in another tab into the album i want to see, and refresh the "blank page" the stuff is there.

You can test it, i will leave this page as they are.
www.bilder21.de is my page (it goes automaticly to subfolder www.bilder21.de/cms/)

The dynamic album with all zoo albums is:
http://www.bilder21.de/cms/index.php?album=Zoo-Wildlife.alb

you see here one album with the zoo Berlin. The normal link to this album is:
http://www.bilder21.de/cms/index.php?album=Berlin/Zoo-und-Tierpark-Berlin

So enter the dynamic album, click on the Berlin album - you see nothing. Then you open the last link in a new tab and refresh the first tab - then it comes.

Do you have an idea what is wrong here?




Dynamic albums are blank - bug in zen or bug at user? - acrylian - 28-03-2016

This usually indicates some kind of PHP fatal error (the page load is stopped if you look into the source). You need to look into the Zenphoto error log and best also at the server php error log for errorr. Otherwise we are just guessing around.




Dynamic albums are blank - bug in zen or bug at user? - mrHiggins - 28-03-2016

with chrome developer tools i found out that in first line of the code:

he gets some internal errors 500.

But the only code i see in the chrome developertools is:
`

        // 

`
looks a little bit less?!




Dynamic albums are blank - bug in zen or bug at user? - mrHiggins - 28-03-2016

where can i find the error logs? in backend there is only a debug, security and setup log.




Dynamic albums are blank - bug in zen or bug at user? - fretzl - 28-03-2016

Try this:
In your theme folder find inc-header.php and look for line 19. Change this line to:
$zpmas_metatitle = $metatitle.' | '.getBareGalleryTitle();




Dynamic albums are blank - bug in zen or bug at user? - mrHiggins - 28-03-2016

thanks! now it works!




Dynamic albums are blank - bug in zen or bug at user? - acrylian - 28-03-2016

Even if fixed quick answer:

Quote:where can i find the error logs? in backend there is only a debug, security and setup log.
The Zenphoto debug log is a good start but it is not always complete on serious errors. So you need to ask your host where to find the server PHP error log. That differs from host to host. And when self hosting a tool like Zenphoto you really need to know where it is. We (and others elsewhere) will constantly ask for it on occasions like these.