Invalid argument supplied for foreach() when "number of values" is set to unlimited

squeakyferret_sf - November 1, 2009 - 21:20
Project:Embedded Media Field
Version:6.x-1.x-dev
Component:Embedded Image Field
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Getting this warning twice in the messages area:

warning: Invalid argument supplied for foreach() in /drupaltest2.dev/sites/all/modules/emfield/contrib/emimage/providers/flickr.inc on line 157.

when trying to add more than one flickr image in an embedded image field. I've added an embedded image field to the story content type on a plain-vanilla 6.14 install. I've set the "number of values" for that image field to "unlimited", which should allow multiple flickr photos to be added when creating story nodes. One flickr photo works fine. Add a second one, and the warnings appear. The second photo never gets added.

#1

Alex UA - November 19, 2009 - 22:06
Version:6.x-1.15» 6.x-1.x-dev
Status:active» won't fix

Please see this issue: http://drupal.org/node/637778

Active development of the Flickr provider has been moved to the media_flickr module (http://drupal.org/project/media_flickr), so we need to remove the flickr.inc file from emfield, since a newer, better, version of the provider is available there.

Please direct any flickr related support requests to the media_flickr issue queue: http://drupal.org/project/issues/media_flickr.

 
 

Drupal is a registered trademark of Dries Buytaert.