News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Error 404 when user changes current Language in Category or Product Page

Started by extonjaez, August 28, 2023, 12:40:29 PM

Previous topic - Next topic

extonjaez

Hello

In my site, when an user is in a english category/product page and clicks in the french flag (to go to french category/product page), a 404 error is displayed.

English Category page -> French Category page (by clicking French flag)
https://la-vie.paris/en/some-links/manufacturer/grand-paris

English product page -> French product page (by clicking French flag)
https://la-vie.paris/en/some-links/orsay-museum-detail

Do you know why ?  :(
Many Thanks
Arnaud

System Information
VirtueMart 4.2.2 10908
PHP Built On   Linux s22095112 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64
Database Type   mysql
Database Version   10.3.39-MariaDB-0+deb10u1
Database Collation   utf8mb4_general_ci
Database Connection Collation   utf8mb4_general_ci
PHP Version   8.1.22
Web Server   Apache
WebServer to PHP Interface   cgi-fcgi
Joomla! Version   Joomla! 4.3.4 Stable [ Bora ] 22-August-2023 16:00 GMT
User Agent   Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

ViPeS

Quote from: extonjaez on August 28, 2023, 12:40:29 PM

In my site, when an user is in a english category/product page and clicks in the french flag (to go to french category/product page), a 404 error is displayed.

English Category page -> French Category page (by clicking French flag)
https://la-vie.paris/en/some-links/manufacturer/grand-paris

Do you know why ?  :(

404 error appears because the page is opening https://la-vie.paris/fr/exemples-de-liens/manufacturer/grand-paris does not exist.
Is there such a page https://la-vie.paris/fr/exemples-de-liens/fournisseur/paris-et-villes-proches

You are using Language Switcher Joomla Core, it must be configured correctly.
VM 4.2.18 11050, Joomla 5.2.1, PHP 8.3.8

extonjaez

Quote from: ViPeS on August 28, 2023, 13:27:40 PM

404 error appears because the page is opening https://la-vie.paris/fr/exemples-de-liens/manufacturer/grand-paris does not exist.
Is there such a page https://la-vie.paris/fr/exemples-de-liens/fournisseur/paris-et-villes-proches

You are using Language Switcher Joomla Core, it must be configured correctly.

We are not hardcoding the links, VM SEF creates the links. You can see that the product links also result in 404 when switching the language.
VM is not simply not creating correct links for other languages but the active one.

extonjaez


Milbo

Do you use the language module of the membership? or the one of joomla?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

extonjaez

Quote from: Milbo on September 27, 2023, 20:15:21 PM
Do you use the language module of the membership? or the one of joomla?

Hello Milbo!!

Thanks for your anwser  ;)
What do you mean by module of the membership (do you mean "Shop Language Switcher for VM" by Studio 42) ?
I use "Language Switcher Site" Module from Joomla! Project...

Best Regards
Arnaud
Modify message


Milbo

You are using the Language switcher of the joomla project and you get this error? That is strange. There is an extra language switcher for members. Did you try that one?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

extonjaez

Hello

I use Joomla 4.4.1 and Virtuemart 4.2.x
What is please the "extra language switcher for members" LINK to this module (î'm already VM bronze member).
Thanks for your help  ;)
Regards