The G2\wotd() function uses taxonomy_node_get_terms() to find the terms associated to the node if G2\VARWOTDTERMS is set.

However, this function no longer exists in D7, and the node always contains the attached taxonomy_term_reference fields since it has been loaded from node_load() just above. The option and associated code should be removed, since they no longer serve any purpose.

Writeup by DamZ about the removal of taxonomy_node_get_terms(): http://drupal.org/node/978242#comment-3748214

CommentFileSizeAuthor
#1 1457830.patch6.93 KBfgm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fgm’s picture

Issue summary: View changes

better formatting

fgm’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
6.93 KB

That feature cannot reasonably be implemented on D7: see the explanation on the summary.

Use the D9/D10 version these days.

  • fgm committed 56ca50d4 on 7.x-1.x
    Issue #1457830 by fgm: G2\wotd() uses removed function...
fgm’s picture

Status: Needs review » Fixed

Merged to current D7 HEAD.

fgm’s picture

Merged to current D7 HEAD.

Status: Fixed » Closed (fixed)

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