Hi,

I've added an "about this website" section to my menu; it points to the node "willkommen" (= "welcome") which afaik is nowehere else linked in the menu system. Below the menu entry "About" are several other items that don't need to be displayed permanently, so I unchecked "Always open" at admin/build/menu. However, when clicking on "About", the submenus are not being displayed - the menu item does not expand on selection as it is supposed to do.

The "About" menu resides in a custom menu called "Website"; it is displayed in a block relabeled to "Navigation" that was imho provided by the menu module. I relabeled the menus because Drupal's "Navigation" menu does offer functions, not navigational elements; however, I hope that Drupal doesn't get confused by this (the relabeling should only affect the block's name, right?).

I have four menus:

* Website (containing "About" menu)
* Navigation (Drupal's default menu, can't be relabeled)
* Primary Links
* Secondary Links

The "about" menu is configured as follows:

* Title: About
* Description: (...)
* path: willkommen
* Always open: no
* Menu: Website
* Weight: 10

I'm not sure if this is reproducable; on my other Drupal sites (same Drupal version, same server, different codebase, similar configuration), the menu item *does* expand on selection, so this issue seems to be specific to this one installation.

One notice that might help: if I edit the node "willkommen" (node/9858/edit), the menu setting inside the edit page *do* *not* isplay where the "About" node is supposed to be located in the menu. I does show only the the default Drupal "Navigation" menu and it's subitems, neither my custom-made "Website" menu, nor Primary Links or Secondary Links. In my other Drupal sites, where the menus are configured similarily, the menu system behaves differently: In edit view, *all* available top-level menus are displayed.

For experiments sake I renamed the "About" menu, created a new "About", this time pointing to the NID (node/9858, not to the alias "willkommen"), and moved the items into this menu; the behaviour remained the same: the menu item does not expand on selection.

Any ideas or suggestions?

Thank you! -asb

PS: There is a similar issue at http://drupal.org/node/7664 which addresses the "Navigation" module for Drupal 4.4 (?) which suggests to open a new issue for Drupal core; I hope that's correct.

Comments

shane birley’s picture

Priority: Normal » Critical

I have been experiencing this issue from time to time and I am not sure as to the cause. Most recently, I built a basic menu today and it does not expand any child menu items. All of the menu items are marked with "node/#" - so, previous issues with path aliases should not be a factor.

This is definitely a bug in the menu system that has plagued the menus in Drupal 4/5 for some time. Let me know what kind of testing I may be able to do to help with this problem.

My current setup where I am experiencing this issue is running Drupal 5.7 and I will test on 5.8 when I perform the upgrade later today. This must be a clash with a contrib module but I can't think of which one it may be.

I reference: http://drupal.org/node/7664

bamakojeff’s picture

I'm not sure if this relates to your problem, but I've seen that if you create a node and create a menu item with a parent OTHER than the Navigation menu (like in the Primary or Secondary links,) and then go back and create a separate menu item pointing to that node in the Navigation menu, that Navigation menu item will never expand regardless of what other items you make its children.

The fix which works for me is to delete the Navigation menu item, edit the node and make it a child of the Navigation menu item (or one of its children), and then create a new stand-alone menu item in the other menu. Then clicking on either menu item, in the Navigation menu or in the other menu, makes the Navigation menu item expand.

ganymede-1’s picture

Hello, I'm having the same problem with Drupal 6.4, would be very happy I could know how to fix this.

In particular:
- the second level is expanded correctly
- the third level does not expand if I click on the real menu, surprisingly expand if I click the same item in the link list of the menu configuration page
- no level expand if I click the item in the tags list at the bottom of a classified page

the menu follows the taxonomy, but I it created manually

the same tree works well in the auto generated "taxonomy menu"

I'm available to explain the problem better (my English is not very good), if you like

could you tell me if it is considered better to post the issue as new, about 6.4 version?

thank you very much

Ganymede

-

My installation (local, at the moment): Drupal 6.4 with the following modules:
- Advanced help 6.x-1.0
- CAPTCHA 6.x-1.0-rc2
- Content Construction Kit (CCK) 6.x-2.0-rc7
- FCKeditor - WYSIWYG HTML editor 6.x-1.3-rc1
- Global Redirect 6.x-1.0
- IMCE 6.x-1.1
- Pathauto 6.x-1.1
- Plugin Manager 6.x-1.2
- Taxonomy Access Control Lite 6.x-1.2
- Taxonomy Menu 6.x-1.01
- Token 6.x-1.11
- Views 6.x-2.0-rc3

danoguru’s picture

Version: 5.7 » 6.2

I am having the same problem. I have an image gallery with "language neutral" Image nodes and I have created menu items in english and slovak language linking to the same galleries.

example: (title -> Path - Lanugage)
Photogalleries -> image - English
- Gallery 1 -> image/tid/1 - English
Fotogalerie -> image - Slovak
- Galeria 1 -> image/tid/1 - Slovak

So the only difference in these menu items is the Menu link title and language selection. It works fine in english (default language) but it does not expand in slovak.

When I create a duplicate menu item with the same children (that point to the same location), then Drupal Menu Module will expand only one of them. I dont know how to cheat this problem! Obviously there is a need for a patch.

GregL83’s picture

I have been developing a project in drupal and now have this problem.

I have a menu that has parent items linked to node aliases. The menu does not function properly. This is a major problem. None of the parent items expand correctly.

This could make or break whether I use drupal on future projects.

GregL83’s picture

I found my solution.

Instead of creating a parent menu item that links to an already existent associated page (using alias)...

When creating the page that is a parent add the menu item using the Menu settings box. This will add the parent menu item and create the page. You can also use your URL path settings to create the alias.

Hopefully this workaround doesn't fail me. Time will tell.

____________________________________________________________________________

Dont ask me why. But I started using the method above for awhile and BAM! It started getting screwed up again. Great!

GregL83’s picture

Does anybody have a workaround for this?

Websites need menus. SEO doesn't work with URLs like node/1243 . This must have been covered before reaching Drupal 6....

ahoria’s picture

Version: 6.2 » 6.8

+1

major drupal flaw

gjmokcb’s picture

This is my unsatisfactory experience.

• If you create the top (expandable) item as a node and create a menu setting in the node, then it expands properly.

• If you create the top item within the menu module and give the item an absolute url, then it expands properly.

• If you create the top item within the menu module and give the item a meaningless url, such as "a", then it expands properly.

• But if you create the top item within the menu module and give it a drupal url, then it does not expand properly.

The problem does seem to be tied to aliasing.

gjmokcb’s picture

Bullet point two below (absolute url) just stopped working. Bullet point one (new node with menu item) still works.

ahoria’s picture

so how do we fix this
where to look for help?

LRHoek-1’s picture

I had the same problem as well, with duplicate items. What's important to understand is that expansion happens at the menu point that is set in the menu settings of the node. I had the following (sub-)structure:

QUU
- random
FOO
- FOO (alias)
- - x
- - y
- BLAH
- - z
- - q
- BAR
- - o
- - p
ZUU
-somestuff

I made the FOO node and gave it the menu root as the menu location, then I made a FOO alias which I put under FOO. Then I put x and y under the FOO alias. This is why x and y wouldn't expand.

To solve this, I created a FOO alias in the root and then put FOO itself under the FOO alias in the tree. Works well now.

Hope to help!

stevenpatz’s picture

Websites need menus. SEO doesn't work with URLs like node/1243

@GregL83
if that were the case then Drupal pages wouldn't be in any of the search engines.

honeycomb’s picture

Version: 6.8 » 6.9

I found a solution when my top menu item did not expand child links on selection / click.

My issue came up with I manually created a new menu item (in navigation) that used a views path when I could have automatically created the menu item in my view settings. When I created the menu item through my view settings screen the issue went away.

1. Remove the menu item.
2. Go back to views, find the view you created and click edit.
3. Select Page from your display settings,
4. Look for Page Settings and add a menu using the menu option. I went with a normal menu entry.

Hope that helps!

markj303’s picture

Anyone have any other fixes for this, my top level menu item which I create in the menu module links to a gallery, so none of the above workarounds work for me.

Thanks for any help.

paulkolbovich’s picture

Version: 6.9 » 6.10
Issue tags: +node, +term

Menu Example

  • Term1
    • Sub1Term1
      • Sub1Sub1Term1
        • Node 1
        • Node 2
        • Node 3
    • Sub2Term1
      • Sub1Sub2Term1
        • Node 4
        • Node 5
  • Term2
    • Sub1Term2
      • Sub1Sub1Term2
        • Node 121
        • Node 123
        • Node 125

When I select terms or sub-terms -- they aren't expanding, but when I selected the node -- all work fine.

michiellucas’s picture

Hello, i have the same problem. I have this problem when i build a multi language site. In the default languages everything works but in the french or dutch version the menu item will not expand.

Does anyone has a fix ?

Thx

lastnico’s picture

How to reproduce :

From a clean Drupal Install :
- Enable Forum Module
- Create a Forum, that will have the 'forum/1' identifier
- Create a 'Forums' menu
- Create a Forum submenu of the 'Forums', with the 'forum/1' identifier.

- Open the forum/1 URL : The 'Forums' menu is collapsed.

This problem is reproducible on each taxonomy-based menu.

This is for example the case on Forum Software Reviews (Drupal 6.10), if you are for example on the page:

http://www.forum-software.org/phpbb3/review

And then click on Screenshots (image gallery -> taxonomy) or Community Help (forum -> taxonomy), then the main menu is collapsed.

Hope it helps.

lastnico’s picture

Do you have some news about this problem?

aryanto’s picture

Version: 6.10 » 6.12

I think I hit this problem as well on my site with Drupal 6.12.

I had only 3 level depth on my menu tree before. And today I started to add one menu down. It does not matter whether I set the 4th level to be expanded or not, they don't get expanded when I click their menu parent. But when I click on the content of that 4th level, the menu tree get expanded.

I think it will be more clear if you visited my site.The 3rd level is http://thetwins.info/photo-galleries/special-events/birthday-celebration.... And one of the 4th level is http://thetwins.info/photo-galleries/special-events/birthday-celebration....

aryanto’s picture

This issue has been around for more than a year now with the status of "active" and "Unassigned". I am wondering why no Drupal maintainers look at this. Or at least give us hints on where to look at.

erikjohansson’s picture

I think this must be the problem that I am having right now too. It started happening after I moved a site to the client's webhost which runs on PHP 4.3, whereas my development server is on PHP 5.2.

Both the admin navigation and the menu I am outputting using menu_tree_output is having the problem.

aryanto’s picture

In my case, i.e. #20 above, the problem was suddenly gone for what ever reasons. And I can not reproduce the problem.

What I did was playing around with Switch Theme and Cache Router modules, and also the configuration on my Varnish HTTP accelerator. The problem just disappeared at some point. Maybe it was gone after I reboot the whole server. Maybe because I clear the whole cache on Drupal. I am not really sure.

tobiass’s picture

Title: Menu item does not expand on selection » Menu item does not expand on selection with Block cache enabled

I had the same problem, but only on one Drupal installation. Maybe it's host related?

As a workaround you can simply disable the Block cache on admin/settings/performance.

asb’s picture

Title: Menu item does not expand on selection with Block cache enabled » Menu item does not expand on selection

@tobiass: Please don't change the issue's title, open a separate issue for different issues.

This issue was originally filed for Drupal 5.7 where no block cache exists; it's so far neither resolved for D5 nor for D6.

Greetings, -asb

nzcodarnoc’s picture

I have a similar problem.

-- Co-curricular (menu item)
---- Music (page)
------ Music Staff (page)
------ Music Groups (page)
------ Instrumental Lessons (page)

Where "Music staff", "Music Groups" and "Instrumental Lessons" are pages and all have "Music" as their parent menu item
Where "Music" is a page and has "Co-curricular" as its parent menu item
Where "Co-curricular" is a menu item in the "Navigation" menu with it's path set to "Music"

The problem is that when Co-curricular or Music are selected the children of Music do not expand.

If I set the menu for "Music" to always expand, the children do show, but all the time, and that's not the behaviour we want.

Is there a patch for this?

petrelharp’s picture

Folks here might want to be aware of #292584: Menu items won't expand with optional views arguments in path -- if a menu links is to a view with optional arguments, the menu items below it won't expand. This might cover some of these issues.

The problem there is that $in_active_trail is not set properly by the menu system.

asb’s picture

Version: 6.12 » 5.19
Status: Active » Closed (won't fix)

Hi,

after more than one year of having this issue for Drupal 5.x open without any patch or workaround and being still "unassigned" to any maintainer, I'm closing it as "won't fix"; as it appears, the menu system of Drupal 5 is broken and won't be fixed anymore (this issue was originally posted on April 26, 2008 or Drupal 5.7 and still exists in Drupal 5.19). A slight chance exists that, if users of Drupal 5.x finally will be able to migrate to Drupal 6.x, the issue might be fixed in D6.

Please open a new issue for Drupal 6, if the problem exists there also; the menu system has changed significantly between D5 and D6, so it makes no sense to mix these issues crossing releases.

f I understand the mechanics of Drupal releases correctly, Drupal 5 will soon reach the "end of life cycle", and even bugs in Drupal 6 won't be fixed directly; they firstly have to be fixed in Drupal 7 and then backported to Drupal 6. This might happen for D6, but I don't see a chance anymore to get this fixed in D5. Please correct me if I'm wrong.

Greetings, -asb

nzcodarnoc’s picture

I've opened this as a new issue for Drupal 6.x here #525688: Menu item does not expand on selection

asb’s picture

Thank you!

uomeds’s picture

Status: Closed (won't fix) » Needs review

Thanks Honeycomb! Your fix in #14 worked for a Panel Page as parent.

stevenpatz’s picture

Status: Needs review » Closed (won't fix)
cliffjanderson’s picture

Version: 5.19 » 6.19

#6 - This solution worked for me. Thanks.

Greg Varga’s picture

subscribing.

This is still a problem in "7.x-3.0-alpha3"

Steps to replicate:
1) Custom menu created
2) New node added, new menu item added (using the node edit page)
3) Another node added, new sub menu added to previous menu. (using the node edit page)
4) New panel page created
5) Menu added into pane (btw, menu not showing in panels menu list until manually saved on menu edit page)
6) - When viewing the panel page, menu is collapsed
- Clicking on top level menu item does not expand child items.
(Child items are not generated, they are not in HTML)

