Hello!
I installed Piwigo about 9 months ago but never got around to doing anything with it until now. So, this is my current Environment:
Environment:
Piwigo 14.1.0 Check for upgrade
Installed on 12 April 2023, 8 months 3 weeks 6 days ago
Operating system: Linux
PHP: 8.0.28 (Show info) [2024-01-10 13:36:29]
MySQL: 10.11.2-MariaDB [2024-01-10 13:36:29]
Graphics Library: ImageMagick 6.9.12-61
Cache size 298.07 Mo calculated 2 days ago Refresh
Activated plugin list:
Birthdate
Extended Description
LocalFiles Editor
Manage Properties Photos
Personal Favicon
I've used the "Manage Properties Photos" plugin to allow me to display some IPTC content beneath each photo when it is individually displayed. In short, I've successfully mapped and am displaying the following:
$conf['show_iptc_mapping'] = array(
'iptc_credit' => '2#110',
'iptc_object_name' => '2#005',
'iptc_caption' => '2#120',
'iptc_keywords' => '2#025',
'iptc_date_created' => '2#055',
'iptc_city' => '2#090',
'iptc_province_state' => '2#095',
'iptc_sublocation' => '2#092'
);
$conf['use_iptc'] = true;
$conf['use_iptc_mapping'] = array(
'Author' => '2#110',
'Name' => '2#005',
'Comment' => '2#120',
'Keywords' => '2#025',
'Date_Taken' => '2#055',
'City' => '2#090',
'State' => '2#095',
'Place' => '2#092'
);
When I view an image where all of those IPTC fields have data in them, there is NO problem. Everything displays correctly.
However, when I view an image where one of the IPTC fields is empty (for example, "Comment" or "City") then I get the following error message where the field content would usually be displayed:
Warning: Undefined array key "AIPDATA" in /volume1/web/pi/_data/templates_c/1y6qten_1xi49mk^779e7100532124b59ad734bfb615ab3345c2695c_0.file.picture.tpl.php on line 1285
Additionally, if two or more of those mapped IPTC fields are empty, I get the error message repeated (exactly the same) for each empty field.
Any ideas on how to fix this? Or maybe I've configured something incorrectly?
Thanks in advance. I know this is a long post.
Warmest regards,
GRAMPTON
Offline
Hi :-)
Theme ?
Offline
Currently, I am using Bootstrap Darkroom. However, this same error occurs in every theme I've tried, including:
Modus
Pure_grey
Elegant
Kardon
Simple Grey
and a few others. I've tried various color themes within Bootstrap Darkroom and this error occurs with each of them.
Thanks!
Offline
..same problem for me..
Offline
Hi,
I'll have a look
Offline
Hi :-)
can you test new release plugin
Offline
Thank you! I have tested this and now it behaves as expected.
Offline