I just tried to upgrade a bi-lingual site from 4.7 to 5.0 and all the core administration menu items now appear twice. They point to the same place and have the same parameters. E.g. modules, modules or blocks , blocks. Items such as Translation and Views as well as custom content types only appear once. Most of the other features work but switching a language sometimes returns Fatal error: Call to undefined function: locale_supported_languages() in /sites/all/modules/i18n/i18n.module on line 339 - I'm not sure these two are related. BTW: Disabling the i18n modules did not fix the problem.

Comments

davemybes’s picture

Same problem here. I didn't try switching languages, so I can't comment on the error message, but it definitely messed up the navigation menu system.

Jose Reyero’s picture

I think this may be some issue with the upgrade process and new language management in i18n, I'll look into it.

In the meanwhile, try visiting the Locale language administration tab and just save it again.

techczech’s picture

Sorry, I'm not clear what you mean by 'save it again'. I tried disabling and enabling all the languages but nothing helped. I even reimported the language definitions in locale but that did nothing (as I figured it wouldn't).

Also, at least in my case, the problem isn't with menu items I've added but the admin menu items. They still appear twice in the same language.

uuno’s picture

I am same problem

Jose Reyero’s picture

I meant just going to the tab and click 'Save' so the languages variable is properly set up.

Still haven't seen this one but I've fixed some other issues, let me know if we've made any progress.

Also this one may be related: http://drupal.org/node/111349

Marc Bijl’s picture

Hmm, just wanted to let know I have experienced the same problem.

Started with a db import of a 4.7 backup and a clean installation of drupal 5.1. Then performed upgrade.php, with no errors. Installed i18n and performed upgrade.php again, with no errors. From then (forgive me if I'm wrong) I had doubled menu items. Haven't investigated good enough yet to say where things might go wrong...

Marc Bijl’s picture

That's what I mean...

Tried to reproduce the whole thing twice and both times everything seems to be fine (regarding the number of menu items) :\

kadboo’s picture

Title: doubling of menu items in upgrade to 5.0 » similar problem and details

I have upgraded from 4.7 to 5 (and 5.1 now) I too have localization module and one language in addition to English. Though I don't see menu items doubled, I see the usernames in "Who's online" twice, sometimes.

Recently I tried to add some custom javascript inline code to form.inc (with drupal_add_js inline). I tried this on two installations incidentally one had localization module and other did not. It worked as expected on the installation-without-localization-module. In the installation-with-localization-module I saw my custom inline code was added twice. (I also added some js files with drupal_add_js but they did not appear twice only inline code appeared twice)

Hope this information helps whoever is trying to fix this issue. I'll be glad to provide any more information about my setup.

Marc Bijl’s picture

Title: similar problem and details » doubling of menu items in upgrade to 5.0 (incl details)

Changed title to keep things clear ;)

Jose Reyero’s picture

Priority: Normal » Critical

