Download & Extend

Invalid argument supplied for foreach()...

Project:iptc
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:fronbow
Status:active

Issue Summary

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.

Comments

#1

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

Assigned to:Anonymous» fronbow

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

#3

Hopefully this is now fixed.

#4

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

nobody click here