404 Error return on customer login attempt

  • Posts: 86
  • Thank you received: 1
  • Hikashop Business
4 months 2 days ago #347048

-- 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


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.

  • Posts: 78303
  • Thank you received: 12368
4 months 2 days ago #347053


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.066 seconds
Powered by Kunena Forum