Announcement

  •  » Extensions
  •  » Warning: Undefined array key "AIPDATA" error

#1 2024-01-10 21:45:07

grampton
Member
2021-01-22
5

Warning: Undefined array key "AIPDATA" error

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

 

#2 2024-01-11 07:18:52

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Warning: Undefined array key "AIPDATA" error

Hi :-)

Theme ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2024-01-11 17:06:29

grampton
Member
2021-01-22
5

Re: Warning: Undefined array key "AIPDATA" error

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

 

#4 2024-01-31 17:02:21

Wkung
Member
2024-01-20
7

Re: Warning: Undefined array key "AIPDATA" error

..same problem for me..

Offline

 

#5 2024-02-01 08:21:24

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Warning: Undefined array key "AIPDATA" error

Hi,

I'll have a look


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2024-02-02 11:50:20

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Warning: Undefined array key "AIPDATA" error

Hi :-)

can you test new release plugin


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#7 2024-02-09 17:24:45

grampton
Member
2021-01-22
5

Re: Warning: Undefined array key "AIPDATA" error

Thank you! I have tested this and now it behaves as expected.

Offline

 
  •  » Extensions
  •  » Warning: Undefined array key "AIPDATA" error

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact