![]() |
|
Metadata: strange behavour (ZP 1.4.6) - 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: Metadata: strange behavour (ZP 1.4.6) (/thread-12009.html) |
Metadata: strange behavour (ZP 1.4.6) - Gonepteryx - 2015-01-20 Hello In my customized theme (based on ZPBootstrap) I want to show date, city, location, state and country inline beyond the image. I added the following code in image.php: ` <?php if (getImageDate()){ echo printImageDate() . " | "; } ?> <?php if (getImageLocation()) { echo getImageCity(), ", ", getImageLocation(), " | "; ?> <?php } elseif (getImageCity()) { echo getImageCity(), " | "; } ?> <?php if (getImageState()) { echo getImageState(), " | "; } ?> <?php if (getImageState()) { echo getImageCountry(); } ?> ` This works fine until I manually change the image data in backend, for example, add a description. Then the metadata location, city, state and country are not shown anymore; only description and date remain. This is the case for the changed image itself as for the following 9 images. This number corresponds with the number of images shown per page in backend. The metadata still remain in backend and in IPTC-Data, but are not shown at frontend. Here two examples: 1: image-page as it should be: http://zentest.hueser.ch/pflanzen/orchideen/P1090147.jpg.php 2: image-page after adding description: http://zentest.hueser.ch/pflanzen/orchideen/P1130716.jpg.php Is this by design (you should not change metadata which come from IPCT/Exif) or did I put wrong code or is it a bug? Btw: I tried the same code in standard Zenpage theme with the same result. Thanks for your help! Gonepteryx Metadata: strange behavour (ZP 1.4.6) - fretzl - 2015-01-20 I believe that was a bug that is fixed in the meantime. Please try the Support build Metadata: strange behavour (ZP 1.4.6) - acrylian - 2015-01-20 fretzl is right, I fear. Btw, those fields are actually "standard custom fields" as they are not used for metadata meaing EXIF/IPTC embedded in the images itself. Metadata: strange behavour (ZP 1.4.6) - Gonepteryx - 2015-01-20 Great, the problem is solved with the support build, many thanks to fretzl and acrylian! But now the startpage / homepage needs more than 20 seconds to open, tried with zenpage and standard theme. First time I opened the start site, I got the following error: Fatal error: Maximum execution time of 30 seconds exceeded in /home/hueserc/www/zentest/zp-core/functions.php on line 1146 Not important in my case, as this is my trial gallery. But maybe it's a hint for the developers. Thanks for all your great work, I'm very happy with Zenphoto :-) Metadata: strange behavour (ZP 1.4.6) - acrylian - 2015-01-20 Thanks, that always helps. We would appreciate if you could do some testing the next days when we hopefully improve this. Metadata: strange behavour (ZP 1.4.6) - Gonepteryx - 2015-01-20 yes, that's ok, I will try to remember... |