Hi!
Here is steps to reproduce the bug I found: I need translated primary links and I decided to add multilingual variables to handle 'menu_primary_links_source' and 'site_frontpage'. So
1) I updated settings.php with this variables
2) On Site Information page set frontpage for both languages (EN and RU).
3) Created two menus and fill them with items. Most of the items links to simple node pages (node/%), but one item in each menu points to Views page.
4) Here the magic begins. When I'm viewing one frontpage, english for example, I see my menu. But if I switch to russian frontpage i can only one item, which is item that points to the Views page.
5) Return to Site Information page, current language russian. Just press "Save changes" (just update value of "site_frontpage" in drupal variables table) and return to frontpage. Now I can see full menu on my russian frontpage, but if I switch to english, here I only see one item.
6) If I repeat step 5 but for the english version it will return me to the step 4 and so on.

Note: items becomes invisible only if the page is viewed as the frontpage. So if I set "node/30" as the frontpage the items will be visible if I view http://mysite.com/node/30, but I can't see them on http://mysite.com.

Can somebody help with this issue? I can't find how to fix it.

Comments

squares’s picture

I am having the same issue... any help would be greatly appreciated.

jvieille’s picture

Title: Menu items and frontpage » Node linked menu items disappear at frontpage
Priority: Normal » Critical

Looks like a similar issue.

My sits has 3 languages an/fr/el
It works well as long as I am logged as admin. (this is why I did not notice earlier... I suspect the issue exist some time ago)

When the user has another role or is not logged:
- In el, all menu items show up correctly in all situations
- In en or fr, the node based menu items disappear when viewing the frontpage, show up again when viewing anything else.

If I revert the disappearing multilingual nodes to language neutral instead of their specific language, the mmenu items show up again in all situations, but it is no longer possible to switch the current language.

My frontpage is a simple page translated in 3 languages. The corresponding nodes are set in the Site information page.

Did someone found a solution for this problem?

Set to critical as this make the sites hardly usable

Sp.Shut’s picture

I've had the same problem, and it got fixed when I entered the page's alias as home page path at admin/settings/site-information rather than node/60 . Wierd, but worked %)

ycwjjjj’s picture

Title: Node linked menu items disappear at frontpage » Node linked menu items disappear at frontpage and some node "view" pages
Version: 6.x-1.0 » 6.x-1.2

I have similar problem but it happened not only at the front page but also "view" of node pages.

case: 3 languages (en (default), zh-hans, zh-hant)

nodes created for the same content with different translations:
node/1 (en) (default) - URL alias: /content/about
node/2 (zh-hans) - URL alias: /content/about
node/3 (zh-hant) - URL alias:/content/about

The primary menu with the corresponding languages can be shown on the pages when reaching
http://localhost/drupal/content/about
http://localhost/drupal/zh-hans/content/about
http://localhost/drupal/zh-hant/content/about
http://localhost/drupal/node/1
http://localhost/drupal/zh-hans/node/2
http://localhost/drupal/zh-hant/node/3
http://localhost/drupal/zh-hans/node/1
http://localhost/drupal/zh-hant/node/1

But there are no primary menu for the following cases. (no primary links for nodes with other languages)
http://localhost/drupal/node/2
http://localhost/drupal/node/3
http://localhost/drupal/zh-hans/node/3
http://localhost/drupal/zh-hant/node/2

jvieille’s picture

In my case (#2), the problem has gone on its own.

I would suspect a cache problem that makes this issue erratic

Sp.Shut’s picture

Solution found!

Create aliases to the frontpages of all languages (except for default) and redirect to the aliases using htaccess.

Longdesc:
I have three languages Belarusian, Russian, and English, their respective homepages are set to node/60 , node/61 , node/62. Default is Belarusian, where the menu and everything else works fine.

Important! Be sure that when you are creating aliases you are viewing the site in the language corresponding to the alias you are creating!

I've created new aliases to node/61 and node/62 ("glavnaja" and "homepage" respectively). Then in .htaccess i wrote the next lines:

RewriteRule ^ru/?$ ru/glavnaja [L]
RewriteRule ^en/?$ en/homepage [L]

And it did the job!
Hope this helps somebody :)

repeater’s picture

No one found a definitive solution to this issue?

jose reyero’s picture

Status: Active » Fixed

This should be fixed with 1.6 version.

jvieille’s picture

Status: Fixed » Postponed (maintainer needs more info)

It seems totally erratic, may be you can help pinpointing the by looking at possible related contextual situation.
I changed the status as the problem is not solved at all - Even #6 is in no way a fix,just a hack

djguerri’s picture

I had the same problem and, as reported by "jvieille" (#5), it was fixed after cleaning Drupal's cache in "/admin/settings/performance" page.

It's not a definitive solution, but it can be helpful while the issue is fixed...

jose reyero’s picture

Status: Postponed (maintainer needs more info) » Fixed

If it was fixed after cache cleaning, that means the trouble was created by a previous version, we are not doing anything to fix it.

As a side note, menu items that are nodes use the same language filtering than node listing pages. So if you want them to show up for all languages, set them to 'Language neutral'

Status: Fixed » Closed (fixed)

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

strellman’s picture

Version: 6.x-1.2 » 6.x-1.7
Status: Closed (fixed) » Active

Confirming this is still an issue at 1.7 after disabling caching and clearing cache.
In English, without changing languages, node based menu items appear on primary links when moving from front page (which is a node in my case) to any other link on the site. Returning to the front page causes the node based menu items to disappear.

I am not using multilingual variables in settings.php yet.
Other languages are enabled but not translated yet.
Problem occurs when language prefix is "en" or blank.
Problem occurs for primary-links in both theme and block.

#11 This is true whether the menu item is English or All languages. Language neutral is not an option for my book content type.

My only work around is to avoid pointing primary link items to nodes and hope users get beyond the front page to see those menu items.

strellman’s picture

strellman’s picture

Status: Active » Fixed

Oops. Time to eat humble pie. Somehow my front page was pointing to an English page that was marked Russian. So when I switched to the front page it filtered for Russian. Now I've added my multilingual variables and set the real front page.

Status: Fixed » Closed (fixed)

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