Issue with root page and multi lingual site

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
abloemenkamp
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Aug 18, 2015 3:36 pm

Issue with root page and multi lingual site

Post by abloemenkamp » Tue Aug 18, 2015 3:41 pm

Situation

I have a site that uses Dutch as a default language. Switching languages works fine for all pages except the homepage that sometimes doesn’t want to switch back to Dutch.

Reproducing it

When I go to root and press the English flag, and then go back to the Dutch language, it still redirects to the English site.

information

The link of the dutch flag is “domain/nl/” but I have “Remove URL Language Code - Yes” in my system – language filter.

Multilingual Status in admin console, shows no errors

I am using
  • Joomla 3.4.3
    System - JCH Optimize (HTML compression to BASIC)
    Cloudflare, set to develop mode so this should not matter
I have turned off all caching

There is no more redirect in my cPanel

I hope someone can help fix this root page issue.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24982
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Issue with root page and multi lingual site

Post by pe7er » Tue Aug 18, 2015 4:34 pm

Can you check it with another browser?

Can you test it with the JCH Optimize switched off?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Fri Aug 05, 2016 9:39 am

I have a similar problem with the root URL default language (joomla 3.5.1):

the site has homepages for 2 languages (de, it) and the default language is 'it'; nevertheless typing the root URL address (without any language suffix) opens haphazardly the 'de' homepage instead of the 'it' one. Clearing the caches (browser's and server's) does not change this behaviour.
Could this be a bug in Joomla 3.5.1? and fixed in 3.6.x?

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24982
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Issue with root page and multi lingual site

Post by pe7er » Sun Aug 14, 2016 10:41 am

bnicoj wrote:the site has homepages for 2 languages (de, it) and the default language is 'it'; nevertheless typing the root URL address (without any language suffix) opens haphazardly the 'de' homepage instead of the 'it' one. Clearing the caches (browser's and server's) does not change this behaviour.
How did you configure the plugin "System - Language Filter"?
Did you configure "Language Selection for new Visitors" to Site Language or Browser Settings?

What is the default language in your browser? German?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Wed Aug 24, 2016 7:22 am

Hi Peter,
Sorry for the late answer...:-(
all my settings are correct, as I stated the "bad" behavior is very hazardous. As I could read in "What's in 3.6.1?" (https://www.joomla.org/announcements/36 ... -news.html) a fix has been applied in J3.6.1,
"Fix for language redirects being cached in the browser". I'm still with J3.5.1, as soon as I'll update I will report.

Best rgds/john

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30924
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Issue with root page and multi lingual site

Post by Per Yngve Berg » Wed Aug 24, 2016 9:52 am

Mod. Note: Relocated the Topic to the Language J3.x Forum.

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

Re: Issue with root page and multi lingual site

Post by infograf768 » Thu Aug 25, 2016 9:37 am

Is (are) the language Switcher module(s) set to NOT USE CACHE?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Thu Aug 25, 2016 3:39 pm

Yes, Caching: No cashing.

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

Re: Issue with root page and multi lingual site

Post by infograf768 » Fri Aug 26, 2016 10:25 am

@bnicoj
Have you updated to 3.6.2?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Mon Sep 26, 2016 8:42 pm

Hello infograf768
It took a time, but now I've arrived in "finish" with the Joomla update 3.6.2 (stepwise update 3.x ->3.6.0, then 3.6.0 ->3.6.2). At a first look, the default root language seems to work, but I need some more time & user experience for statistics (as the case for 3.5.1 also was).

By the way: a new issue after updating Joomla 3.6.2: the Control Panel still informs "Joomla! 3.6.0 is available, Update now"!? A known issue?

rgds/john

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

Re: Issue with root page and multi lingual site

Post by infograf768 » Tue Sep 27, 2016 8:43 am

I suggest to fix the database. You also have to update the joomla update component: see Extensions->update
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Wed Sep 28, 2016 4:27 pm

hello infograf 768

thanks for DB fix hint, I knew, it should be done but I forgot. The false "3.6.0 update available" message does not burden me anymore :)

As concerning the actual topic of multilanguage behaviour of J3.6.2, I could gather some experince:

1) Default lang of root URL works, but it is a little bit tricky (in fact, same behaviour as in J3.5) (Lang.filter plugin settings are: lang selection for new visitors=site language; cookies lifetime=session):
Once you explored the site in a different lang as the default one, even if you close the tab (thinking "ending the session") when opening again the root URL you'll get the last used lang. You have to EXIT the browser and start it again in order to have the "ending the session" event fired!! Tested wit Internet explorer and Mozilla.
Could you confirm?

2) Site lang after login of a registered user: here I've been surprised to see that the site lang does NOT change to the user's chosen lang. but remains to the root default !! With Joomla 3.4.x and 3.5.x it worked correctly.

WORSE, opening the "user profile edit" and saving (or cancelling) the user profile remains open but in the context of the "all lang." main menu!! Again, with Joomla 3.4.x and 3.5.x it worked correctly.

Could be that Joomla 3.6.2 introduced a new parameter for configuring registered users, or is it a real issue to be tracked?

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

Re: Issue with root page and multi lingual site

Post by infograf768 » Thu Sep 29, 2016 9:56 am

