Language switcher doesn't link correctly

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
ejenio
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Aug 01, 2018 1:13 pm

Language switcher doesn't link correctly

Post by ejenio » Wed Aug 01, 2018 1:20 pm

Hello guys, since I ve' update to the Joomla version 3.8.1, my language switcher is getting me wrong link to every language. It reflects on the main menu that it doesn't work anymore properly. I ve read that it could depend on the difference between &amp; and & on the URL (I know there is not SEF setup)
The first page you can see it works properly, but when you change language with the flags icon everything screws up

The website is www.defendertech.eu

Anyone can help me please?

Joomla version : 3.8.1
PHP version 7.0

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Language switcher doesn't link correctly

Post by Webdongle » Wed Aug 01, 2018 11:17 pm

Methinks you have setup the language settings incorrectly because it defaults to http://www.defendertech.eu/index.php?lang=it and my browser is set English. Do you have separate menu items for each language or are you using an auto translate ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

ejenio
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Aug 01, 2018 1:13 pm

Re: Language switcher doesn't link correctly

Post by ejenio » Thu Aug 02, 2018 7:39 am

Webdongle wrote:
Wed Aug 01, 2018 11:17 pm
Methinks you have setup the language settings incorrectly because it defaults to http://www.defendertech.eu/index.php?lang=it and my browser is set English. Do you have separate menu items for each language or are you using an auto translate ?
Yes, I've got a separate menu item for each language. No autotranslate

I've correct the setup, the default language now is based on the browser language.

Still the problem on. Another solution is setup SEF url but, the actual links have very good seo and position. Don't want to remove it

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

Re: Language switcher doesn't link correctly

Post by infograf768 » Thu Aug 02, 2018 7:45 am

You have an error in a 3rd party extension
Warning: in_array() expects parameter 2 to be array, null given in /web/htdocs/www.defendertech.eu/home/modules/mod_ic ... nucore.php on line 732

As far as I know, that module is pretty old and was not updated for 2 years
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

ejenio
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Aug 01, 2018 1:13 pm

Re: Language switcher doesn't link correctly

Post by ejenio » Thu Aug 02, 2018 12:49 pm

infograf768 wrote:
Thu Aug 02, 2018 7:45 am
You have an error in a 3rd party extension
Warning: in_array() expects parameter 2 to be array, null given in /web/htdocs/www.defendertech.eu/home/modules/mod_ic ... nucore.php on line 732

As far as I know, that module is pretty old and was not updated for 2 years
Yes I see, but if you easily change the language letters in the url, it works everything (also the icemegamenu)

http://www.defendertech.eu/index.php?lang=en

TO

http://www.defendertech.eu/index.php?lang=fr

OR

http://www.defendertech.eu/index.php?lang=de

AND SO ON

But if you click through the flags something goes wrong

:'(

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Language switcher doesn't link correctly

Post by Webdongle » Thu Aug 02, 2018 3:18 pm

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

John Oxlade
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 139
Joined: Wed Dec 22, 2010 2:03 am
Location: Whatawhata, New Zealand

Re: Language switcher doesn't link correctly

Post by John Oxlade » Thu Aug 02, 2018 11:19 pm

OK, not sure what is/was going on, but I tried installing Italian, setup a temp article, etc. and it worked. I deleted all of the German items, re-installed it all, setup new categories, menu, etc., and it now works.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Language switcher doesn't link correctly

Post by Webdongle » Fri Aug 03, 2018 10:01 am

Could be cache. Could be a 3rd party extension that's why I requested the fpa report viewtopic.php?f=714&t=793531
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Language - Joomla! 3.x”