Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | menu_dupes.patch | 812 bytes | Richard Archer |
duplicate navigation entries.PNG | 82.51 KB | chrishathaway |
Comments
Comment #1
chrishathaway CreditAttribution: chrishathaway commentedComment #2
chrishathaway CreditAttribution: chrishathaway commentedComment #3
gregglesIs 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.
Comment #4
gregglesAnd is this bug still present in 4.6.5 and with updated versions of any modules you are using?
Comment #5
Richard Archer CreditAttribution: Richard Archer commentedThis 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".
Comment #6
gregglesWell, 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.
Comment #7
casperl CreditAttribution: casperl commentedWell, different version, could be the same bug, now in 4.6.6
See this (open) thread:
http://drupal.org/node/38812
Comment #8
gregglesI'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.
Comment #9
gregglesI 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?
Comment #10
casperl CreditAttribution: casperl commentedI 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:
It looks as though this problem could be existing for 4.7 as well.
Casper
Comment #11
hypersloth CreditAttribution: hypersloth commentedUnable 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.
Comment #12
gregglesMarked http://drupal.org/node/62595 as a duplicate of this bug.
Comment #13
magico CreditAttribution: magico commentedComment #14
ac4lt CreditAttribution: ac4lt commentedI'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.
Comment #15
milksamsa CreditAttribution: milksamsa commentedI have the same problem. Whenever I activate the menu.module i get duplicate entries in the administration menu.
I'm using 4.7.3
Comment #16
greggles@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.
Comment #17
magico CreditAttribution: magico commentedCould not reproduce with most recent branch version
Comment #18
greggles@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.
Comment #19
bcn CreditAttribution: bcn commentedI 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.
Comment #20
knseibert CreditAttribution: knseibert commentedSame here after Upgrade to Drupal 5.0.
Comment #21
knseibert CreditAttribution: knseibert commentedDisregard, had duplicate versions in the menu database table. Works fine after a db cleanup.
Comment #22
PasqualleThis version is not supported. Reopen or create a new issue if the problem exists in any recent version (version equal or above Drupal 5)