Active
Project:
Localizer
Version:
5.x-3.10
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2008 at 17:48 UTC
Updated:
31 Jul 2008 at 16:05 UTC
Jump to comment: Most recent file
I have 4 languages installed - english, italian, german and french.
I am having some issues with the drupal cache (anonymous user).
I am switching by hostnames. When I click on the german flag which goes to the german domain, the menus are not translated until I get to a page that has a german translation (most pages are in English). The menus change back to English when I go to a non translated page, even though the domain is still the german domain.
Then, if I go back to English and go to a page that has a german translation, the content shows English but the menus turn german. If I delete that english page from the cache_page, the menus go back to English.
What is going on here?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Localizer_Fuzetto_1217518006166.png | 87.53 KB | drfuzetto |
Comments
Comment #1
drfuzetto commentedHere is a modified email thread that I had with Roberto (localizer module developer). This might be useful to people who are having similar problems.
-----------------------------
Could you try to empty completely the cache and try again ?
Can also you test which cid is used in the cache tables ?
This is the technique I use :
http://speedtech.it/drupal-clear-the-cache
Roberto
-----------------------------
I have cleared all of the cache tables. Hopefully that will clear things up.
I am having another problem too that is related to permissions for the anonymous users. When I click on the flag that takes me to the French domain, it doesn't translate.
What are the ideal permissions for anonymous users?
Deborah
-----------------------------
This only for anonymous users, right ?
Can you make a test and disable the cache ?
Roberto
-----------------------------
Yes, this problem is only with the anonymous users.
I tested with caching turned off and everything worked fine. Unfortunately I cannot keep the caching off. Is there a way around this?
I have attached a screenshot (Localizer_Fuzetto_1217518006166.png).
Deborah
-----------------------------
So, definitely it is the cache ...
The init hook is responsible for language change.
Run this SQL code on you db :
UPDATE system SET weight = -10 WHERE name = 'localizer'
It simply set the priority in calling localizer module, nothing of dangerous.
Roberto
-----------------------------
That didn't seem to do anything. What did work was putting the home page (/) in the cache exclude.
Why do you think this is happening? Can you explain this?
Deborah
-----------------------------
How is built the front page ?
Using panels and views ?
Roberto
-----------------------------
Our front page is a node that calls 2 views within it.
Deborah
-----------------------------