Invalid argument supplied for foreach()

Ryanbach - July 9, 2006 - 04:49
Project:Flickr Module
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:bobthecow
Status:needs review
Description

Invalid argument supplied for foreach() in /home/username/public_html/modules/contrib/flickrmodule/flickr.module on line 106.

Is this because I don't have any images in my flickr account yet?

#1

madhusker - August 5, 2006 - 01:25

warning: Invalid argument supplied for foreach() in /var/www/www.heathsworld.com/htdocs/drupal/modules/flickr.module on line 106.

Same problem here with many images on my account.

#2

madhusker - August 5, 2006 - 01:25

warning: Invalid argument supplied for foreach() in /var/www/www.domain.com/htdocs/drupal/modules/flickr.module on line 106.

Same problem here with many images on my account.

#3

bobthecow - September 15, 2006 - 11:35
Assigned to:Anonymous» bobthecow
Status:active» needs review

that's indicative of two problems:

one, there's a bug in the code. that's fixed over here (sorry. i posted a duplicate bug report). or with the attached patch.

the other problem is most likely misconfiguration (in the case of liplisp) or an empty flickr account (in the case of Ryanbach).

either way, the api's not returning any photos to the module, and it's trying to do a foreach on a variable that isn't an array.

AttachmentSize
flickr.module_0.patch 645 bytes

#4

bobthecow - September 15, 2006 - 11:39

sorry. link was supposed to be here

 
 

Drupal is a registered trademark of Dries Buytaert.