I have followed a number of tutorials on this module, yet I cannot seem to get it to work. None of the Menus I create (and then assign taxonomy to, and then move block into a given area) show anything.
I am pretty experienced with Drupal, but am totally stumped by this!
Thanks to all for any help or suggestions.
| Comment | File | Size | Author |
|---|---|---|---|
| #52 | taxonomy_menu_remove_url.patch | 1.03 KB | reswild |
| #46 | drupal7-taxonomymenu_fail.zip | 429.41 KB | musee.informatique |
| #42 | taxonomy_menu.patch | 882 bytes | reswild |
| #41 | taxonomy_menu.patch | 765 bytes | reswild |
Comments
Comment #1
fang27 commentedComment #2
miguel_angel commentedHave you any nodes that belongs to the taxonomy you're talking about?
Comment #3
fang27 commentedLots - pretty much every node that gets created is required to have a taxonomy term attached.
Comment #4
miguel_angel commentedCan you see if the menu links are created but hidden?
You can check that at http://www.example.com/admin/build/menu/list, click on your menu and see if it has any terms and if they have the activated checkbox checked or not.
Comment #5
fang27 commentedNo, there are no items listed under the particular menu (in this case, I simply called it "Taxonomy Menu" so it won't be mistaken for anything else).
Certainly when I am in taxonomy I assign it to the proper menu in the drop down and build, even re-build, the menu items, but nothing appears under the menu listing.
Comment #6
miguel_angel commentedThis is a strange thing.
Do you get the "The Taxonomy Menu has been updated" message after rebuild?
What other modules have you enabled?
Which version of drupal?
Comment #7
fang27 commentedYes, I get:
* Updated vocabulary Manufacturer.
* The Taxonomy Menu has been updated.
Drupal 6.17
Other module include:
CCK, an assortment of Image and ImageCache modules, Pathauto, Token, jQuery, Views, WYSIWYG, and Simple Ads.
All of the other modules seem to work, except for CCK - which I installed but haven't used for anything as of yet.
Comment #8
fang27 commentedAny thoughts?
Comment #9
qartz commentedSame stuff. You can switch "Menu path type" to "Default" - worked for me - menu items are being created successfully.
It definetely does not depend on Pathauto (problem persists with Pathauto disabled).
Comment #10
fang27 commentedHoly smokes, that worked! Thanks for the suggestion! Still, it should work with different Menu path types. Must be a bug. :-p
Comment #11
dsayswhat commentedI also can report my menu disappearing - I was using custom paths.
When I flipped it back to default, the menu showed back up. Flipping back to custom paths hides the menu again.
I'm using panels to build the pages associated with this menu...I was adding variant to the panel, and a taxonomy context in the panel as well, and sometime in there, it broke the custom path functionality.
Thoughts?
Comment #12
13rac1 commentedConfirmed in 6.x-2.9. Same fix corrects it. Tested with current dev. Switching back to Custom Path results in:
Edit: These warnings are solved by: http://drupal.org/node/689318#comment-3400422. Menus are still not showing though.
Comment #13
indytechcook commentedWhat do you plan on using to display the taxonomy page? Views? Custom page? There has to be a menu callback for the link before the link will be created.
Comment #14
mazzI was just wrestling with this problem - if you look in the menu_links table you'll notice that the router_path is blanked out. After much digging I noticed that the menu system automatically returns an empty string (lame in my opinion) if no router is found. In order to find the router the function _menu_find_router_path is called (from menu.inc):
Based off the link path it performs a query on the menu_router table to find if any of the ancestors are in this table and determine proper handling of the link - so if your link path (in my case) is product-catalog/data/product it will perform the following:
(I swapped in "product-catalog,data,product" so that it's easier to understand)
In my case using ubercart, I wrote a custom module for taxonomy_menu to generate my catalog links properly into a menu. The module grabbed the aliases generated by pathauto to use as the link path. It's simply this small bit of code:
I had to change pathauto to generate my paths as follows: catalog/data/product so that it would find the catalog router that was in the table. I'm not really clear on how these routers are added, I guess on install of the module but I don't have time to investigate right now.
Good luck.
Comment #15
indytechcook commentedThanks mazz, Welcome to the complexity of the menu system :)
The menu router is pulled from hook_menu in modules. THey makes to the real path and not the alias. This is a very common issue.
99% of the time you want to use the default path type and use pathauto to create the alais. This is something I really want to improve.
Side note, you can also use menu_get_item() to get the menu router item for a path.
Comment #16
mazzAlright thanks indy - the issue I see is that ubercart does not take into account aliases when it does this:
Shouldn't this be something like:
That would have fixed my issue now that I understand it although I may be overlooking something that would affect other implementations, though I cant foresee that happening except maybe for localization (path language), but I've never utilized that functionality so I can't say.
Comment #17
Anonymous (not verified) commentedI've noticed that taxonomy generated menu's won't show if you include an item for the vocabulary. At least thats the issue I'm having. Any ideas?
Comment #18
stefan81 commentedCan report the same like #17.
Comment #19
dawnieando commentedI can't find taxonomy menu listed in the first place.
I just added a vocabulary and have enabled taxonomy menu.
When going to admin its just not there at all.
Am I doing something fundamentally wrong at my end or is this the bug that you're talking about?
If so, is there a quick fix for now?
Thanks
Comment #20
dawnieando commentedDuh, I'm clearly stupid.
I had taxonomy disabled.
Sorry about that.
Seems to be working now.
Apologies.
Comment #21
Garry Egan commentedHierarchical view hides the menu. When I switch to default, it shows it in the block. However, with 100+ categories, it's a monster left-column now. Anyone got a fix for the Hierarchical hiding menu bug?
Comment #22
dawnieando commentedI too am having this issue.
When you switch menu to primary links for example it just completely disappears and it seems its always got to be on default.
Comment #23
dawnieando commentedIs taxonomy menu settings supposed to show up in /admin as its not doing for me?
Am I doing something wrong or is this a bug?
Its enabled but just nowhere in sight at /admin
Can someone advise please?
Regards
Comment #24
dawnieando commentedSorry if this is a duplicate but I can't seem to find taxonomy menu module showing up in the admin/by-module list at all when its enabled.
Is this a bug or just me. I've looked around the issue posted here and it doesn't seem to say that it should not be listed or listed in the usual way when admin/by-module are listed.
Thanks for your time on this.
Comment #25
dstoldawnieando, the settings for taxonomy menu can be found in the edit page for the taxonomy you want to add to the menu.
Comment #26
dawnieando commentedI've seen the taxonomy menu settings in the term but having looked at a few tutorials it seems to list 'taxonomy menu' under site building but its not showing there.
Do you have assign a specific menu which you create to taxonomy menu or is it automatic?
Certainly I can't seem to find it under site building on the main admin page which is what the tutorials and the book I'm going through are showing.
Thanks for your help on this.
I appreciate it.
Comment #27
dawnieando commentedDo you have to create the taxonomy menu as a menu and then assign the vocabularies?
I'm a bit stumped here.
Comment #28
dawnieando commentedIts not showing the ui for taxonomy menu as per this video
http://www.youtube.com/watch?v=Vx1CqYI0BeQ
Is this a separate module from taxonomy_menu?
Comment #29
dawnieando commentedIs taxonomy menu V3 a separate module as I can't seem to find V3 anywhere and can't see the UI which a lot of tutorials are showing which is separate from the editable areas in the vocabulary settings. Specifically I'm looking of the section where I can choose whether to 'show this category in menu' - options in the book I'm reading show 'no' or 'normal'.
Can someone help with finding where these options are. Its saying Taxonomy menu V3 but I just can't find it anywhere on the admin page at all.
I've just checked the modules list and taxonomy menu and taxonomy are slighted greyed out but checked. Could this be something to do with the issue?
Thanks
Comment #30
dawnieando commentedNow something really mad is happening.
Every time I try to edit a vocabulary and save it it just keeps adding image galleries in multiples of two down the navigation left menu.
surely something is wrong.
Comment #31
dawnieando commentednow the navigation page is not rendering at all.
I just rebuilt taxonomy menu thinking that that was going to help but instead it now just showing code when I go to browser to display the page.
Any solutions most gratefully received.
Taxonomy looks like a great thing but I'm struggling here with it.
Comment #32
sorvats commentedI have a similar problem, cannot see Taxonomy Menu Settings under site building unless I view it through the Vocabulary terms I created, is the the normal way...?
Comment #33
dstol@sorvats, that's the correct way to set settings.
Comment #34
squinternata commentedi create a taxonomy vocab and then i added this to a menu i can see the menu but i can t see all the vocabulary items also if i checked rebuild menu after save..
is this the same bug yo are talking about?
Comment #35
tev commentedSame here, the taxonomy menu is only build when standard path is selected.
Comment #36
topmet commentedsame problem,
create menu,
create vocabulary (selected menu + default path)
create terms,
rebuild vocabulary
menu is empty
in table menu_links links exist
Comment #37
musee.informatique commentedDrupal 7.0
+ Taxonomy Menu 7.x-1.0
I configure it to put a taxonomy category in the main menu
no taxonomy items in my menu whatever I try to do
but I can see all taxonomy items in the good menu sql table
Here is the first item from taxonomy_menu in my mysql table:
UPDATE `menu_links` SET `menu_name` = 'main-menu',`mlid` = 924,`plid` = 0,`link_path` = 'drupal7/taxonomy/term/1',`router_path` = '',`link_title` = 'Calcul/PDA',`options` = 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:10:"Calcul/PDA";}}',`module` = 'taxonomy_menu',`hidden` = 0,`external` = 0,`has_children` = 1,`expanded` = 1,`weight` = 0,`depth` = 1,`customized` = 0,`p1` = 924,`p2` = 0,`p3` = 0,`p4` = 0,`p5` = 0,`p6` = 0,`p7` = 0,`p8` = 0,`p9` = 0,`updated` = 0 WHERE `menu_links`.`mlid` = 924;
no other menu module or autopath or something like that
any idea ? ^^
Comment #38
dawnieando commentedI'm steering clear of taxonomy menu for now. It has issues which I think need sorting out.
Comment #39
reswild commentedI'm not getting taxonomy_menu to work at all in Drupal 7. As described above, the menu items can be found in the taxonomy_menu table in the db, but doesn't show up on the site.
Checking my logs, I find loads of theese notices:
Notice: Undefined index: mlid in _taxonomy_menu_create_item() (line 790 of /home/reswild/public_html/drupal-7/sites/all/modules/taxonomy_menu/taxonomy_menu.module).
Notice: Undefined index: vid in _taxonomy_menu_create_item() (line 742 of /home/reswild/public_html/drupal-7/sites/all/modules/taxonomy_menu/taxonomy_menu.module).
Notice: Undefined index: tid in _taxonomy_menu_create_item() (line 742 of /home/reswild/public_html/drupal-7/sites/all/modules/taxonomy_menu/taxonomy_menu.module).
Comment #40
pyotrpro commentedSame to me - not showing - release and dev version - both
Comment #41
reswild commentedOK, I figured out why this wasn't working for me. Looking in the menu_links table in my db, I found that the links for the taxonomy menu were being written, but they included the subdirectory of my drupal installation. (So they were written as drupal-7/taxonomy/term/1 instead of taxonomy/term/1, etc).
Here is a quick patch that works for me.
Comment #42
reswild commentedActually, this is probably the right way of writing that:
Comment #43
vitok-dupe commentedD7 version not work at all!
Comment #44
dstolCan someone send me steps to reproduce and a database dump? I'm having a hard time getting a menu to not show.
Comment #45
reswild commentedDid you try with drupal running in a subdirectory on your site?
Like www.example.com/drupal
I'm getting the error on a standard install, with no other extra modules installed except taxonomy_menu.
Comment #46
musee.informatique commentedHere is a sample
Nothing special... I choose the menu I want in a taxonomy list "Menu location" field
The menu link table seems ok but nothing appears in the choosen menu
Installed modules:
Pathologic 7.x-1.x-dev
Gallery Formatter 7.x-1.x-dev
jQuery Update 7.x-2.x-dev
Wysiwyg 7.x-2.0
Linkit 7.x-1.0
Linkit File 7.x-1.0
Linkit Node 7.x-1.0
Linkit Permissions 7.x-1.0
Linkit Taxonomy 7.x-1.0
Linkit User 7.x-1.0
Linkit Views 7.x-1.0
Colorbox 7.x-1.0-beta1
Taxonomy Menu 7.x-1.0
Hope it helps
Comment #47
brewthis commentedSame problem here using D7. No menu links showing up at all front-end. They are however visible in the database.
Comment #48
NimbyDagda commentedI have the same symptom, but I suspect the cause may be different. When my menus are built, the menu_link table gets the appropriate links generated but they all have blank link_paths. I have tried manually tweaking the table to see if that works but this just results in an error in the core menu code.
UPDATE: And after coming back to after about an hour, the taxonomy_menu table still has the relevant entries, but all of the mlid's it is pointing to are now missing from the menu_links table.
Comment #49
pyotrpro commentedI applied patch and paths are correct and all menu links exist at menu_links table of database - but all paths are custom - not like taxonomy/term/* May be that is problem?
Comment #50
Iho Tea commentedsame problem..
subscribe
Comment #51
jamilshabir commentedSame problem as above, using D7 have applied the patch, database showing Link_path fine router_path is empty, but the links don't appear on front end. can someone very clever sort this out for gawds sake.
Comment #52
reswild commentedYes, when using custom paths for the term pages, the custom paths are written to the link_path field (in the menu_links table) instead of the system paths, while nothing is written to the router_path field.
Here is a patch that removes the url function that are producing the custom paths (and also caused the problems with subdirectories). I'm not quite sure why the url function was needed there in the first place, so this might cause other problems, but it seems to work OK on my test site.
Comment #53
gemu commentedsame problem, d7 and patch #42 applied but I get "The Taxonomy Menu has been updated." while code says
return t('The Taxonomy Menu %menu_name has been updated.', array('%menu_name' => $menu_name));so i would expect the menu name there...Anyways, patch #52 seems to have resolved the issue of the links showing up for me. Thank you.
Comment #54
pyotrpro commentedIt works!! patch #52 Thanx a lot!
Comment #55
xacto commentedThank you reswild!! I owe ya a pint or 2.
:-)
Patch applied to the non-dev version: 7.x-1.0
Comment #56
vitok-dupe commentedyep, patch #52 solved problem. thx!
Comment #57
musee.informatique commentedgreat job !!!
patch #52 ok on the taxonomy_menu-7.x-1.0
Comment #58
dstolWee, community! reswild++ I'll have this committed and I'll roll a release out this evening.
Comment #59
Elendae commentedPossible to have also the release patched for V6? Thanks a lot :)
Comment #60
dstolhttp://drupal.org/cvs?commit=481884
http://drupal.org/node/1027634
Thanks! @Elendae, it's not quite the same issue in D6 and needs a little more work then this but if you're not using custom paths feel free to adapt the code for your needs.
Comment #61
Elendae commentedI'm afraid, even if my skills in Drupal are not so bad, my skills in development isn't good enough to correct the module by myself :(.
For the moment, this great module can't be use in D6 with custom path. And without custom path, we can't use it to point at view or panel.
Anyway, really thanks for your work.
Comment #62
dstolComment #63
mattcasey commentedCan confirm #17 and #18 in Drupal 6 using that setting an item for Vocabulary (at vocabulary edit page) makes the menu items disapper on the Menu List Items page, disabling it then triggers a menu-rebuild and the links return!
Matt
Comment #64
vinnydog commentedI can also confirm that only the default menu type is working in 6.x-2.9. Is there any progress on fixing this? Patches above were all for D7...
Comment #65
reswild commentedI had a quick look at the issue with menu items disappearing when using Add item for vocabulary. In my case, the menu items are created OK, but old vocabulary menu items aren't deleted when the menu rebuilds. This leads to the active trail being set to the wrong menu item. (That is, it is set to the old menu items that should have been deleted, instead of the new ones that I just created). This means secondary menu items never show up unless I set the menus to be always expanded.
My menu items still show up on the Menu List page though, so this might be a different problem than what is reported above.
Comment #66
yixia commentedMenu path type: Custom path
At first, I set Base path for custom path: products/%(I have a view with argument termid, its path is products), no menu items showen, but I have seen someone upper said the menu items exists in menu_links table, and I checked, that's right.
Just change the path to "products" , remove the "/%" from the path, it works.
Comment #67
zach harkey commented@yixia: You are awesome!
The second I removed the trailing /% from my path the menu was successfully generated. I was going mad.
Needless to say, as cool and useful as taxonomy_menu is, the administrative options and descriptions are confusing at best, and in this particular case following them results in complete failure.
Comment #68
dstolUpdating title & status