Download & Extend

Invalid argument supplied for foreach()

Project:Flickr Module
Version:master
Component:Code
Category:bug report
Priority:normal
Assigned:bobthecow
Status:needs review

Issue Summary

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?

Comments

#1

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.

#2

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

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

sorry. link was supposed to be here

nobody click here