Could you confirm?
Normal afaik. Sessions remains until Browser is closed.
Site lang after login
The Automatic change in language filter has to be set to Yes.
opening the "user profile edit" and saving (or cancelling) the user profile remains open but in the context of the "all lang."
One of the main menus should only contain a Home menu item set to ALL. And no menu module.
Which type of link do you use to edit the profile? A menu item? Are you sure you have one per content language? and it's a good idea to associate them.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Thu Sep 29, 2016 1:51 pm

infograf768 wrote:opening the "user profile edit" and saving (or cancelling) the user profile remains open but in the context of the "all lang."
One of the main menus should only contain a Home menu item set to ALL. And no menu module.
infograf768 wrote:Normal afaik. Sessions remains until Browser is closed.
J'en prends note.
infograf768 wrote:Site lang after login.The Automatic change in language filter has to be set to Yes.
It's already the case. See attached snapshot of lang filter settings and the snapshot of the Edit User Profile page opened immediately after the login: User lang. is French, but the site remained in German (default root URL lang).
infograf768 wrote:opening the "user profile edit" and saving (or cancelling) the user profile remains open but in the context of the "all lang.".
One of the main menus should only contain a Home menu item set to ALL. And no menu module.
I followed your advice (thank you a lot!) making the appropriate changes and such brought the Edit User Profile in a satisfactory working state :). "satisfactory" only, because I'm missing a "close" button (as we're used to in backend editing); if you click "cancel" or "save" without having changed anything, you remain hanging in the editor page.

Concluding:
  • - in J3.6.2 the "all lang" topic is treated a bit different as compared to J3.4 or 3.5 ( I have a "mirror" site, identical in structure but yet in J3.4.8; I had there NO issue the with Edit User Profile, apart the "close"ing as said above).
    Could you confirm this different approach in J3.6.2?
  • - The user site lang after login seems (to me) to be a real issue in J3.6.2; in my "mirror" site/J3.4.8 mentioned above this issue does not exist. Or should I still check other configuration items? Which ones?
You do not have the required permissions to view the files attached to this post.

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Thu Sep 29, 2016 1:58 pm

I forgot answering your last questions:
"Which type of link do you use to edit the profile? A menu item? Are you sure you have one per content language? and it's a good idea to associate them."

I'm using a menu item of type "Edit User Profile" for every defined languages (German,French,Italian). Association was already done.
Anyway, following your previous advice I reached the issue status "solved" :-)

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

Re: Issue with root page and multi lingual site

Post by infograf768 » Fri Sep 30, 2016 5:27 am

So, which issues remains?
Language ALL is treated in the same way in 3.6.2 as before.

What has changed (to the best) is that the redirect after login/logout (if defined) now work fully (in the module as well as the menu items), i.e. one can really choose redirecting to a specific menu item, taking into account associations and the Automatic change set to yes or not.
For example, if set to Yes and the menu item selected to redirect to IS associated to a menu item tagged to the preferred language of the user, then it is that last one that will be displayed.
If set to No, the redirect will be done to the menu item selected.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Fri Sep 30, 2016 10:29 am

The remaining issue with J3.6.2 is, as I said in my previous post, that a user having in his Profile a language different from the site language used just before he logs-in (eg. root URL default language) does NOT become the site switched to his language after Login.

In my previous explanatory snapshot you can see: the site lang is German (cf. module on the right side), user prefered lang = French (as the Edit User Profile page opened after login shows). User 'john' (lang French) becomes the site still displayed in German! There is NO language Switch!

The redirections which can be defined in the Login module and that you mention are not of concern at this point (in fact, I have not defined any, keeping 'Default').
The issue is not "which page is displayed after login", but "which language this page is displayed in".
And, as also I have said previously, my "mirror" identical site but still under Joomla 3.4.8 does NOT have that problem; it switches the language correctly.

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

Re: Issue with root page and multi lingual site

Post by infograf768 » Sat Oct 01, 2016 6:26 am

Can't help if no access to the site as superadmin.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Sat Oct 01, 2016 9:54 pm

How could I pass to you the credentials for backend access in a secure way?

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

Re: Issue with root page and multi lingual site

Post by infograf768 » Sun Oct 02, 2016 4:23 pm

Just send me a mail via my Control Panel. Refer to this Topic in it.
http://forum.joomla.org/memberlist.php?mode=email&u=14
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Sat Oct 22, 2016 8:16 am

I've sent you the requested data on Oct., 14th

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

Re: Issue with root page and multi lingual site

Post by infograf768 » Sat Oct 22, 2016 8:43 am

Sorry, can't find that mail
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

bnicoj
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 13, 2015 7:46 pm

Re: Issue with root page and multi lingual site

Post by bnicoj » Tue Nov 01, 2016 8:25 am

Hello Jean-Marie

... a very painful way of troubleshooting... my mail (a copy of which was sent to me) should have landed into your spam folder?

Anyway, I have now GOOD news: unsuspectingly I installed the last Joomla update 3.6.4. Although the releasenotes stipulate merely:

"Version 3.6.4 is released to address two critical security issues and a bug regarding two-factor authentication."

after having done the update and retesting: the site language changes now, after the login of a user, to the user's language as set in his/her profile !


All's well that ends well! :) &
Many thanks for your efforts in helping!
john

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

Re: Issue with root page and multi lingual site

Post by infograf768 » Wed Nov 02, 2016 9:53 am

Good.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Locked

Return to “Language - Joomla! 3.x”