Cheers, Gergely

summit’s picture

Version: 6.19 » 7.x-dev
Status: Closed (won't fix) » Active

Set to active in 7 as explained in #34. Greetings, Martijn

xjm’s picture

Priority: Critical » Normal
Status: Active » Closed (cannot reproduce)

The recent comments seem to indicate a Panels problem (including specifying a Panels version number), and I doubt that this is the same bug as the original. Plus, the last comment is from April. Please open a new issue if you can reproduce this issue with a recent version of Drupal, or look for an existing open one. If it is a Panels bug, then please open it in that queue.

magpie5212’s picture

Version: 7.10 » 7.x-dev

My site at http://southamonline.org.uk seems to have this problem. The menu structure is:

SouthamOnline	
  News Archive	
Southam Diary	
Southam Pictures	
  Submit a Picture	
Southam Directory	
Off-site News	
Links	
Contact Us	
About Us

but selecting any of the menu items which have children does not show the sub-item.

magpie5212’s picture

Version: 7.x-dev » 7.10
Status: Closed (cannot reproduce) » Active
xjm’s picture

Status: Active » Closed (duplicate)

Hi @magpie5212 -- From your description, it sounds like that issue might be caused by this known bug:
#942782: Custom menus never receive an active trail

Please try the patch in that issue. Thanks!

P3t3r’s picture

Is anyone else experiencing this with a vanilla drupal and the core forums in 7.14? The forums link has a triangle as if it could be expanded (and it should, since forums are present) but nothing actually expands, despite the expandable icon next to it.

eiland’s picture

I Installed Cache Exclude and in the menu block I set cache settings to do not cache and the menu expands as it should.

But then again, I'm using d6.25.