Strange language behaviour after upgrade to 3.4.2 (or 3.4.3)

General questions regarding the use of languages in Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
europower
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Oct 11, 2013 8:44 am
Contact:

Strange language behaviour after upgrade to 3.4.2 (or 3.4.3)

Post by europower » Fri Jul 03, 2015 9:05 am

After upgrading to 3.4.2 we noticed that when users login (or logout) from our website, the language switches to another language. To be precise, it switches to the language that is sorted to the last place inside the content language manager (see picture). And even more: it only does this when SEF if turned off.

Anyone having this problem?
You do not have the required permissions to view the files attached to this post.

europower
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Oct 11, 2013 8:44 am
Contact:

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by europower » Fri Jul 03, 2015 12:36 pm

When logging in through ?option=com_users (component) there is no problem. It only occurs when using the mod_login (no template override)

europower
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Oct 11, 2013 8:44 am
Contact:

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by europower » Fri Jul 03, 2015 12:48 pm

Compared the modules\mod_login folders between 3.4.0 and 3.4.2/3 and found out that the "helper.php" file is almost complete redone. When using the 3.4.0 file on my 3.4.3 Joomla site, the problem was gone.
Can someone have a look at this!

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by infograf768 » Fri Jul 03, 2015 4:05 pm

The redirect from the login depends on the default site language defined for the user IF "Automatic Change" is set in the language filter parameters.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
estas
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Jan 20, 2009 3:40 pm
Location: Belgium
Contact:

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by estas » Sun Jul 05, 2015 6:34 am

Same problem here. Checked language filter parameters but that is not the problem. After logon through the module, language changes to whatever language is on last place within the content language manager.
Changing the helper.php file fixed it for me, but i'm not happy with this solution. A better solution would be that it gets fixed. Alternative solutions could be not to use the module at all and link to component page. Or use an 3th party login module.
For now (until it is fixed) i will use the solution Europower provided.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by infograf768 » Sun Jul 05, 2015 7:27 am

Please create a tracker issue with detailed instructions (user preferred language, browser preferred language, login module parameters, etc.) to reproduce the problem on
http://issues.joomla.org/
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

europower
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Oct 11, 2013 8:44 am
Contact:

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by europower » Mon Jul 06, 2015 6:31 am

Issue is posted Joomla tracker system http://issues.joomla.org/tracker/joomla-cms/7348

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by infograf768 » Mon Jul 06, 2015 7:43 am

@europower
You are using Falang. You better contact the Falang developer as I can't repoduce the issue on a pure Joomla!.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

europower
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Oct 11, 2013 8:44 am
Contact:

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by europower » Mon Jul 06, 2015 7:51 am

Already did that. First responds is that login redirect is done by the language filter plugin which is a core plugin and not an falang plugin.
Still strange that the "helper.php" trick from version 3.4.0 is working!

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by infograf768 » Mon Jul 06, 2015 8:04 am

Here are the changes that were brought to the login module helper:
https://github.com/joomla/joomla-cms/co ... helper.php

Can you test one by one to see which one broke your settings?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

biirc
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 145
Joined: Thu Mar 12, 2009 11:34 am

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by biirc » Thu Jul 09, 2015 1:08 pm

Hi,

I found the problem but not yet the solution.

The problem occur if the mod_falang is before the mod_login.

This is due to this line when i build the $language->link
$uri->setVar('lang',$language->sef);
$language->link = JUri::getInstance()->toString(array('scheme', 'host', 'port', 'path', 'query'));

I'm working on a patch , the new Falang 2.1 was ready. i will wait a little more.

Stéphane
Falang Team

europower
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Oct 11, 2013 8:44 am
Contact:

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by europower » Thu Jul 09, 2015 2:18 pm

Thanks Stéphane. Looks like that fixed the problem.
Great support from FaLang team. Keep up the good work.

biirc
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 145
Joined: Thu Mar 12, 2009 11:34 am

Re: Strange language behaviour after upgrade to 3.4.2 (or 3.

Post by biirc » Thu Jul 09, 2015 2:21 pm

Thanks but it work only 3.4.3 (may be 3.4.2)
I will put this in the next release on monday probably 13/07

Stéphane


Locked

Return to “Language - Joomla! 3.x”