Hi,
I don't know why but $terms variable is sometimes null, and that's the reason of warning.
I guess i fixed it, please have look at attached patch.

Regards

CommentFileSizeAuthor
null terms warning messages.patch562 bytessinasalek
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NancyDru’s picture

This should only occur if the vocabulary has no terms assigned to it yet. In that situation, taxonomy_get_tree should return FALSE, which is what is normally checked for.

      if (!$terms = taxonomy_get_tree($vid, 0, -1, 1)) {
        continue;
      }
NancyDru’s picture

Status: Needs review » Fixed

This is now in 5.x-1.10.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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