Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When enabling the Taxonomy option for tweeting, the following error occours:
Fatal error: Call to undefined function taxonomy_node_get_terms_by_vocabulary() in /home/snugug/staging.snug.ug/sites/all/modules/contrib/tweet/tweet.module on line 186
The function taxonomy_node_get_terms_by_vocabulary is not a D7 function, and an API search hasn't turned up a similar function; but this is something that needs to be fixed
Comment | File | Size | Author |
---|---|---|---|
#5 | tweet.module.patch | 1.3 KB | agerson |
Comments
Comment #1
mgiffordI can confirm this is a problem with my install of the code.
Comment #2
Paragon CreditAttribution: Paragon commentedIt happens to me as well. It was working fine before...I'll post back if I figure out what's different.
Edit: 10 seconds later, I see that all I did was select some options from the menu, "Include taxonomy terms from these vocabularies as #hashtags in tweets when used in the current node".
Paragon
Comment #3
IceCreamYou CreditAttribution: IceCreamYou commentedYeah, I know it's a problem. There's no immediately obvious fix and I won't have time to work on it for a few weeks. Sorry.
Comment #4
agerson CreditAttribution: agerson commentedtaxonomy_node_get_terms_by_vocabulary() used on line 186 of the tweet.module is not available in drupal 7. This should work
Comment #5
agerson CreditAttribution: agerson commentedComment #6
IceCreamYou CreditAttribution: IceCreamYou commentedThanks for the patch. Will take a look when I get a chance.
Comment #7
IceCreamYou CreditAttribution: IceCreamYou commentedCommitted, thanks!