Posted by minc on July 17, 2008 at 12:20am
| Project: | Taxonomy hide |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | brmassa |
| Status: | closed (fixed) |
Issue Summary
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!
Comments
#1
Here is a patch implementing the above corrections.
#2
Thank you very much, this should be implemented.
#3
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
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
for the moment, change it to
taxonomy_vocabulary_load#6
subscribe
#7
Guys,
fixed. Soon on the next release.
regards,
massa
#8
Automatically closed -- issue fixed for two weeks with no activity.
#9
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
#11
novogreen,
you cannot hide the forum-related taxonomy.
regards,
massa
#12
Automatically closed -- issue fixed for 2 weeks with no activity.