ZenphotoCMS Forum
Impossible to create/populate a dynamic album - 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: Impossible to create/populate a dynamic album (/thread-10423.html)



Impossible to create/populate a dynamic album - tosca - 2012-09-18

I just encountered a problem I didn't have before: it is impossible to create a dynamic album with something in it, as the tag value is missing in the recorded query (I don't know how it is called in english, in french it is "Recherche dans l’album dynamique").

It read:
words=&searchfields=tags&inalbums=0&inimages=1&unpublished=0
instead of
words=star&searchfields=tags&inalbums=0&inimages=1&unpublished=0

I had to use PHPMyAdmin to fix the missing word in order to make the dynamic album work; otherwise, it remains empty.

Is it a known issue that came with the last version? Or I have made something wrong?

I'm using 1.4.3.2 [10766] (Version officielle)




Impossible to create/populate a dynamic album - acrylian - 2012-09-18

No known issue until yet. I just tried on our own site (uses a two day old nightly): http://www.zenphoto.org/zenpage.alb
SO if you can try the nightly. Actually the query is stored in the dynamic album file (xxx.alb) within /albums. You could have fixed it there, too.




Impossible to create/populate a dynamic album - tosca - 2012-09-18

I tried to fix it in the album, but I couldn't access the field in modification!
Might it be some navigator/script problem? Sometimes Firefox or the plugin flash crashes on my computer.




Impossible to create/populate a dynamic album - sbillard - 2012-09-18

You should change this in the file [i]album[/i].alb for the fix to be permanant.

What was the specific search you did in order to create the dynamic album? It must be a problem specific to the term since in general there are not problems creating dynamic albums.




Impossible to create/populate a dynamic album - tosca - 2012-09-19

Sorry, I answered a bit too quickly to acrylian: I tried to modify the query from the administration panel, and it didn't work; now, I understand what you mean, and just made the modification directly in the .alb file.

The search was not so unusual, and I had done the same several times before: I was just looking for all the pictures having the [b]star[/b] in order to group them in a dynamic album called [b]star[/b] too.

Or could the problem be related to the fact that specific album had already existed in the past? But I had deleted it beforehand from the administration panel...

Another idea: I've set the access rights to the /albums directory to 700, and the dynamic albums to 604 (I don't remember if I created them before I changed the main folder rights or no) so no visitor can access the original pictures without being watermarked; any possible relation?




Impossible to create/populate a dynamic album - acrylian - 2012-09-19

You might have had the old album in the database. In those case you should do a database refresh on the overview page.

The rights normally should be 755 and 644:
http://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders

If you mean blocking hotlinking to the full images you normally need to use an htaccess file.
http://www.zenphoto.org/news/how-to-protect-my-images-from-hotlinking-




Impossible to create/populate a dynamic album - sbillard - 2012-09-20

Are you able now to delete this album from the admin panel, do a new search and recreate it? There is nothing special about [b]star[/b] that it should be dropped in the stored query.




Impossible to create/populate a dynamic album - tosca - 2012-09-29

I'm not sure where the problem was... I did changed the access rights to what [b]acrylian[/b] said, then back, and it still works now. I just have to re-type the searched word in the admin screen when creating the album, as it is not copied from the front-office request (the field remains empty, but can be modified).

Regarding the albums access rights, I only want the pictures to be unaccessible without their watermark; that's why I changed the permissions on the album tree folder, but the cache permissions remained the same.
Could that be a problem?




Impossible to create/populate a dynamic album - sbillard - 2012-09-29

I am a little confused. Are you saying that things work correctly now or are you saying that you have to modify something to get the "words" parameter set correctly.

If the latter, what exactly are you modifying? What is the URL link when you are on the page that creates the album?

Can you look at your cookies and find what you have for zenphoto_search_params? Do this both on the search page and on the page that creates the dynamic album.




Impossible to create/populate a dynamic album - tosca - 2012-09-29

It works if I add the word in this page http://www.../zp-core/admin-dynamic-album.php as the search field ('Critères de recherche' in french) remains empty. Previously, I was not even able to modify this field, so couldn't create the album.

