Active
Project:
Term Relations
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2011 at 08:39 UTC
Updated:
30 Oct 2012 at 13:11 UTC
Add relation in taxonomy edit and Save:
Fatal error: Call to undefined function term_relations_vocab_submit() in /home/vvs/projects/htdocs/testsite.my/includes/form.inc on line 1430
Edit on Taxonomy Manager:
Fatal error: Call to undefined function taxonomy_get_term() in /home/vvs/projects/htdocs/testsite.my/sites/all/modules/term_relations/contrib/term_relations_tm/term_relations_tm.vocab.inc on line 16
What is it?
thx!
Comments
Comment #1
dinis commentedConfirmed, I'll take a look myself when I have a little more time.
Comment #2
heredoc commentedThe problem is that the function term_relations_vocab_submit() is declared in the vocab.inc file while drupal actually look for it inside the .module file.
What you can do is either move the function to the .module file or to rename the one in the .inc file (eg: _term_relations_vocab_submit()) then go in the .module, add term_relations_vocab_submit(), include the .inc and call the renamed function.
Here's a snippet:
I guess the same problem is repeated in the TM but i'm not sure.
Hope it helps
Comment #3
arukado commentedname of function taxonomy_get_term() change on taxonomy_get_tree().
it works but not correct.