Jump to content

[SOLVED] Problem while log out - Error 404


Recommended Posts

Hi everybody!

 

I got a problem in our webiste... when a customer logs out from his account he gets a message error 404 :(

 

logout.jpg

 

logout2.jpg

 

I understand that the link of the "log out" button redirects into an incorrect URL but how can I change it to redirect to homepage?

 

here your are the website url: http://nutri-cosmetica.com

 

Thanks in advance!

Edited by Antakarana (see edit history)
Link to comment
Share on other sites

<!-- Block user information module HEADER -->

 

 

<div id="header_user">

<ul id="header_nav">

{if !$PS_CATALOG_MODE}

<li id="shopping_cart">

<a href="{if $opc}{$link->getPageLink("$order_process.php", true)}{else}{$link->getPageLink("$order_process.php", true)}{if $order_process == 'order'}?step=0{/if}{/if}" title="{l s='Your Shopping Cart' mod='blockuserinfo'}" class="cart_black">{l s='Cart' mod='blockuserinfo'}</a>

<span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>

<span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='blockuserinfo'} {l s='for' mod='blockuserinfo'}</span>

<span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'} {l s='for' mod='blockuserinfo'}</span>

{if $cart_qties >= 0}

<span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}">

{if $priceDisplay == 1}

{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}

{convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}

{else}

{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}

{convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}

{/if}

</span>

{/if}

<span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span>

</li>

{/if}

</ul>

 

 

 

 

 

<p id="header_user_info">

 

{if $logged}

{l s='Welcome' mod='blockuserinfo'} {$cookie->customer_firstname} {$cookie->customer_lastname}<br />

{* <a href="{$link->getPageLink('my-account.php', true)}" title="{l s='Your Account' mod='blockuserinfo'}">{l s='Your Account' mod='blockuserinfo'}</a>   /   *}

<a href="{$link->getPageLink('index.php')}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}" class="logout">{l s='Log out' mod='blockuserinfo'}</a>

 

{else}

<a href="{$link->getPageLink('my-account.php', true)}" class="login">{l s='Log in' mod='blockuserinfo'}</a>

{/if}

</p>

 

 

</div>

 

 

 

<!-- /Block user information module HEADER -->

Link to comment
Share on other sites

Please, next time that you poste a code... pos it between this tags:

 

"[ CODE ]" place the code here "[ /CODE ]" (without cuotes and spaces)

 

Then your text will look like this

 place the code here 

 

;)

 

Any way... where you have this:

<a href="{$link->getPageLink('index.php')}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}" class="logout">{l s='Log out' mod='blockuserinfo'}</a>

 

Try this:

<a href="{$link->getPageLink('index.php', true)}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}" class="logout">{l s='Log out' mod='blockuserinfo'}</a>

Edited by Antakarana (see edit history)
  • Like 3
Link to comment
Share on other sites

I explain you my situation , may be you can help me :

 

1. When i'm login and i'm on the " HOME PAGE " , if i logout >>>> that's good i come back to Authentification page ( i have the module Authentification which block my shop )

2. When i'm login and i'm on a page product or categories , if i logout >>>> error 404 ! or white page.

3. When i logout with the point 2. after if i enter in the shop >>> " FATAL ERROR " !!!

 

Serious i dont understand .... So nevertheless i used your code and now the point 3 is ok !!

 

... :(

Link to comment
Share on other sites

I explain you my situation , may be you can help me :

 

1. When i'm login and i'm on the " HOME PAGE " , if i logout >>>> that's good i come back to Authentification page ( i have the module Authentification which block my shop )

2. When i'm login and i'm on a page product or categories , if i logout >>>> error 404 ! or white page.

3. When i logout with the point 2. after if i enter in the shop >>> " FATAL ERROR " !!!

 

Serious i dont understand .... So nevertheless i used your code and now the point 3 is ok !!

 

... :(

 

Sorry but your url is under maitenance so I can't get into it... :wacko:

Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...
  • 4 months later...
  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...