Selecting "Hide term links with no nodes attached" option results in a menu page that shows just the menu title. See attachments for (1) test vocabulary used, (2) menu settings, (3) resulting menu.

Comments

rcrowther’s picture

That's clear, but why?

Could you try a menu rebuild, see if the error persists?

Thanks,

Rob

rcrowther’s picture

Issue Installation fails to add tlineage column to menu_links table may help with this. Was this from the clean install?

BayouBill’s picture

Okay, let me try to clarify:

Re #1: Menu rebuild does not fix, and neither does de-selecting the "Show node counts" option while leaving "Hide term links with no nodes attached" selected, and rebuilding after that.

Re #2: I don't think the tlineage issue is related. The problem I reported here occurred after I (in this order) (a) disabled and uninstalled prior TTM version, (b) did a clean install of 7.0-alpha2, (c) manually added the tlineage column to menu_links using phpMyAdmin and the column definition in the .install module, then (d) built a new treemenu as described. The only thing that was carried over during this process was the test vocabulary. Edit: IOW, it occurred after a clean install, not an upgrade.

Hope this clears things up.

rcrowther’s picture

Narrows things down a lot. No need to keep rebuilding, for one thing. Node counting (on which hide empty terms depends) happens within the renderer, so rebuilding against various options will have no further effect.

Have you got caching on? Does a 'cache empty' have any effect?

On a clean install this is unlikely but, for treemenu links, is there content in tlineage?

"...de-selecting the "Show node counts" option while leaving "Hide term links with no nodes attached" selected, and rebuilding after that."
Does the menu reappear if you deselect the "Hide term links with no nodes attached" ?

This functionality is very internal to Treemenu. Instinct says its working too well, axing everything in the tree because it doesn't detect nodes...

BayouBill’s picture

1. "Have you got caching on? Does a 'cache empty' have any effect?"

Caching has never been on, but I cleared cache anyway. No joy - still a blank menu.

2. "is there content in tlineage?"

Please understand that I have reconfigured and rebuilt the menu multiple times, but yes, there are now some rows in the menu_links table in which there is data in the tlineage column. I can provide more detail if you tell me what you're looking for, or easier, I can just email or ftp you a mySQL dump of the database - there's nothing in there that I would object to you seeing.

3. "Does the menu reappear if you deselect the 'Hide term links with no nodes attached'?"

Yes. If I don't select any of the options under "Treemeunu [note ur spelling error] renderer options", I get a very clean menu. If I select only "Show node counts", I get garbage in the tree brances, as reported in http://drupal.org/node/590300. Selecting "Hide term links with no nodes attached" triggers the blank menu, while deselecting it triggers a populated menu. That seems to be the only variable.

rcrowther’s picture

Hello Bill,
Cheers for the reply, and thanks for the suggestion of a dump, but I can see the contents are correct from the error message you posted earlier.

If the menu reappears, that narrows me down to some functions in the core of the renderer. I'll look over the code today, see if I can spot why that HTML is not being processed (I hope this is not an issue external to TTM) and, this issue, why "Hide term links with no nodes attached" is deleting your whole menu . Rob.

rcrowther’s picture

Hullo Bill,

This and the other issue raised may well have links. In the 'garbage' issue, the node counts display (0), as well as the HTML. This 'Hide term links with no nodes attached" depends on the same information. So if TTM finds no nodes, this part of the functionality will axe the entire menu.

I'd like to move discussion to the other issue for now. We cann't make much progress here without solving that.

BayouBill’s picture

Alpha4 seems to have solved this issue. See attached screen shots.

rcrowther’s picture

Status: Active » Fixed

ok, marking fixed.

Status: Fixed » Closed (fixed)

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