On our test site I'm getting the following errors:

warning: Invalid argument supplied for foreach() in [path removed]/modules/taxonomy/taxonomy.module on line 1293.

We seem to be getting none on some pages and 6 - 10 in a row on others, all identical. All modules now upgraded to latest versions.

Comments

jadowd’s picture

I am seeing this too, when I run cron manually... It seems to me that there ought to be a conditional around the foreach loop on line 1293.

jadowd’s picture

I'm guessing that it would look like this:

/**
 * Implementation of hook_nodeapi('update_index').
 */
function taxonomy_node_update_index(&$node) {
  $output = array();
  if( is_array($node->taxonomy) ){
    foreach ($node->taxonomy as $term) {
      $output[] = $term->name;
    }
  }
  if (count($output)) {
    return '<strong>('. implode(', ', $output) .')</strong>';
  }
}
yurg’s picture

judy07’s picture

thank's

blogers’s picture

I have the same error i dont know what make this error this hapend when run cron