Ok, let's fix this issue. I still need more information:
- What's in the menu database table for this items before and after the upgrade if possible (or before and after getting the duplicate menu)
- To make sure this is not cache related, try 'DELETE FROM cache_menu'
- Anyone found this issue with a clean install? (So far, I haven't been able to reproduce it in a clean install)

Marc Bijl’s picture

Hi Jose,

Here are some experiments that hopefully can provide some information. It's not about duplication during the upgrade, but about duplication while editing and saving nodes.

Let's start with a description of the starting point.

localization
- English, code "en" (drupals standard language), disabled
- English, code "en-US" (custom language), enabled, default
- Dutch, code "nl" (custom language), enabled

menu table (relevant records)

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115         
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115         
97    95    node/2      idee                                1           118         nl




Now I'll do four different experiments.

1. Interface language en-US, editing and submitting the english node idea
Message:
- The Page has been updated.

Nothing happened in the menu table.

2. Interface language nl, editing and submitting the english node idea
Message:
- De Page is bijgewerkt. (= The Page has been updated.)

Nothing happened in the menu table.

3. Interface language en-US, editing and submitting the dutch node idee (= idea)
Messages:
- The menu item idee has been added.
- The Page has been updated.

The menu table has been updated, there's a new duplicate record:

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115         
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115         
97    95    node/2      idee                                1           118         nl
157   95    node/2      idee                                1           118         

4. Interface language nl, editing and submitting the dutch node idee (= idea)
Messages:
- Het menuonderdeel idee is bijgewerkt. (= The menu item has been updated.)
- De Page is bijgewerkt. (= The Page has been updated)

The menu table has been updated regarding the message, however no real changes have been made:

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115         
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115         
97    95    node/2      idee                                1           118         nl
157   95    node/2      idee                                1           118         




Hope this makes some sense...

Cheers,
Marc

Marc Bijl’s picture

Hi Jose,

I've done the same experiments once again, but now with nl (dutch) as default language. There seems to be no difference, the results are exactly the same:

Let's start with a description of the starting point.

localization
- English, code "en" (drupals standard language), disabled
- English, code "en-US" (custom language), enabled
- Dutch, code "nl" (custom language), enabled, default

menu table (relevant records)

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115        
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115        
97    95    node/2      idee                                1           118         nl




Now I'll do four different experiments.

1. Interface language en-US, editing and submitting the english node idea
Message:
- The Page has been updated.

Nothing happened in the menu table.

2. Interface language nl, editing and submitting the english node idea
Message:
- De Page is bijgewerkt. (= The Page has been updated.)

Nothing happened in the menu table.

3. Interface language en-US, editing and submitting the dutch node idee (= idea)
Messages:
- The menu item idee has been added.
- The Page has been updated.

The menu table has been updated, there's a new duplicate record:

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115        
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115        
97    95    node/2      idee                                1           118         nl
157   95    node/2      idee                                1           118        

4. Interface language nl, editing and submitting the dutch node idee (= idea)
Messages:
- Het menuonderdeel idee is bijgewerkt. (= The menu item has been updated.)
- De Page is bijgewerkt. (= The Page has been updated)

The menu table has been updated regarding the message, however no real changes have been made:

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115        
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115        
97    95    node/2      idee                                1           118         nl
157   95    node/2      idee                                1           118        




Cheers,
Marc

Marc Bijl’s picture

Same kind of behaviour with editing menu items. Again some experiments.

Let's start with a description of the starting point.

localization
- English, code "en" (drupals standard language), disabled
- English, code "en-US" (custom language), enabled, default
- Dutch, code "nl" (custom language), enabled

menu table (relevant records)

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115       
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115       
97    95    node/2      idee                                1           118         nl




1. Interface language en-US, editing and submitting the english menu item idea (idea -> ideas)
Message:
- The menu item ideas has been updated.

Result in the menu table, an updated row:

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115       
84    60    idea        ideas                               1           118         en-US
95    0                 Primaire Links                      0           115       
97    95    node/2      idee                                1           118         nl

2. Interface language nl, editing and submitting the english menu item ideas (ideas -> little ideas)
Message:
- Het menuonderdeel little ideas is toegevoegd. (= The menu item little ideas has been added)

Result in the menu table, an extra row (instead of an updated one):

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115       
84    60    idea        ideas                               1           118         en-US
95    0                 Primaire Links                      0           115       
97    95    node/2      idee                                1           118         nl
157   60    idea        little ideas                        1           118         en-US

3. Interface language en-US, editing and submitting the dutch menu item idee (idee -> ideeën)
Message:
- The menu item ideeën has been added.

Result in the menu table, an extra row (instead of an updated one):

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115       
84    60    idea        ideas                               1           118         en-US
95    0                 Primaire Links                      0           115       
97    95    node/2      idee                                1           118         nl
157   60    idea        little ideas                        1           118         en-US
158   95    node/2      ideeën                             1           118         nl

4. Interface language nl, editing and submitting the (just added) dutch menu item ideeën (ideeën -> kleine ideeën)
Message:
- Het menuonderdeel kleine ideeën is bijgewerkt. (= The menu item kleine ideeën has been updated)

Result in the menu table, an updated row:

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115       
84    60    idea        ideas                               1           118         en-US
95    0                 Primaire Links                      0           115       
97    95    node/2      idee                                1           118         nl
157   60    idea        little ideas                        1           118         en-US
158   95    node/2      kleine ideeën                      1           118         nl




In this experiment (editing menu items), it seems that when interface language = menu item language, the menu items get updated. However, when interface language != menu item language, the menu item will be duplicated.

Cheers,
Marc

Marc Bijl’s picture

Just for info.

There's also some kind of duplication of menu items when editing and submitting the type field of a content type (node type). However, I think this is a drupal core problem and not an i18n problem. Therefore I've posted an issue at the drupal core list:
- http://drupal.org/node/116765

Cheers,
Marc

Jose Reyero’s picture

Thanks for the info. I think I've found the problem and fixed it for i18n-5.x-dev branch. Please try
Run update.php (If it works I'll backport the patch for i18n-5.x-1.0, the stable release)

About the other issue, content types, I bet if you refresh the cache -either reloading and saving modules page or editing any menu item, it will be gone...

Marc Bijl’s picture

Hi Jose, thanks for the effort!

Where do I download the i18n-5.x-dev branch? The most recent files at http://drupal.org/project/i18n are from 13th of February. I dowloaded these, extracted them, and found that all files seem to be from 13th of February (or before) indeed.

Do I have to wait 24 hours before the page has been updated?

Jose Reyero’s picture

Marc Bijl’s picture

Getting close...

Hi Jose, things are getting better. I've done the test from http://drupal.org/node/111047#comment-200334 again, and at least there no duplicate menu items anymore. However, I think it still needs some polishing. Here we go:




localization
- English, code "en" (drupals standard language), disabled
- English, code "en-US" (custom language), enabled, default
- Dutch, code "nl" (custom language), enabled

menu table (relevant records)

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115        
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115        
97    95    node/2      idee                                1           118         nl



1. Interface language en-US, editing and submitting the english node idea
Message:
- The Page has been updated.

Nothing happened in the menu table.

This seems to be fine to me

2. Interface language nl, editing and submitting the english node idea
Message:
- De Page is bijgewerkt. (= The Page has been updated.)

Nothing happened in the menu table.

This seems to be fine to me

3. Interface language en-US, editing and submitting the dutch node idee (= idea)
Messages:
- The menu item idee has been added.
- The Page has been updated.

The menu table has been updated: a record has been added (mid 157) and a record has been deleted (97). Or may be, I don't know, a record has been changed (mid 97 -> 157) including the sequence number in sequences table:

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115        
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115        
157   95    node/2      idee                                1           118         nl

Editing the node again gives (mind mid 158):

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115        
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115        
158   95    node/2      idee                                1           118         nl

And another time (mind mid 159):

mid   pid   path        title             description       weight      type        language
60    0                 Primary links                       0           115        
84    60    idea        idea                                1           118         en-US
95    0                 Primaire Links                      0           115        
159   95    node/2      idee                                1           118         nl

et cetera

This seems to be pretty fine to me, or at least better than before, as there are no duplicate nodes anymore. However, I don't see why an extra menu item needs to be added, while another needs to be deleted. Why do menu items need to be changed anyway (as this doesn't happen in case 1 and 2)? This way, the mid can run up to hundreds or may be even thousands, just by editing nodes...

4. Interface language nl, editing and submitting the dutch node idee (= idea)
Messages:
- Het menuonderdeel idee is bijgewerkt. (= The menu item has been updated.)
- De Page is bijgewerkt. (= The Page has been updated)

The menu table has been updated regarding the message, however no real changes have been made (records the same).

This seems to be fine to me, though I'm wondering here too why the menu item need to be updated (as this doesn't happen in cases 1 and 2)