Looking in Firefox preferences, I can't find the cookie you're referring to.




Impossible to create/populate a dynamic album - sbillard - 2012-09-29

if the cookie does not exist that would certainly cause your problem. The code relies on the search cookie to know what the search was. But I would expect if that were the case no "words" would ever be filled in.




Impossible to create/populate a dynamic album - tosca - 2012-09-29

It works on my localhost and the cookie is there for it.
How comes I have no cookie for the online site? It is the same browser... Do I need to do something special on Firefox for the cookie to work?




Impossible to create/populate a dynamic album - sbillard - 2012-09-30

There should be no differences so far as Zenphoto is concerned. But maybe your browser is configured differently for your site than for localhost so far as cookies are concerned.

Or maybe the cookie duration option on the site is set too short. That is a gallery option.




Impossible to create/populate a dynamic album - tosca - 2012-09-30

Well, I'm completely at lost...
I did exactly the same search on both sites, and here is what cookies I got (exported from Firebug):

  • on local site:
    localhost FALSE / FALSE 1408165886 __utma 111872281.325480658.1345093886.1345093886.1345093886.1 localhost FALSE / FALSE 1360861886 __utmz 111872281.1345093886.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) localhost FALSE /www/zenphoto/ FALSE 1353180477 gallery_nesting 1 localhost FALSE /www/zenphoto/ FALSE 1353219964 zp_user_auth bd3de629b823a748c7aa7cfe131528e32972a95e localhost FALSE / FALSE 0 PHPSESSID dba38dprsgl3amrgf9t5r01vu4 localhost FALSE /www/zenphoto/ FALSE 1348987332 zenphoto_search_params %26words%3Dportfolio
    and on the web site:
    www.marie-noelle-augendre.com FALSE /zenphoto/ FALSE 1350562906 uploadtype http www.marie-noelle-augendre.com FALSE /zenphoto/ FALSE 1350581196 imagesTab_imageCount 20 www.marie-noelle-augendre.com FALSE / FALSE 1350590666 zenphoto_comment Marie-No%C3%ABlle+Augendre%7C%7E%2A%7E%7Cwilderness.appeal%40gmail.com%7C%7E%2A%7E%7Chttp%3A%2F%2Fmarie-noelle-augendre.com%2F%7C%7E%2A%7E%7C%7C%7E%2A%7E%7C1%7C%7E%2A%7E%7C0%7C%7E%2A%7E%7C0%7C%7E%2A%7E%7C .marie-noelle-augendre.com TRUE / FALSE 1378072438 style_cookie null www.marie-noelle-augendre.com FALSE /zenphoto/ FALSE 1352578150 zp_user_auth ddd45f1268c77667aee45897a897df25a2463457 www.marie-noelle-augendre.com FALSE /zenphoto/ FALSE 1353179888 gallery_nesting 1 www.marie-noelle-augendre.com FALSE /zenphoto/ FALSE 1353181486 subalbum_nesting 3 marie-noelle-augendre.com FALSE / FALSE 1348984607 rd R3047047696 .marie-noelle-augendre.com TRUE / FALSE 1411840600 __utma 187536436.2032142687.1309770461.1348581646.1348768534.886 .marie-noelle-augendre.com TRUE / FALSE 1364536600 __utmz 187536436.1348581646.885.172.utmcsr=facebook.com|utmccn=(referral)|utmcmd=referral|utmcct=/l.php www.marie-noelle-augendre.com FALSE / FALSE 0 PHPSESSID e43e757cedfc1bc17da9bdf84b7ce061 .marie-noelle-augendre.com TRUE / FALSE 0 __utmc 187536436 www.marie-noelle-augendre.com FALSE / FALSE 1349205118 start R3255935992
    Cookies duration is the same in both sites: 5184000

I can't see anything that might be relevant in Firefox preferences. I don't know what to do, nor where to search...




Impossible to create/populate a dynamic album - sbillard - 2012-09-30

Sorry, no clue. We can change the code to not rely on the cookie, but that will wait until 1.4.4.