When using the FAQ module, I was having difficulty with some of the links to categories/taxonomy. When I clicked on those links, I would get a message:
"Fatal error: Call to undefined function taxonomy_get_vocabulary() in /site/modules/taxonomy_hide/taxonomy_hide.inc on line 43"

I changed two lines in taxonomy_hide.inc that called this function to call the function taxonomy_get_vocabularies() instead, and that appears to have fixed the problem for me.

Thanks!

CommentFileSizeAuthor
#1 tah_D6.patch467 bytesartem_sokolov

Comments

artem_sokolov’s picture

Status: Active » Needs review
StatusFileSize
new467 bytes

Here is a patch implementing the above corrections.

lomz’s picture

Thank you very much, this should be implemented.

starbow’s picture

Well, that patch removes the error, but it doesn't actually do what the code is trying to do.

function _taxonomy_hide_sort($a, $b) {
  // Cache the extra vocabulary information (we need the vocabulary weight)
   static $vocs;
   if (!$vocs) {
     $vocs = taxonomy_get_vocabularies();
   }

  // Compare first by vocabulary weight, next by vocabulary id, next by term
  // weight, next by term name, and finally by term id. This is the same order
  // as used by taxonomy_node_get_terms, except that we group by vocabulary too.
  if ($vocs[$a->vid]->weight < $vocs[$b->vid]->weight) {
    return -1;
  }
...
brmassa’s picture

Assigned: Unassigned » brmassa

Guys,

im about full of work. Im planning to work on Taxonomy hide next week, fixing it and including new features. This will be a subject to work for sure.

regards,

massa

wuf31’s picture

for the moment, change it to taxonomy_vocabulary_load

sammy-node’s picture

subscribe

brmassa’s picture

Status: Needs review » Fixed

Guys,

fixed. Soon on the next release.

regards,

massa

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

novogreen’s picture

I am running my site for a week on drupal 6.5 and I started getting this error after I installed http://drupal.org/node/200693 , a event module port for drupal6. Now even after uninstalling event module, I am getting following error:

warning: Missing argument 1 for taxonomy_vocabulary_load(), called in /home/cleantec/public_html/modules/forum/forum.module on line 175 and defined in /home/cleantec/public_html/modules/system/taxonomy/taxonomy.module on line 979.

Does anybody know the solution for it??

novogreen’s picture

Status: Closed (fixed) » Active
brmassa’s picture

Status: Active » Fixed

novogreen,

you cannot hide the forum-related taxonomy.

regards,

massa

Status: Fixed » Closed (fixed)

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