call to undefined function in Drupal 6

minc - July 17, 2008 - 00:20
Project:Taxonomy hide
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:brmassa
Status:closed
Description

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!

#1

artem_sokolov - July 27, 2008 - 09:50
Status:active» needs review

Here is a patch implementing the above corrections.

AttachmentSize
tah_D6.patch 467 bytes

#2

lomz - August 18, 2008 - 18:08

Thank you very much, this should be implemented.

#3

starbow - August 25, 2008 - 21:57

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;
  }
...

#4

brmassa - August 26, 2008 - 23:12
Assigned to:Anonymous» 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

#5

wuf31 - September 6, 2008 - 20:39

for the moment, change it to taxonomy_vocabulary_load

#6

duncano74 - October 8, 2008 - 19:29

subscribe

#7

brmassa - October 27, 2008 - 15:07
Status:needs review» fixed

Guys,

fixed. Soon on the next release.

regards,

massa

#8

Anonymous (not verified) - November 10, 2008 - 15:11
Status:fixed» closed

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

#9

novogreen - November 25, 2008 - 18:40

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??

#10

novogreen - November 25, 2008 - 18:41
Status:closed» active

#11

brmassa - January 19, 2009 - 13:25
Status:active» fixed

novogreen,

you cannot hide the forum-related taxonomy.

regards,

massa

#12

System Message - February 2, 2009 - 13:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.