Language switcher returns 404 in German / English site

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
claudia123
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Sep 05, 2013 6:50 am

Language switcher returns 404 in German / English site

Post by claudia123 » Mon Sep 20, 2021 8:36 am

I have the exactly the same problem (with the same settings like in post #1) with German / English language switcher. It is a Joomla 4.0.3 page with a Yootheme Pro Template. But changing to Cassiopeia doesn't solve the problem, it is not depending to the template.
Last edited by toivo on Mon Sep 20, 2021 9:06 am, edited 1 time in total.
Reason: mod note: split from someone else's topic - please create your own topics in the future!

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

Re: Language switcher returns 404 in German / English site

Post by pe7er » Mon Sep 20, 2021 9:24 am

Welcome to Joomla forum!

Could you use the "Multilingual Status" module to check if all necessary things for a multilingual website are configured correctly?
System > Administrator Modules > "Multilingual Status" (you might have to select "New" to create the module)
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
The best website: https://the-best-website.com

claudia123
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Sep 05, 2013 6:50 am

Re: Language switcher returns 404 in German / English site

Post by claudia123 » Mon Sep 20, 2021 9:42 am

Hi Peter,

everything is configured correctly: English and German Menu, fallback menu with All

[attachment=1]language-status.jpg[/attachment]

[attachment=1]language-status.jpg[/attachment]

Thank you for your help
You do not have the required permissions to view the files attached to this post.

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

Re: Language switcher returns 404 in German / English site

Post by pe7er » Mon Sep 20, 2021 9:47 am

Are both menu items from both languages associated with each other?
Are they each pointing to the right article (the EN menu item to the EN article and the DE menu item to the DE article?
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
The best website: https://the-best-website.com

claudia123
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Sep 05, 2013 6:50 am

Re: Language switcher returns 404 in German / English site

Post by claudia123 » Mon Sep 20, 2021 10:15 am

The menus are associated and the articles well linked in the correct language

I now found something strange. The site is located on a subdirectory (without subdomain) on an IONOS account. There you must specify a RewriteBase.

Now I made a copy of the site and transferred it to a Host Europe account. There the language changer works perfectly.

Could this problem caused by the site location on a subdirectory in combination with some settings of the provider?

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

Re: Language switcher returns 404 in German / English site

Post by pe7er » Mon Sep 20, 2021 10:30 am

claudia123 wrote:
Mon Sep 20, 2021 10:15 am
Could this problem caused by the site location on a subdirectory in combination with some settings of the provider?
If you temporary switch off SEF completely (in Global Configuration), the site and switching to another language will probably work correctly.
If so, it's probably a server (or .htaccess) issue.
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
The best website: https://the-best-website.com

claudia123
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Sep 05, 2013 6:50 am

Re: Language switcher returns 404 in German / English site

Post by claudia123 » Thu Sep 23, 2021 3:29 pm

Hi Peter,
this is a bug: https://github.com/joomla/joomla-cms/issues/35541
Best regards

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

Re: Language switcher returns 404 in German / English site

Post by pe7er » Thu Sep 23, 2021 6:05 pm

Thanks for sharing that info!

From the responses in that issue it seems that it's only occurring on some servers.
It's probably some server configuration that causes the error in Joomla.
Kind Regards,
Peter Martin, Global Moderator
https://db8.nl - Joomla specialist, Nijmegen, Nederland
The best website: https://the-best-website.com


Post Reply

Return to “Language - Joomla! 4.x”