For instance, Commerce products are treated as term fields, this produces warnings about non-existing 'tid' index.
The possible solution is:

--- hansel_taxonomy.module.orig 2011-12-08 02:06:13.000000000 +0400
+++ hansel_taxonomy.module      2011-12-09 01:59:43.018684224 +0400
@@ -69,6 +69,9 @@
           if (isset($term_field[$node->language]) || isset($term_field['und'])) {
             $localized_terms = isset($term_field[$node->language]) ? $term_field[$node->language] : $term_field['und'];
             foreach ($localized_terms as $term) {
+              if (!isset($term['tid'])) {
+                continue;
+              }
               if (!isset($term['taxonomy_term'])) {
                 $term['taxonomy_term'] = taxonomy_term_load($term['tid']);
               }

Comments

mauritsl’s picture

Status: Active » Fixed

Committed to GIT, thanks!

Status: Fixed » Closed (fixed)

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