Jump to content

Users logout does not work because frindly-urls


Recommended Posts

Prestashop 1.5.4.1 with default theme

 

I'm testing my store and can't logout the users after turned on "friendly-urls". As the pages addresses kept the language sufixes (/en e /br) Prestashop couldn't find "?mylogout=".

 

Turn off friendly-urls works fine, but I need that option available.

 

Is there any solution?

How to redirect those logouts to www.myshop.com/br/?mylogout= ; or www.myshop.com/en/?mylogout= ???

Thanks

Link to comment
Share on other sites

My store is disabled.

If I turn on Friendly URL and delete my IP from maintenance, I couldn't even see the maintenance page, getting a 404 as the browser was looking for mystore/br/ instead of mystore/index.php (my language 1 is BR Portuguese, 2 is English).

I'm using reset safari to clear cache and cookies.

Link to comment
Share on other sites

  • 5 weeks later...

This error will occur if your browser is logged in to the front-end shop (and a cookie generated), and THEN you switch from regular url's to friendly urls.

At this point you've invalidated the cookie on the front-end and the only way to fix this is to clear the cache.

 

(However, if you're running with friendly urls to start and initially log into the front-end, you will be able to log out no problem.)

 

Use Case:

I tested this by logging into my front-end shop with firefox with friendly urls turned off, then switching friendly urls on.

I then logged into a new front-end session with internet explorer.

I tried to log out of the session from firefox, and got the error.

I tried to log out of the session with IE, and was successful.

 

This proves that it is the cookie which is generated from the initial URL, and not necessarily a bug.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

if you are in home page it works fine. But if you log out while being in this page

https://www.wrongpeople.it/shop/en/my-account

By now i disabled the ssl protocol. So if you logout from

http://www.wrongpeople.it/shop/en/my-account all works fine

but from the same link with https protocol there's an error.

:(

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

  • 2 weeks later...

That is the same solution that I tried:

Edit /modules/blockuserinfo/blockuserinfo.tpl

Then replace

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

with

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

I cleared cache, reset the browser before testing but I get the same result.  404 page when logging out from SSL page.

Link to comment
Share on other sites

That is the same solution that I tried:

Edit /modules/blockuserinfo/blockuserinfo.tpl

Then replace

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

with

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

I cleared cache, reset the browser before testing but I get the same result.  404 page when logging out from SSL page.

 

crapoloa.....ok...I suggest (because I already searched in forge)  a bug report so that the ps team can review...also please post the forge link here so others can 'vote it up'.  I can then also take that link in post in the other threads concerning this subject.

 

http://forge.prestashop.com/secure/Dashboard.jspa

Link to comment
Share on other sites

  • 2 months later...

Hi,

 

I am having a similar login/logout page stuck problem. On google chrome when I remove the "SSL URL" on "SEO and URL", and then clear the smart caching I am able to log in, but then I can't log out. I tried to put the url again, wait a while and then clearing the smart cache again and it worked out, front user became able to logout. But I have to do that every time I want to login with a front user.

Is this problem the same you all are facing or should I try another topic? Thanks

Link to comment
Share on other sites

  • 2 years 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...