[Skip to main content](#vessel-content)

#   Customer Account Page reports 404 Error

##

- **[juliet](/forum/user/1814-juliet "View juliet's Profile")**
- [![juliet's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1814-juliet "View juliet's Profile") Topic Author
- [ Offline](/forum/user/1814-juliet)

Less More

- Posts: 29
- Thank you received: 0
-
-

15 years 7 months ago [\#13014](#13014) by [juliet](/forum/user/1814-juliet "View juliet's Profile")  *[Customer Account Page reports 404 Error](/forum/3-bug-report/13014-customer-account-page-reports-404-error#13014 "Using Latest Hikashop Hikashop Business Edition Joomla v.1.6x URL:   www.healthandfitnesseveryday.com/  I added Customer Account to a menu link.  1.) If I am logged into the front-end, the Customer Account link works fine. 2.) If I am not logged in, the request returns with a 404 error page.  Note: I would of expected a page return of &quot;Please Login First&quot;, like with the Affiliate page link, it works properly.  In addition:  3.) If I try to log out from the Customer Account page, it returns a 404 page error.  Please advise.")* was created by *[juliet](/forum/user/1814-juliet "View juliet's Profile")*

Using Latest Hikashop
Hikashop Business Edition
Joomla v.1.6x
URL: [ www.healthandfitnesseveryday.com/](http://www.healthandfitnesseveryday.com/)

I added Customer Account to a menu link.

1.) If I am logged into the front-end, the Customer Account link works fine.
2.) If I am not logged in, the request returns with a 404 error page.

Note: I would of expected a page return of "Please Login First", like with the Affiliate page link, it works properly.

In addition:

3.) If I try to log out from the Customer Account page, it returns a 404 page error.

Please advise.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzAxNC1jdXN0b21lci1hY2NvdW50LXBhZ2UtcmVwb3J0cy00MDQtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 7 months ago [\#13019](#13019) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Customer Account Page reports 404 Error](/forum/3-bug-report/13014-customer-account-page-reports-404-error#13019 "Using Latest Hikashop Hikashop Business Edition Joomla v.1.6x URL:   www.healthandfitnesseveryday.com/  I added Customer Account to a menu link.  1.) If I am logged into the front-end, the Customer Account link works fine. 2.) If I am not logged in, the request returns with a 404 error page.  Note: I would of expected a page return of &quot;Please Login First&quot;, like with the Affiliate page link, it works properly.  In addition:  3.) If I try to log out from the Customer Account page, it returns a 404 page error.  Please advise.")*

Hi,

Could you try to change the line:
$app-&gt;redirect(JRoute::_('index.php?option=com_user&amp;view=login'.$url.'&amp;return='.urlencode(base64_encode(hikashop::currentUrl())),false));
to:
$app-&gt;redirect(JRoute::_('index.php?option=com_users&amp;view=login'.$url.'&amp;return='.urlencode(base64_encode(hikashop::currentUrl())),false));
in the file components/com_hikashop/controllers/order.php

That's a bug which has been corrected on our end and which will be added to next version of hikashop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzAxNC1jdXN0b21lci1hY2NvdW50LXBhZ2UtcmVwb3J0cy00MDQtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[juliet](/forum/user/1814-juliet "View juliet's Profile")**
- [![juliet's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1814-juliet "View juliet's Profile") Topic Author
- [ Offline](/forum/user/1814-juliet)

Less More

- Posts: 29
- Thank you received: 0
-
-

15 years 7 months ago [\#13033](#13033) by [juliet](/forum/user/1814-juliet "View juliet's Profile")  Replied by *[juliet](/forum/user/1814-juliet "View juliet's Profile")* on topic *[Re: Customer Account Page reports 404 Error](/forum/3-bug-report/13014-customer-account-page-reports-404-error#13033 "Using Latest Hikashop Hikashop Business Edition Joomla v.1.6x URL:   www.healthandfitnesseveryday.com/  I added Customer Account to a menu link.  1.) If I am logged into the front-end, the Customer Account link works fine. 2.) If I am not logged in, the request returns with a 404 error page.  Note: I would of expected a page return of &quot;Please Login First&quot;, like with the Affiliate page link, it works properly.  In addition:  3.) If I try to log out from the Customer Account page, it returns a 404 page error.  Please advise.")*

**nicolas wrote:**

> Hi,
>
> Could you try to change the line:
> $app-&gt;redirect(JRoute::\_('index.php?option=com\_user&amp;view=login'.$url.'&amp;return='.urlencode(base64\_encode(hikashop::currentUrl())),false));
> to:
> $app-&gt;redirect(JRoute::\_('index.php?option=com\_users&amp;view=login'.$url.'&amp;return='.urlencode(base64\_encode(hikashop::currentUrl())),false));
> in the file components/com\_hikashop/controllers/order.php
>
> That's a bug which has been corrected on our end and which will be added to next version of hikashop.

Hi Nicolas,

Yes, I would be happy to change the code. Please tell me what file these changes need to be applied too.

Thank you,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzAxNC1jdXN0b21lci1hY2NvdW50LXBhZ2UtcmVwb3J0cy00MDQtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 7 months ago [\#13043](#13043) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Customer Account Page reports 404 Error](/forum/3-bug-report/13014-customer-account-page-reports-404-error#13043 "Using Latest Hikashop Hikashop Business Edition Joomla v.1.6x URL:   www.healthandfitnesseveryday.com/  I added Customer Account to a menu link.  1.) If I am logged into the front-end, the Customer Account link works fine. 2.) If I am not logged in, the request returns with a 404 error page.  Note: I would of expected a page return of &quot;Please Login First&quot;, like with the Affiliate page link, it works properly.  In addition:  3.) If I try to log out from the Customer Account page, it returns a 404 page error.  Please advise.")*

Hi,

It's already in my previous message:
in the file components/com_hikashop/controllers/order.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzAxNC1jdXN0b21lci1hY2NvdW50LXBhZ2UtcmVwb3J0cy00MDQtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[juliet](/forum/user/1814-juliet "View juliet's Profile")**
- [![juliet's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1814-juliet "View juliet's Profile") Topic Author
- [ Offline](/forum/user/1814-juliet)

Less More

- Posts: 29
- Thank you received: 0
-
-

15 years 7 months ago [\#13065](#13065) by [juliet](/forum/user/1814-juliet "View juliet's Profile")  Replied by *[juliet](/forum/user/1814-juliet "View juliet's Profile")* on topic *[Re: Customer Account Page reports 404 Error](/forum/3-bug-report/13014-customer-account-page-reports-404-error#13065 "Using Latest Hikashop Hikashop Business Edition Joomla v.1.6x URL:   www.healthandfitnesseveryday.com/  I added Customer Account to a menu link.  1.) If I am logged into the front-end, the Customer Account link works fine. 2.) If I am not logged in, the request returns with a 404 error page.  Note: I would of expected a page return of &quot;Please Login First&quot;, like with the Affiliate page link, it works properly.  In addition:  3.) If I try to log out from the Customer Account page, it returns a 404 page error.  Please advise.")*

**nicolas wrote:**

> Hi,
>
> It's already in my previous message:
> in the file components/com\_hikashop/controllers/order.php

Hi Nicolas,

Sorry I missed the file notaion. Having said that the code

$app-&gt;redirect(JRoute::_('index.php?option=com_user&amp;view=login'.$url.'&amp;return='.urlencode(base64_encode(hikashop::currentUrl())),false));

Appears twice in the file. line 37 &amp; 193. Per your instruction I apply the code change. I still get the same results. 404 Error page

Please advise,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzAxNC1jdXN0b21lci1hY2NvdW50LXBhZ2UtcmVwb3J0cy00MDQtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[juliet](/forum/user/1814-juliet "View juliet's Profile")**
- [![juliet's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1814-juliet "View juliet's Profile") Topic Author
- [ Offline](/forum/user/1814-juliet)

Less More

- Posts: 29
- Thank you received: 0
-
-

15 years 7 months ago [\#13066](#13066) by [juliet](/forum/user/1814-juliet "View juliet's Profile")  Replied by *[juliet](/forum/user/1814-juliet "View juliet's Profile")* on topic *[Re: Customer Account Page reports 404 Error](/forum/3-bug-report/13014-customer-account-page-reports-404-error#13066 "Using Latest Hikashop Hikashop Business Edition Joomla v.1.6x URL:   www.healthandfitnesseveryday.com/  I added Customer Account to a menu link.  1.) If I am logged into the front-end, the Customer Account link works fine. 2.) If I am not logged in, the request returns with a 404 error page.  Note: I would of expected a page return of &quot;Please Login First&quot;, like with the Affiliate page link, it works properly.  In addition:  3.) If I try to log out from the Customer Account page, it returns a 404 page error.  Please advise.")*

Hi Nicolas,

Here is what I found as a solution. There are 2 files that I applied your code change too.

**File 1:** components/com_hikashop/controllers/order.php
Results: If user **is logged in** and user logs out from this page, request redirects to login form.

**File 2:** components/com_hikashop/controllers/user.php
Result: If user **is not logged in**, request redirects to login form.

With these changes I get NO 404 error pages, and active redirect pages. ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzAxNC1jdXN0b21lci1hY2NvdW50LXBhZ2UtcmVwb3J0cy00MDQtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 7 months ago [\#13070](#13070) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Customer Account Page reports 404 Error](/forum/3-bug-report/13014-customer-account-page-reports-404-error#13070 "Using Latest Hikashop Hikashop Business Edition Joomla v.1.6x URL:   www.healthandfitnesseveryday.com/  I added Customer Account to a menu link.  1.) If I am logged into the front-end, the Customer Account link works fine. 2.) If I am not logged in, the request returns with a 404 error page.  Note: I would of expected a page return of &quot;Please Login First&quot;, like with the Affiliate page link, it works properly.  In addition:  3.) If I try to log out from the Customer Account page, it returns a 404 page error.  Please advise.")*

Indeed. We'll add that to next version

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMzAxNC1jdXN0b21lci1hY2NvdW50LXBhZ2UtcmVwb3J0cy00MDQtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.069 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
