4.2.2 bug for multiple languages sites

General questions regarding the use of languages in Joomla! 4.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.
Post Reply
KianWilliam
Joomla! Guru
Joomla! Guru
Posts: 542
Joined: Thu Jan 12, 2017 10:13 am

4.2.2 bug for multiple languages sites

Post by KianWilliam » Sat Sep 24, 2022 7:38 am

To whom it may concern:
This might be considered as a bug for 4.2.2
In components/com_users/src/controller/userController.php line:No 142, $return turned into string after being checked as numeric and
getMenuLanguage($return) accepts integer as parameter rather than string.
solution: just place $return inside the next condition after $language.
Now on logout from a login menu there will be no problem
The bug concerns sites with multiple languages
Kian William
Last edited by toivo on Sat Sep 24, 2022 7:54 am, edited 1 time in total.
Reason: mod note: moved from 4.x General Questions

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 13083
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: 4.2.2 bug for multiple languages sites

Post by sozzled » Sat Sep 24, 2022 7:56 am

It may be a bug in J! 4.2 (see https://issues.joomla.org/tracker/joomla-cms/38720); not sure if it's been addressed in J! 4.2.3. You may want to check it out with J! 4.2.3 RC1 on a non-production website). Sorry, I can't find a link to J! 4.2.3 RC2 which I understand is available.
Last edited by toivo on Sat Sep 24, 2022 8:02 am, edited 1 time in total.
Reason: mod note: fixed typo 4.2.4
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?”
Walking the talk: https://j4xdemo.enduring.com.au
:)

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 15239
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: 4.2.2 bug for multiple languages sites

Post by toivo » Sat Sep 24, 2022 8:01 am

Unless the issue has already been reported in Joomla! Issue Tracker, document the test environment, describe use case or steps required to reproduce the issue, any error messages and the call stack, then report it as a new issue.
Toivo Talikka, Global Moderator

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 15239
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: 4.2.2 bug for multiple languages sites

Post by toivo » Sat Sep 24, 2022 8:06 am

sozzled wrote:
Sat Sep 24, 2022 7:56 am
Sorry, I can't find a link to J! 4.2.3 RC2 which I understand is available.
Joomla 4.2.3 RC2 can be downloaded from Nightly Builds, which are literally updated every night or day, depending on where you are.
Toivo Talikka, Global Moderator

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 13083
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: 4.2.2 bug for multiple languages sites

Post by sozzled » Sat Sep 24, 2022 8:08 am

Thanks for fixing my typo, @toivo. #38720 was reported on the Issue Tracker (on 9-Sep-2022) but it hasn't been closed. It relates directly to the OP's question: PHP throws a TypeError on logout from the site.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?”
Walking the talk: https://j4xdemo.enduring.com.au
:)

KianWilliam
Joomla! Guru
Joomla! Guru
Posts: 542
Joined: Thu Jan 12, 2017 10:13 am

Re: 4.2.2 bug for multiple languages sites

Post by KianWilliam » Sat Sep 24, 2022 9:10 am

If it is already reported, my duty is over, yet the bug is still there with j4.2.2

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 13083
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: 4.2.2 bug for multiple languages sites

Post by sozzled » Sat Sep 24, 2022 9:22 am

At the moment, the bug is still there in J! 4.2.3 as well.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?”
Walking the talk: https://j4xdemo.enduring.com.au
:)

KianWilliam
Joomla! Guru
Joomla! Guru
Posts: 542
Joined: Thu Jan 12, 2017 10:13 am

Re: 4.2.2 bug for multiple languages sites

Post by KianWilliam » Sun Sep 25, 2022 8:09 am

But the solution is easy and takes no time, hopefully in future versions it shall be fixed, before that time we have to remember in each joomla update to fix the related core file


Post Reply

Return to “Language - Joomla! 4.x”