Whenever I turn on the menu.module, my navigation menu all of a sudden produces duplicate entries for most nodes, especially ones that drupal creates rather than the items I have manually created, such as "recent posts" or any of the adminstrator sections.

See the attached screenshot to get an idea of what it looks like.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrishathaway’s picture

Priority: Normal » Critical
chrishathaway’s picture

Priority: Critical » Normal
greggles’s picture

Is this an accurate restatement of the steps to repeat this problem?

Steps to repeat
1. Install Drupal
2. ?
3. Enable menu.module
4. ?

Expected results:
Menus appear as they did prior to Drupal

Actual Results:
Some of the menus (recent posts, administer, logs, log out) are duplicated.

There must be something else in there for step 2 or 4 that creates this duplication. Can you provide more input on how to repeat this problem? Many people use menu module without getting duplicate entries.

Thanks.

greggles’s picture

And is this bug still present in 4.6.5 and with updated versions of any modules you are using?

Richard Archer’s picture

Status: Active » Needs review
FileSize
812 bytes

This is almost certainly the same problem that was recently fixed in HEAD by http://drupal.org/node/9477

Here's the same patch against 4.6.3.

Chris, could you please test this and if it resolves your problem mark this issue "ready to be committed".

greggles’s picture

Well, I was finally bitten by this bug. It seemed to show up in my use of pathauto.

I tried applying this patch and it did not remove my problem (though it may have prevented it - I wasn't patient enough to get a good list of steps to repeat the problem).

So, I currently have a set of links (specifically the "forums" link) which is repeated 4 times.

casperl’s picture

Well, different version, could be the same bug, now in 4.6.6

See this (open) thread:
http://drupal.org/node/38812

greggles’s picture

Version: 4.6.3 » 4.6.6
Status: Needs review » Needs work

I've seen this bug a few more times - always shortly after installing/tweaking pathauto. I still don't have a concrete set of steps to repeat, but I can confirm it's in 4.6.6 so I'm moving the version number.

greggles’s picture

I got a private message from casperl advising me that he could give access to a site where this bug happens (thanks casperl). The problem is not finding a site where it happens - I've got a couple of those :( The problem is knowing exactly which steps to take to get the problem to show up.

I think there is a possibility that this is related to menu and pathauto or menu and path module interacting poorly.

Can anyone else confirm if that mix seems to cause their problems?

casperl’s picture

I have upgraded the site (with the menu problem) to 4.7 rc/3
Now there are 579 new menu items (and increasing) in my menu under navigation for:

Acidfree albums (disabled)			enable
Acidfree albums (disabled)			enable

It looks as though this problem could be existing for 4.7 as well.
Casper

hypersloth’s picture

Unable to find any help on this after upgrading to 4.7, I finally emptied my menu table, and then rebuilt it. No fun, but it seems to have fixed it.
I assumed it had to do with the primary links being automatically moved from the theme-admin.

greggles’s picture

Marked http://drupal.org/node/62595 as a duplicate of this bug.

magico’s picture

Version: 4.6.6 » 4.6.9
ac4lt’s picture

I'm seeing a similar, perhaps the same thing happen. When I was using drupal 4.6.x there wasn't a problem, but at some point after moving to 4.7 (now at 4.7.4), menu items in the navigation menu starting spontaneously duplicating. I don't know when it happens, but even if I go into the db and clean out the duplicates, they eventually reappear.

Unlike the original poster, I'm not using pathauto.

milksamsa’s picture

I have the same problem. Whenever I activate the menu.module i get duplicate entries in the administration menu.
I'm using 4.7.3

greggles’s picture

@ac4lt and @milksamsa @chrishathaway - it's not clear how to reproduce this bug. While turning menu module on/off will eliminate the problem, it's unlikely that menu module is the source of the problem (more likely it's in contrib or some combination of contrib). Without clear steps to reproduce we are wasting time.

It would be helpful if the people who have this problem can post the list of modules that are in use on their sites, which versions of Drupal and the modules, any modifications they've made to the code, and if they are using a custom theme or not.

Thanks.

magico’s picture

Version: 4.6.9 » 4.6.x-dev
Status: Needs work » Fixed

Could not reproduce with most recent branch version

greggles’s picture

Status: Fixed » Needs work

@magico - this is a hard to reproduce bug but it happens. The thread is good to keep around in case we can figure out the exact set of circumstances that cause it.

If this issue is still around when we drop support for 4.6 and no solutions and no reports of it happening under 4.7/5 then yeah, we can close it.

bcn’s picture

I am experience this same issue in Drupal 5. I think it has to do with some database imports i was doing, because i was running v5 rc2 without this issue, but after recreating the database in importing some records, i noticed that there were many duplicate menu items.

knseibert’s picture

Same here after Upgrade to Drupal 5.0.

knseibert’s picture

Disregard, had duplicate versions in the menu database table. Works fine after a db cleanup.

Pasqualle’s picture

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

This version is not supported. Reopen or create a new issue if the problem exists in any recent version (version equal or above Drupal 5)