Hope this makes some sense :)

Cheers,
Marc

techczech’s picture

Sorry, I tried again (starting the whole upgrade process from scratch) and the problem persists. See http://test.dominiklukes.net/admin. I made the admin section accessible to anonymous.

daviding’s picture

These may be as much a mystery to me as to anyone else!

My system administrator couldn't figure out what to do to remove the doubling, so he manually deleted old menu items from the SQL tables. This had no impact on menu doubling problem.

He asked if I knew how to refresh the cache, and I didn't.

Playing around, I went to the Administer ... Multilingual system ... where there's an "advanced settings" under the tab at the bottom. It was set to "Only current language and no language" -- we have English and Spanish on our site (although there's actually no Spanish content, yet!) -- so I changed the setting to "Only current language". I then changed the setting back ... and behold ... the doubling is gone!

Now, the sysadmin and I are both mystified ... but the problem is gone. If anyone has any more insight ... computer systems aren't supposed to be a mystery, they're supposed to be logical!

techczech’s picture

I tried this on http://test.dominiklukes.net/en/admin/settings/i18n but it seemed to have no effect.

jansky’s picture

I am experiencing the very same problem and, unfortunately, the "solution" of #20 isn't of any help.
My site must be multilingual so I am forced to keep it with drupal 4.7 until this thing isn't solved....

