community_tags_node_view, at line 226 of the current dev version, calls:

theme('community_tags', 'user_node', NULL, $user->uid, $node->nid)

but theme_community_tags only takes one argument, an array of tags to render.. therefore, when a user has tagged a node and revisits it, that user's tags are not shown and an error, “warning: Invalid argument supplied for foreach() in .. modules/tagadelic/tagadelic.module on line 285”, is produced. Eariler in community_tags_node_view $tags was populated with user node tags, so it seems like the theme call should be:

theme('community_tags', $tags)

This call does show the user's tags and eliminates the error.

A patch that makes this fix is attached.

Comments

dropcube’s picture

Status: Active » Fixed

I have committed this quick fix, but a think a more deep revision to the function community_tags_node_view() is required.

dropcube’s picture

Title: Bad call to theme_community_tags causes db error » Bad call to theme_community_tags causes error
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.