Invalid argument supplied for foreach()...

guix - February 13, 2008 - 01:37
Project:iptc
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:fronbow
Status:active
Description

Hi,

I'm getting the same issue as the one mentionned in this feature request. I'm using PHP 5 so I think the bug is confirmed and not due to PHP 4, that's why I'm reporting here. I'm using Standard php functions too.

* warning: Invalid argument supplied for foreach() in /var/www/drupal/sites/test1.localhost/modules/iptc/iptc.module on line 758.
* warning: Attempt to assign property of non-object in /var/www/drupal/sites/test1.localhost/modules/iptc/iptc.module on line 766.

#1

guix - February 13, 2008 - 03:33

Updates

  1. The bug does not appear if you choose Get exif metatags only, this makes sense. It shows for IPTC and of course, both together.
  2. Appears too with the exiv2 method instead of plain PHP.
  3. Appears on lines 758 and 766 when you update an image node, and also with line 809 and line 8xx (don't remember, but the Attempt to assign property) when you create an image node.

#2

fronbow - February 18, 2008 - 23:35
Assigned to:Anonymous» fronbow

Cheers for this guix, I'll have a look to see what's happening.

#3

fronbow - March 29, 2008 - 00:10

Hopefully this is now fixed.

#4

Cyclist72 - July 12, 2008 - 16:00

I am still getting the same message, hasn't this been fixed?

 
 

Drupal is a registered trademark of Dries Buytaert.