Marc Bijl’s picture

Hmm...

Just by coincidence I've found some cvs files from 2007/02/26:
- http://cvs.drupal.org/viewcvs/drupal/contributions/modules/i18n/?only_wi...

It's about the files:
- i18n.module (http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/i1...)
- i18n.install (http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/i1...)

The latest files I've been using till tonight were from 2007/02/20. So I've downloaded and installed the two files from 2007/02/26, ran update.php(!) and found out i18n doesn't cause any doubling of menu items anymore (when editing nodes). Note: before updating the two files I made sure I had no double menu items at all (= "clean menu table").

So that's the good news from the dutch front here. Thanks Jose!   ;)

There's only one little thing that's still happening. Everytime when editing/saving a dutch node, I get the (green) message that the corresponding menu item has been updated with the node language. This does not happen when editing/saving an english node (and it does not depend on the default language - AFAICS).

Is this by design?

phpdan’s picture

comment 23 solved my menu doubling problems

phpdan’s picture

ahem, sorry, spoke too soon, creating and editing content gives me a new problem:

Fatal error: Call to undefined function: i18n_node_language_list() in /var/www/drupal5/drupal-5.1/sites/all/modules/i18n/translation/translation.module on line 170

Marc Bijl’s picture

First things first: I think it's good to realize the cvs environment is a development environment. From the wikipedia: " CVS keeps track of all work and all changes in a set of files, typically the implementation of a software project, and allows several (potentially widely separated) developers to collaborate. ".

Correct me if I'm wrong, but AFAIK this means that file versions from the cvs environment are not the so-called "stable versions" and therefore bugs are not unlikely (so using these files is "at own risk"). If you want to be sure, you better download the latest the stable release from project pages like this:
- http://drupal.org/project/i18n

Second: after reading the latest follow up, I went to the cvs repository for i18n (tag drupal 5) to find out there are some other files that have a pretty recent date too (also missed these files myself ;). The repository can be found here:
- http://cvs.drupal.org/viewcvs/drupal/contributions/modules/i18n/?only_wi...

For example, the latest translation.module is from 2007/03/06 and can be found here:
- http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/i1...

