Jump to content

prestashop 1.5.6.2 logout + ssl gave a 404 error page


Recommended Posts

whene my live site is with ssl enabled and i click logout button i get a 404 error.

 

this error is with default theme and my payed theme

 

I use prestashop 1.5.6.2 new and clean install (I didn t update from a previews version) + a theme for 1.5.6.0 + ssl + seo disabled

 

i test it with a white htaccess then with the regenerated one by prestashop, then removing it completely doesn t change anything

 

I found a solution that i can t program in php :
-"Force the SSL on all the pages" disabled
-as you know the logout link is like this https://mysite.com/index.php?mylogout= , if a change the https to http then I past this link in my browser http://mysite.com/index.php?mylogout= it did logout fine (no 404 , everything is ok but i don t know what do i need to change in php , help pls smile.gif this is the best solution i see )

 

temporal solutions:

 

solution 1: active Preferences > General Force the SSL on all the pages ,now I can logout fine but all my site stay in ssl.

 

solution 2: disable ssl .

 

solution 3: changing this  in   modules/blockuserinfo_mod/views/templates/hook/blockuserinfo.tpl
or here if using default theme   modules/blockuserinfo/blockuserinfo.tpl

 

<a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="

{l s='Log me out' mod='blockuserinfo'}

" class="logout" rel="nofollow">

{l s='Log out' mod='blockuserinfo'}

</a>

 

to this

 

<a title=" " href="http://yoursite.com/index.php?mylogout=">logout</a>

 

this work very well but i m afried of the consequences

 

thank you very much for you help ,does my third solution affect any importante thing pls?

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

changing this  in   modules/blockuserinfo_mod/views/templates/hook/blockuserinfo.tpl
or here if using default theme   modules/blockuserinfo/blockuserinfo.tpl

$link->getPageLink('index', true, NULL, "mylogout"

to this

$link->getPageLink('index', false, NULL, "mylogout"

did work well too

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

×
×
  • Create New...