When menu module is turned on, the navigation menu gets duplicate entries.

chrishathaway - October 20, 2005 - 06:50
Project:Drupal
Version:4.6.x-dev
Component:menu system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

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.

AttachmentSize
duplicate navigation entries.PNG82.51 KB

#1

chrishathaway - November 4, 2005 - 18:58
Priority:normal» critical

#2

chrishathaway - November 4, 2005 - 19:03
Priority:critical» normal

#3

greggles - January 17, 2006 - 17:50

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.

#4

greggles - January 17, 2006 - 17:50

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

#5

Richard Archer - January 19, 2006 - 10:33
Status:active» patch (code needs review)

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".

AttachmentSize
menu_dupes.patch812 bytes

#6

greggles - March 3, 2006 - 00:17

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.

#7

casperl - March 24, 2006 - 16:03

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

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

#8

greggles - March 24, 2006 - 17:50
Version:4.6.3» 4.6.6
Status:patch (code needs review)» patch (code 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.

#9

greggles - March 25, 2006 - 16:34

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?

#10

casperl - April 26, 2006 - 13:41

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

#11

hypersloth - May 8, 2006 - 17:41

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.

#12

greggles - May 9, 2006 - 22:06

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

#13

magico - August 21, 2006 - 17:41
Version:4.6.6» 4.6.9

#14

ac4lt - December 11, 2006 - 18:37

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.

#15

milksamsa - December 12, 2006 - 14:20

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

#16

greggles - December 12, 2006 - 16:11

@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.

#17

magico - January 10, 2007 - 12:13
Version:4.6.9» 4.6.x-dev
Status:patch (code needs work)» fixed

Could not reproduce with most recent branch version

#18

greggles - January 10, 2007 - 14:21
Status:fixed» patch (code 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.

#19

noahb - January 15, 2007 - 21:59

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.

#20

knseibert - January 20, 2007 - 13:29

Same here after Upgrade to Drupal 5.0.

#21

knseibert - January 20, 2007 - 13:53

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

#22

Pasqualle - September 15, 2008 - 22:09
Status:patch (code needs work)» 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)

 
 

Drupal is a registered trademark of Dries Buytaert.