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

dinis’s picture

Confirmed, I'll take a look myself when I have a little more time.

heredoc’s picture

The 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:

/**
 * Extra submit handler for taxonomy_form_term to handle term multiple vocab relations.
 */
function term_relations_vocab_term_submit(&$form, $form_state) {
  module_load_include('inc', 'term_relations_vocab', 'term_relations_vocab');
 _term_relations_vocab_term_submit($form, $form_state) ;
}

I guess the same problem is repeated in the TM but i'm not sure.

Hope it helps

arukado’s picture

name of function taxonomy_get_term() change on taxonomy_get_tree().
it works but not correct.