And may be (didn't check) some other files have been updated lately too. Just checkout yourself and use the latest files if needed...

tormu’s picture

I just upgraded to the latest development version of the i18n, since my menus we're duplicating also, but it doesn't fix it - ran the update.php too.

When I edit a menu item that is language X while having a different language setting than X applied, it always creates a new item.

Menu item 1 = Finnish
Menu item 2 = English
Current language = English
I edit menu item 1, it creates a new one with those details.
When I change the language to Finnish and edit the menu item 1 it edits it allright, but then again updating the menu item 2 which is not the same language as the current settings, it creates a new one.

mathieu’s picture

..subscribing to issue.

Jax’s picture

This seems to be fixed in the dev version. Any chance of releasing a 2 version of i18n or backporting this to 1?

Jose Reyero’s picture

Status: Active » Fixed

Please, try latest drupal-5 version.
I'll release a drupal-5-2..1 version soon.

Anonymous’s picture

Status: Fixed » Closed (fixed)
sovietfunk’s picture

Fixed? I just had this problem with 5.x-2.1. After editing, the link "Create Content" was displayed twice, once as a dhtml menu and once as a standard link. I had to do a quick fix by deleting the db entry. (two entries with path "node/add" and identical fields, except for a very high "mid" on one of them. Deleted the most recent and everything was ok.) Will post under 5.x-2.1 if this persists.

mikehughes’s picture

Version: 5.x-1.x-dev » 5.x-2.1

Just to confirm I am also getting this on latest 5.x-2.1 version, most but not all of my menu items are duplicated. I had to delete duplicate entries from table: menu and visit the menu admin page to refresh things ... sigh.

remi’s picture

Status: Closed (fixed) » Active

I've just upgraded by Drupal installation from 4.7 to 5.2 using the 5.x-2.1 version of the i18n modules and I'm getting the same problem.

izaak’s picture

I attempted an upgrade from 4.7.3 -> 4.7.5 -> 5.0 three times.

The first two times, I was starting with a 4.7.3 database dump obtained from phpmyadmin. The character encoding was totally borked, although I didn't realize this for a while. In both cases most of the menu items were duplicated.

For the third time I started using mysqldump instead. The character encoding was fine and there were no duplicated menu items.

Coincidence? Probably, but perhaps a pattern will emerge. Otherwise I don't know what I did differently the third time.

davemybes’s picture

Just did a 4.7.6 -> 5.2 upgrade, using the latest dev version of i18n. All Navigation menu items are duplicated, Primary links and other menus are not. I used phpMyAdmin to do the SQL dump onto the test site.

vthirteen’s picture

the same here, upgrade from 4.7.7 to 5.2 with all the intermediate steps results in menu duplication when the i18n module is installed and updated.

vthirteen’s picture

on another installation that i just upgraded everything went fine.

a part from possible problems with some database table/field, the only difference between the two installations is that in the first one i had forgot to disable the module before the upgrade. it's the only difference i can make sense of at the moment (apart from different modules installed), so *strictly* following the upgrade/update instructions was for me the best way not to have the menu doubled.

phpdan’s picture

Note that using the reset menus in the devel module has enabled me to work around this problem, but of course all your menus get reset.

daviding’s picture

I ran into this problem again, on an upgrade from v4.7 to v5.1.

At first, I used PhpMyAdmin to delete records from the menu table, and deleted the rows from cache_menu. Then it occurred to me that the menu items appear under Site Building ... Menus ... so I surfed over there. The doubling shows up there. I disabled some menu items, but then saw the "reset" button, that seems to put things right.

It feels to me as if original v4.7 menu structure isn't deleted on the upgrade to v5.1. This procedure at least cleans things up.

In addition, I've noticed that there's the opportunity for doubling on some blocks, that are also remnants of v4.7 . (I've got Recent Comments three times!) Setting the region to "none" at least hides the doubling/tripling.

mailleux’s picture

I have been playing with the same problem, and I found something interesting. I added the language column to the menu table by hand. This causes i18n_update_5 update to fail. And as a by product menus are not duplicated. It appears that the problem happens when you run update.php. I did the following steps (looking into the DB), migrate drupal from 4.7 to 5.2, update.php to get the db up to 5.2, activated the locale module, activated the i18n module. Up to this point no duplicate menus, ran update.php (to run the i18n updates), and this created duplicated modules. I also had the impression that the menus where recreated in this update process. I notices that some menus have both upper an lowercase titles in the DB (e.g. "Administer" [ this is 5.2] vs "administer" [this is 4.7]).

Also reseting the menu does make them work again. Also noticed that after the update.php, there is a log entry with an error:

query: SELECT m.mid, m.* FROM menu m WHERE (m.language ='en' OR m.language ='' OR m.language IS NULL) ORDER BY m.mid ASC in /var/www/drupal-5.2/includes/database.pgsql.inc on line 144.

What bugs me about this query, is that I can't find it in the code, looks like something is building it. Just some observations here.

mailleux’s picture

I think there is a work-around to this problem. I tried it twice with the same base, and it seems to work. Before activating and updating the i18n module, disable the menu module. After the update, you can enable it. On both runs, I had all the modules active and no duplicate menus. I believe there is some interaction between i18n and the menu module.

Junesun’s picture

#42 worked for me. I believe that the issue still needs fixing though, as it should be possible to activate modules in any order without severe repercussions.

Darren Oh’s picture

CVS commit 57287 set the i18n module weight to 10 to fix this issue and then CVS commit 58306 set it to -10 without explanation. Was that a typo?

Jose Reyero’s picture

Status: Active » Fixed

Yeah, about the module weights I dont know what I was thinking about.. :-)

About this issue, AFAIK it should be fixed in the 5.x-2.2 release, please reopen if not.

techczech’s picture

It seems to have fixed it for me. Thanks.

vthirteen’s picture

i guess it is not. my menus have doubled in an upgrade from drupal 5.2, i18n version 5.x-2.2 .

Darren Oh’s picture

Version: 5.x-2.1 » 5.x-2.2
Anonymous’s picture

Status: Fixed » Closed (fixed)

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

Injaki’s picture

Priority: Critical » Normal
Status: Closed (fixed) » Active

After some upgrade tests from drupal 4.7.4 into several 5.x versions experimenting the menu doubling problem, finally the workaround described in comment #42 solved the problem for me with i18n 5.x-2.2 and drupal 5.5 .
Because it seems to be a workaround out there maybe the priority have to be switched to "normal" instead of "critical", althoug I reopen the bug so it can be taken into account for final resolution in future releases.
Thank you very much, Jose, for your great work.

yngens’s picture

tried last version of the module, problem persists.

lisa’s picture

I just want to confirm that this problem still persists.

First attempt to upgrade from 4.7.4 to 5.7 resulted in duplicate menu items appearing.

I tried to upgrade again, followed solution posted at #42, and it worked - Before activating and updating the i18n module, disable the menu module.

I started from scratch with a fresh install of 5.7 and a new database I created from the backup file of my 4.7.4 site. I disabled menu module, enabled contributed modules one-by-one, and ran update.php script as needed (e.g. after enabling image, image gallery, i18n). I enabled menu module after I enabled i18n module, and everything seems to be working fine - no duplicate menu items appeared.

I agree with #43 that the issue still needs fixing though, as it should be possible to activate modules in any order without severe repercussions.

hubris’s picture

Had the same menu doubling problem, upgraded a 4.7 site to 5.6 this week (3-10-08), used current stable versions (not DEV versions) of all modules including i18n.

To repair the issue, I went into Administer > Site Settings > Menus and Disabled one of the doubled menu items. Then clicked the Reset option next to the disabled menu item. After the reset, the duplicate menu item disappeared.

The above process was a real pain, which begs for a more dynamic/dhtml/ajaxian/multiselect menu editor....

-Chris

atzi’s picture

Project: Internationalization » Drupal core
Version: 5.x-2.2 » 5.7
Component: Code » menu system

I have had the same problem updating to 5.7 from 5.6. Read in some of the above like #42 about doing the upgrade after disabling all modules then enable all but menu then enable it. So I tried but still I get double menu items, double administration menu items, sub menu etc. NOT using i18n.

Chris in #53 idea of Disabled one of the doubled menu items. Then clicked the Reset option next to the disabled menu item. After the reset, the duplicate menu item disappeared.
works for me. I tried it on about 10 of the menu displays and now; on those only, there is only the correct single display link.
Wonder what is up?

tobedeleted’s picture

Project: Drupal core » Internationalization
Version: 5.7 » 5.x-2.4
Component: menu system » Code

Just upgraded a site from 4.7.5 to 5.10 and as soon as i enabled the Internationalization module the admin menu doubled up. And this was the second attempt given that the first time round I enabled a whole bunch of contrib modules at the same time, and my admin menu ended up with three copies of each item!

Having read #42 above I'm going to go round the block a third time and see if that makes an impact.

Regards
Graham

tobedeleted’s picture

Title: doubling of menu items in upgrade to 5.0 (incl details) » doubling of menu items in upgrade to 5.x (incl details)

Update:
I can confirm that disabling the menu module before enabling the i18n module solved this problem for me. Third time lucky. Now all I've got to do is upgrade the whole site to 6.x...

pixelpreview@gmail.com’s picture

yes same problem with version 5.12
with i18n the menu item are duplicated when you edit a different language than the default.

I will try to remove all modules , enabled i18n before the menu module.

strange bug

yes resolved ... it's effectively a problem with the order ...

I have removed i18n with devel module and the option reinstall module.

already is ok now, when I edit a menu no duplicate entry ...

nco71’s picture

Subscribe

I did disable both international modules and menu modules and reenable internional menu first. It didn t change anything.

I m using Drupal 6.13 , internationalization 6.x-1.1

The only temporary solution I found is to check "Hide automenu entry" in the content types "workflow settings" , so the menu will be created but will appear uncheck.

I think the website users will edit the content directly from the node instead of going through translation anyway so the problem should not occur anymore.

Another useful thing should be to be able to select multiple menu to delete them all in once in menu administration , however I know this is another issue / improvement.

Thanks for the help

h3000’s picture

Hi,

I am also experiencing similar problems.

On Drupal 6.15 - Internationalization 6.x-1.x-dev.

I also tested with disabling the menu module and then re-enabling the internationalization module first before the menu module but the duplicate items are still there.

Is there another fix for this problem?

Thanks

My setup is:
Drupal 6.15
Apache 2
Mysql 5
PHP 5
Internationalization 6.x-1.x-dev

krand’s picture

Hi,

Today I upgraded from D5.1 to D5.22 to D6.16 and experienced the same problem. Menu items got duplicated.

After having read this issue page, I started again from D5.1, this time with being careful to always first enable i18n and only then menu. As suggested in #42. This resolved the problem.

One mistake I made was to not properly delete my damaged database after an unsuccessful attempt. Which made the mistake to reappear again and again. Maybe this helps #58 and #59.

In short: What is the answer to all questions? Exactly! #42 :-)

Jose Reyero’s picture

This looks like some interaction between menu and i18n modules, possibly with query rewriting, menu items language and default language (the one you run updates with).

Unless someone wants to do further testing here, I think we better add the workaround in #42 to the documentation here, http://drupal.org/node/313315

R.Hendel’s picture

Status: Active » Closed (won't fix)
DropInTheOcean’s picture

Component: Code » Blocks

I have this problem of both languages displaying upon updating from 7.x-1.5 to 7.x-1.7. (recommended) (on Drupal 7.14)

My menu is set to "Fixed Language. Menu items will have a global language and they will only show up for pages in that language." I tried again upgrading with menu module disabled, but this did not work.

I reverted to 7.x-1.5 to solve for now.