On each attempt to reindex site I got number of errors in form "Invalid argument supplied for foreach() in [...]/modules/taxonomy.module on line 1199."

I have set up single dictionary with single hierarchy, multiple select.

Looking at code looks like it is in fucntion "taxonomy_node_update_index" is generating log message

Comments

mgabalins’s picture

Litlle more exploration shows that $node parameter is not set for call to function taxonomy_node_update_index. Called by taxonomy_nodeapi.

killes@www.drop.org’s picture

I am rather sure that your assesment is wrong.

see here, line 720 in node.module:
$node->body .= module_invoke('taxonomy', 'nodeapi', $node, 'update index');

mgabalins’s picture

Assesment was done inserting some watchdog calls to get out put in Log. My current hypothesis (I do not know how grounded) is that there may be some conflict with Organic group permission system (e.g cron is running as anonymous and I do not have any public content). Funny, but call is made correct number of times, just that outpout of $node->nid or $node->title is empty.

mgabalins’s picture

MY hyphoytesis was right. Once I disabled organic groups access control - everything worked as expected, so I guess I should take this to Organic Groups

pwolanin’s picture

see: http://drupal.org/node/65024

When I'm seeing this error message it may be becuase of a problem with the forum module.

mgabalins’s picture

I found the source of the bug in my case - happened to be db_rewrite done by organic groups. See my post here http://drupal.org/node/64333

killes@www.drop.org’s picture

Status: Active » Closed (won't fix)
lambert-1’s picture

I have the same bug, but I'm not running OG. Here are the contributed modules I am using:

atom/
porterstemmer/
audio/
spam/
badbehavior/
service_links/
similar/
smartypants/
hof/
glossary/
feedback/
pathauto/