Page 1 of 1

website will not switch back to english

Posted: Thu Jul 25, 2019 6:46 am
by rotemh
Hi,
I have a multilingual website with english, german, and hebrew. English is default. when I open the browser (usually chrome) the website works perfectly, letting me switch between the languages without a problem back and forth. however, sometimes when I switch to German, the website will "refuse" to switch back to English. I also receive feedback from visitors who tell me that the English switcher does not work for them. is this a known bug? did someone experience a similar behavior?
Thanks for any advice,
Rotem

Re: website will not switch back to english

Posted: Thu Jul 25, 2019 7:10 am
by Per Yngve Berg
Probably an article or menu item that are not asociated with items in the other languages.

Re: website will not switch back to english

Posted: Thu Jul 25, 2019 7:57 am
by rotemh
I double checked but they are all associated properly. as said, when the browser opens everything works fine and it stops switching to English only at some point (I cannot identify any pattern that lead to this malfunction). when this happens, the website will automatically change to German even when I manually set the url to be without the language code (this means default - English), although I have set in the language filter module "automatic language change" to no.

Re: website will not switch back to english

Posted: Thu Jul 25, 2019 2:30 pm
by infograf768
Are you using 3rd party extensions?
Are you using cache? Which?
What is your Joomla Version?
Have you tested with Protostar template?

Re: website will not switch back to english

Posted: Thu Jul 25, 2019 6:14 pm
by rotemh
Are you using 3rd party extensions? -I'm using the Joomla multilingual core system. The only extensions that in my intuition could affect are nicepage editor and jch-optimize.

Are you using cache? Which? -currently memcache but the problem existed also with file-system

What is your Joomla Version? -3.9.10 (latest)

Have you tested with Protostar template? -no

Re: website will not switch back to english

Posted: Fri Jul 26, 2019 5:27 am
by infograf768
Please test with Protostar.
Also disable the 3rd party extensions and test again, enabling them back one by one after being sure they are not the culprit.
I have read that nicepage templates may not be compatible with quite a few aspects of J! or some 3rd party extensions.

Re: website will not switch back to english

Posted: Fri Jul 26, 2019 10:32 am
by rotemh
update: what has solved the issue after playing around is setting in the Language Filter plugin Cookie Lifetime to session instead of Year. In my opinion this is a Joomla bug.

Re: website will not switch back to english

Posted: Fri Jul 26, 2019 10:51 am
by infograf768
Session is the default when installing Joomla.
Results of Year may depend on where you come from. This is why we added Session in 2013. We left Year for B/C reasons.
https://developer.joomla.org/joomlacode ... 30079.html

Re: website will not switch back to english

Posted: Fri Jul 26, 2019 11:47 am
by rotemh
I know that Session is the default but if Year might cause issues then in my opinion it should be either removed or there should at least be a warning that it's for B/C purpose. why put an obstacle in front of a blind man...?

Re: website will not switch back to english

Posted: Fri Jul 26, 2019 4:41 pm
by infograf768
In fact, looking at my notes from that time, there was another reason we left Year: it specially concerned Intranets.