Jump to content

Customer login - 502 Bad Gateway


Recommended Posts

I can create a customer account but when trying to re-login i get a 502 bad gateway nginx error. Only happens if you enter correct username & password, otherwise i get prestashop error eg. There is 1 error : 1. invalid password

prestashop Version 1.2.2.0
Apache version 2.0.63
PHP version 5.2.9

any ideas?

Link to comment
Share on other sites

got the same problem... and other people too... and this is the third thread i post saying I HAVE THE SAME PROBLEM... shop got be up and running on october 15th... and no one helps with this.. think i'm going to cry ='(

Link to comment
Share on other sites

  • 2 weeks later...

I have exactly the same problem, and the site is live. Running Version 1.2.4.0.

Can anybody please help. If not then I will have to abandon Presta Shop which is a real shame as it is an absolutely fantastic application

Link to comment
Share on other sites

problem solved!!!

i copied the sleep function code from v1.2.0.8 (wich worked well in my server before upgrading), and substituted the new one... i truly don't understand the differences between one and another (i'm not an php programmer), but that solved the problem... and as far as i'm concerned that's what i needed.... and everything seems to work just fine

hopes these will help

Link to comment
Share on other sites

I requested my host to increase the cookie cache but this was their response

It looks like the size of the Cookie header is indeed what is causing the error. I manage to access your application via a SSH tunnel, bypassing the nginx frontend, and the login is working fine in this way. The login script does send back a 5 KB cookie header though, which is too big for Nginx to process. Note that according to the cookie standards, the cookie header should not exceed 4 KB. Using cookies larger than 4 KB might cause problems on the browser side as well.

Please check if there are any options in Prestashop that would allow you to reduce the cookie size. Normally, PHP applications only send a session ID in the cookie, while storing the rest of the information on the server. Storing data in the cookie is a potentially dangerous approach (security-wise).

....


So it looks like Presta Shop will not (someone correct me if I am wrong) work without this bug appearing on servers running ngix unless your hosting provider increases the cookie cache.

My hosts have offered to move me over to an Apache server..hmmm
Link to comment
Share on other sites

  • 1 year later...

I have the same problem when I regenerate my login, and when I trying to relogin i get a 502 bad gateway nginx error.
How can I resolve this problem. Where can I found the function sleep? .Is this the problem.
I have the version 1.3.2.3 .

Link to comment
Share on other sites

  • 1 month later...

Good evening,

be careful, without the SSL technology, you will have security problems!!! So do not disactivate it.

What kind of SSL certificate do you have?
Is it from a Certificate Authority like VeriSign, GlobalSign, Thawte, GeoTrust, RapidSSL?
Or is it from another CA?
Or is it an auto-generated SSL certificate from your server?

http://www.networking4all.com/en/ssl+certificates/what+is+ssl/

DO NOT give vital info (credit card number, personal data …) on a website which has no SSL certificate from OV (Organization Validation) or EV (Extended Validation), otherwise you or the/your customers might get fooled by a website which does not belong to the company in question they think they are dealing with.

Best regards,

Link to comment
Share on other sites

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