![]() |
|
Dynamic Album Failure - 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 Album Failure (/thread-13842.html) |
Dynamic Album Failure - Adrian0832 - 18-05-2023 This is weird... Zenphoto 1.6.a and the matching ZPBootstrap The site I'm managing has many dynamic albums which are mapped to individual tags (one tag per album) For example, there is a tag "ROMA: welcome" and a dynamic album for the rotating home page image using "searchs=ROMA: welcome&searchfields=tags_exact" as its selector Up to yesterday it was working - today it is not. In the Admin - Albums page, the dynamic album is indicated as empty In the Admin - Tags page, that Tag is show as occurring 13 times To the best of my knowledge we have not updated PHP, ZenPhoto or ZPBootstrap since the end of February when we upgraded to 1.6.a (The ZP logs show a few deprecated functions which I'm investigating but non appear related to Search) Search has not functioned since we upgraded to 1.6.a - we can live with that but an almost blank homepage is not ideal! Any suggestions welcome... Dynamic Album Failure - acrylian - 18-05-2023 I assume you mean 1.6.1a and not 1.6a because there is 1.6 of course? Deprecated functions should generally not cause this. They should be replaced but as long as they are there they should work. Generally alpha versions are not yet complete because in development. But if your last 1.6.1a is from later February you should try the latest as there have been updates meanwhile. Search itself was not broken in 1.6 to our knowledge. The only thing that was broken was the searchfields selection on the theme search form. That meanwhile is fixed. Also try clearing the search cache or just disable it. Dynamic Album Failure - Adrian0832 - 18-05-2023 My bad - it is 1.6.1a I'll try your other suggestions - many thanks Dynamic Album Failure - Nick7635 - 15-10-2023 I've had the same problem with dynamic albums, and eventually decided the only way to solve it was to delete the offending albums, and then recreate them. This was successful but, when I then pressed the "Refresh Album Metadata" button I lost all of the content, identical to the original problem. Dynamic Album Failure - Nick7635 - 15-10-2023 Another minor irritant with dynamic albums is that they don't like brackets (), and maybe other non-alphanumeric characters too, in the album name when first created. If I type "Eastwood (Clint)" as the dynamic album name, what is created is "Eastwood-Clint-". I can alter it back to what I want, but why does it do this? Dynamic Album Failure - acrylian - 16-10-2023
We will have to try to reproduce this. Anything in the logs? Note if you refresh metadata and the dynamic search query it will re-read the metadata from images.
Are the image used by these dynamic album within that main album?
You need to understand the difference between the "name" and the "title". The name is the internal identifiyer, appears in the URL and creates a This is the smae for all content item types (albums, images, articles, categories, pages) Dynamic Album Failure - Nick7635 - 17-10-2023 Re the Refresh Album Metadata issue, I've just pressed the button again in the main album, that had a number of empty dynamic sub-albums, and one sub-album with 37 images in it. After pressing, that sub-album is empty too. I can't see anything relevant in the Logs. Dynamic Album Failure - Nick7635 - 17-10-2023 The dynamic album as above was created by searching for "Brackenbury" in Tags, looking for images only (it found 37). At the bottom of the Admin screen is "Dynamic album search: Dynamic Album Failure - acrylian - 17-10-2023 We did some research: Image metadata refresh re-imports all metadata and overwrites existing data. This is actually intended behaviour as leaving out fields that already have data would miss the purpose. If the tag the dynamic album is searching was added manually it gets lost because the tags from the metadata overwrite the tags again. This has nothing to do with dynamic albums in special actually. As we notice with this issue this is not really properly documented or warned. We already added a note to our user guide article https://www.zenphoto.org/news/zenphoto-image-metadata-processing/ and will see to add a confirm dialog and warning to the buttons with the coming 1.6.1 release. Dynamic Album Failure - Nick7635 - 17-10-2023 Your question "Are the image used by these dynamic album within that main album?". Dynamic Album Failure - acrylian - 18-10-2023 Okay, the issue is still that somehow you use something to create the dynamic album that is overwritten when re-importing the metadata via refresh. The only ways around that is probably to (temporarily) disable the metafields, in your case probably tags, in question from importing. You could do that on Options > Image. Dynamic Album Failure - Adrian0832 - 26-10-2023 I've done a bit of tampering with the Database to try and identify exactly what breaks (if it's not obvious, Nick and I are talking about the same site) Dynamic Album Failure - acrylian - 26-10-2023 Thanks for the investigation! Now we know what we're looking for we'll take a look as soon as possible where that comes from. Dynamic Album Failure - acrylian - 26-10-2023 I think you are seeing a glitch. For 1.6 the search URL was changed to use Please look at the Dynamic Album Failure - Adrian0832 - 27-10-2023 No apologies required - that's this morning's job (for me) sorted then! Dynamic Album Failure - Adrian0832 - 27-10-2023 The .alb file does not change as the album is (deliberately) broken and repaired. The .alb file for Nick's example is
CONSTRAINTS=inalbums=1&inimages=1&unpublished=0 and does not change, nor does the time stamp
when working and
when not Dynamic Album Failure - acrylian - 27-10-2023 Sorry, my bad, the .alb file indeed should still have:
but in the db it should be
The totally wrong "searchs" must from a 1.6.1a version where this change was in transition and not fully ready (it's an alpha version after all). The dynamicalbum class internally translates "words" to "s" for saving in the database so. Note this is all for the current state of 1.6.1a. Dynamic Album Failure - Adrian0832 - 27-10-2023 Ah - understood - thanks. |