- Posts: 90
- Thank you received: 2
404 Error return on customer login attempt
3 years 9 months ago #347048
by gielhier
404 Error return on customer login attempt was created by gielhier
-- url of the page with the problem -- :
jetsebremer.nl/
-- HikaShop version -- : 4.7.0
-- Joomla version -- : 4.2.5
-- PHP version -- : 8.1.12
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : 404 error on Hikashop User Control Panel menu item
Hi,
After migrating our webshop to Joomla 4, users aren't able to log-in using the "Hikashop user control panel" menu item. it returns a 404.
Now as a quick fix on our live site, we've added a hidden "Joomla user login form" menu item. into the same menu used by the "Hikashop user control panel" item. see below:
However we're still curious as to how and why this happens.
On our staging site: joomla4.jetsebremer.nl/ you can still recreate the issue by clicking on "Customer login" in the sidebar.
-- HikaShop version -- : 4.7.0
-- Joomla version -- : 4.2.5
-- PHP version -- : 8.1.12
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : 404 error on Hikashop User Control Panel menu item
Hi,
After migrating our webshop to Joomla 4, users aren't able to log-in using the "Hikashop user control panel" menu item. it returns a 404.
Now as a quick fix on our live site, we've added a hidden "Joomla user login form" menu item. into the same menu used by the "Hikashop user control panel" item. see below:
However we're still curious as to how and why this happens.
On our staging site: joomla4.jetsebremer.nl/ you can still recreate the issue by clicking on "Customer login" in the sidebar.
This message contains confidential information
Please Log in or Create an account to join the conversation.
3 years 9 months ago #347053
by nicolas
Replied by nicolas on topic 404 Error return on customer login attempt
Hi,
The issue is with the routing of SEF URLs.
When you try to access a HikaShop menu item which requires the user to be logged in, HikaShop needs to redirect you to the login page. Since that's a Joomla page, it's better if there is a menu item available for that so that it can use the URL of that menu item.
You can see that the component/users part of the URL is replaced by the alias of the menu item on your live website, and this precisely mean that it found the login menu item and uses it instead of redirecting to the login page while keeping the HikaShop control panel Itemid.
I'm not entirely sure why Joomla's router doesn't like that the current menu item is not the same as the component of the page being requested and generate a 404. It seems to depend on how the website is setup as this could also happen for some on Joomla 3.
The issue is with the routing of SEF URLs.
When you try to access a HikaShop menu item which requires the user to be logged in, HikaShop needs to redirect you to the login page. Since that's a Joomla page, it's better if there is a menu item available for that so that it can use the URL of that menu item.
You can see that the component/users part of the URL is replaced by the alias of the menu item on your live website, and this precisely mean that it found the login menu item and uses it instead of redirecting to the login page while keeping the HikaShop control panel Itemid.
I'm not entirely sure why Joomla's router doesn't like that the current menu item is not the same as the component of the page being requested and generate a 404. It seems to depend on how the website is setup as this could also happen for some on Joomla 3.
Please Log in or Create an account to join the conversation.
Time to create page: 0.175 seconds