Customer Account Page reports 404 Error

  • Posts: 29
  • Thank you received: 0
13 years 7 months ago #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 "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 or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
13 years 7 months ago #13019

Hi,

Could you try to change the line:
$app->redirect(JRoute::_('index.php?option=com_user&view=login'.$url.'&return='.urlencode(base64_encode(hikashop::currentUrl())),false));
to:
$app->redirect(JRoute::_('index.php?option=com_users&view=login'.$url.'&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 or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 0
13 years 7 months ago #13033

nicolas wrote:

Hi,

Could you try to change the line:
$app->redirect(JRoute::_('index.php?option=com_user&view=login'.$url.'&return='.urlencode(base64_encode(hikashop::currentUrl())),false));
to:
$app->redirect(JRoute::_('index.php?option=com_users&view=login'.$url.'&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 or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
13 years 7 months ago #13043

Hi,

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

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 0
13 years 7 months ago #13065

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->redirect(JRoute::_('index.php?option=com_user&view=login'.$url.'&return='.urlencode(base64_encode(hikashop::currentUrl())),false));

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

Please advise,

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 0
13 years 7 months ago #13066

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. :)

Please Log in or Create an account to join the conversation.

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
13 years 7 months ago #13070

Indeed. We'll add that to next version

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum