Closed (duplicate)
Project:
Tagadelic
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2008 at 07:46 UTC
Updated:
4 Jul 2008 at 18:53 UTC
Hi,
I received this error message when I viewed the page as an anonymous user,
warning: Invalid argument supplied for foreach() in /home/username/where/drupal_5_5/sites/all/modules/tagadelic/tagadelic.module on line 285.
However, when I logged in as admin or authenticated user, it returns a normal working page. Please let me know if this has been solved or needs more info.
Thanks
Comments
Comment #1
pfaocleFirst up, are you affected by this with the 5.x-1,0 release? Second, which page is causing grief?
Looks like theme_tagadelic_weighted($terms) is gettings an empty $terms variable and not checking it before foreach'ing over it? Simple solution would be to check whether the parameter passed is empty, not sure if this is the best bet tho.
Comment #2
cwatson commentedI'm having this same problem, but only when I use the Community Tags module to add a tag to a node, and only when I'm logged in as a user type other than administrator.
The error:
warning: Invalid argument supplied for foreach() in drupal/modules/tagadelic/tagadelic.module on line 285.my setup: Drupal 5.5; MySQL 5.0.22; PHP 5.1.6
Comment #3
Bèr Kessels commentedhttp://drupal.org/node/245057