Problem: Unable to get primary links working with i18n.

Here's what I did:
Installed Drupal 5.7
Made sure to enable i18n modules BEFORE enabling core Menu module.

Default language is English.
Created page EN about us (node/1). Created translations of this page - LV about us (node/2), and RU about us (node/3). Only filled in Title and Body text info on these pages. Did not enter any Menu settings from create node page, as others in forum have reported this as being buggy.

(Following instructions on http://drupal.org/node/70194) I went to admin->menus. Created menus for Primary Links LV and Primary Links RU. Under admin->menus settings tab, selected Primary links as "menu containing primary links" and "menu containing secondary links" for EN.
Switched language using translation block and under admin->menus setting tab, set Primary Links LV as containing primary and secondary links for LV. Repeated this step to set Primary Links RU as containing primary and secondary links for RU.

Under admin->menus I then tried to "add item" to Primary Links menu to create a primary link for my
EN about us (node/1) page.

Language: English
Title: about us
Path: node/1
Expanded - checked
Parent item: Primary links
Weight: 0

When I click "Submit" this results in a blank white page.

I've tried adding items under all three Primary links menus.
I've tried leaving the dropdown language option blank and/or the Expanded option unchecked.
All of these attempts result in a blank page.

Background info:
I had a trilingual site built with Drupal 4.7.4 and i18n. It contained all the optional core modules and contributed modules listed below. It also had a primary menu with expanded links working in all three languages.

I tried upgrading from 4.7.4 to 5.7 and it all went well until I ran into the blank white page issue mentioned above. I figured it had something to do with the menu or i18n dB tables getting messed up in the conversion from 4.7.4 to 5.7. So I started with a completely fresh install of 5.7 and a blank (new) dB.

New site seems to be working fine except for the inability to create primary links. I haven't found a solution in the forums, issues, bugs or handbooks, and would appreciate any help.

I apologize if this post seems lengthy, but I wanted to provide all details to assist in finding a solution.

Config Details:
Under settings.php, I have added the necessary i18n variables:

$conf['i18n_variables'] = array(
        // Primary and secondary links
        'menu_primary_menu',
        'menu_secondary_menu',
        // These are for PHPtemplate
    	'phptemplate_primary_links',
    	'phptemplate_primary_links_more',
    	'phptemplate_secondary_links',
    	'phptemplate_secondary_links_more' 
    );

Theme that I am using: box_grey but same issue is present when using default (garland) theme.

Contributed modules that I am using:
poormanscron
image and image gallery
tinymce
imce
i18n (internationalization, translation, i18n blocks, i18n menu, i18n taxonomy)

Optional Core modules that are enabled:
Contact
Help
Locale
Menu
Taxonomy
Upload

Comments

lisa’s picture

Ok - I still think there is a bug here that needs to be addressed, but I think I found a way to create primary links.

When I was getting the "blank white page" this is what I was doing:
Go to admin->Site Building->Menus.
At the top of the page you will see that it is the content of the list tab that appears by default. On this list page, under the "Primary links" menu I select "add item." I try to add a menu item as described above and when I click "Submit" this results in a blank white page.

BUT if instead of scrolling down the list page to select "add item," try this.

Under admin->Site Building->Menus click on the "add menu item" tab at the top of the page. From there try to create a menu item, selecting the appropriate options:

Language: English
Title: about us
Path: node/1
Expanded - checked
Parent item: Primary links
Weight: 0

Click "Submit" and voila! a primary link is created.

Like I said, I think this is a bug because the "add item" link that appears under each menu on the list tab should allow you to add an item to a menu. Shouldn't it?

The "edit" link next to an already created menu item on the list tab also creates errors. Trying to edit an existing menu item using this edit link results in a blank white page as well.

lisa’s picture

Title: primary links not working with i18n » add menu item and edit menu item not working with i18n

The "add item" link that appears under each menu on the list tab should allow you to add an item to a menu. But trying to create a menu item from that link results in a blank white page (please see complete description above.)

The "edit" link next to an already created menu item on the list tab also creates errors. Trying to edit an existing menu item using this edit link results in a blank white page as well.

In a related post http://drupal.org/node/212262#comment-788904 I described a work-around to this issue.

In summary, when you go to admin->Site Building->Menus you'll see 4 tabs across the top of the page. The links that are on the list tab page do not seem to work properly with i18n. That is, neither the "add item" to create a new menu item nor the "edit" to edit an existing menu item work as expected.

Here's what seemed to work for me:

To create a new menu item use the "add menu item" tab (yes, the tab not the "add item" link on the list page).

To edit an existing menu item, go to the particular node and choose to edit it. From the edit node page scroll down to the "menu settings" section and modify as needed. (I know others have said modifying menu settings under node/edit is buggy, but when I tried editing an existing menu item from the list tab of admin->Site Building->Menus submitting the change resulted in a blank white page.)

Hasn't anyone else encountered this problem with menus and i18n? I am still looking for a solution, as I am concerned that when I turn the site over to the client, they might not remember which admin links work properly and which do not. Any help would be greatly appreciated.

mediamash’s picture

having the same problem lisa

jose reyero’s picture

Component: Module i18nmenu » Code
Status: Active » Closed (fixed)

Cleaning issue queue for old versions. If you want to get any support consider using the forum or updating to 6.x.

See #626858: Internationalization 5.x Maintenance Policy. Approaching end of support.