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
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
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
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.
#4
sorry. link was supposed to be here