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?

CommentFileSizeAuthor
#3 flickr.module_0.patch645 bytesbobthecow

Comments

madhusker’s picture

Assigned: bobthecow » Unassigned
Status: Needs review » Active

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.

madhusker’s picture


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.

bobthecow’s picture

Assigned: Unassigned » bobthecow
Status: Active » Needs review
StatusFileSize
new645 bytes

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.

bobthecow’s picture

sorry. link was supposed to be here

Status: Active » Needs review