Jump to content

Login Issues in Front and Back end


Recommended Posts

Hello everyone,

First, I want to commend the contributors of Prestashop because I think it is an excellent product.

Now on to my weird issue. I have Prestashop deployed to a site where the actual administrator of the site has issues loggin in to the site with both the front end customer login as well as the admin backend. It appears that he with some success clear his cache and login in, but no more than once. Further, this is random across multiple computers ( 5+). The response he is geeting is Server 500 error pages which I am skeptically because of IE somes faultly reporting of the issue.

I am unable to duplicate this issue with IE 7, Firefox, and Opera.

Some of the differences between his and my attempts is that he is exclusive using IE7 and is in a geographic area within the United States.

I am trully at a loss, nothing is being reported in the PHP log or any other log that I can see.

Thanks in advance for any assistance or idea you can offer.

Matt

Link to comment
Share on other sites

  • 2 weeks later...

I have read other posts of people having this issue, but still no answer. I finally experienced the issue myself trying to log in to the Front end. In IE it gave me a 'Page cannot be displayed' error, but Firefox prompted me to save the file. That tells me that either the server did not know to render the page as a web page or that the browser is unable to understand what is being giving to it.

I was able to correct the problem by clearing all of my browser stored information. I am going to take some network captures and see if I can find anything that way.

Any suggestions? Is there any encoding being set within prestashop that could cause this issue?

Matt

Link to comment
Share on other sites

Ok...have network captures. I see the post from the client, but nothing in response tell the browser to load a page. I see an ACK packet and a RST,ACK that's it. No, get HTTP 1.1 blah.

Further, it appears to related to the code in authentication.php when the user's username and password have been authenticated. I intentionally entered invalid information and the page reloaded displayed the invalid password error with out issue.

Once again, I cleared the cache in IE and it resolved the issue.

This code has to be what is related to the issue.

$cookie->id_customer = intval($customer->id);
           $cookie->customer_lastname = $customer->lastname;
           $cookie->customer_firstname = $customer->firstname;
           $cookie->logged = 1;
           $cookie->passwd = $customer->passwd;
           $cookie->email = $customer->email;
           if (Configuration::get('PS_CART_FOLLOWING') AND (empty($cookie->id_cart) OR Cart::getNbProducts($cookie->id_cart) == 0))
               $cookie->id_cart = Cart::lastNoneOrderedCart($customer->id);
           Module::hookExec('authentication');
           if ($back = Tools::getValue('back'))
               Tools::redirect($back);
           Tools::redirect('my-account.php');



Since a majority of the code has to do with the cookie, could that be the issue. I tried remarking out the Cart code but not luck. Now it works so I can't test it further.

Any suggestions?

Link to comment
Share on other sites

  • 3 weeks later...

Ok...possibly getting a littly closer. In firefox, it is asking to download the authenticate.php file instead of completing the login process. I am attempting to figure out that which part is doing it, but to me it has to be a redirect. I am using the final build of 1.1.

When I download the file, it is blank. Not seeing anything in the PHP error log.

There appears to be a significant amount of interest, there have been nearly 170 views. Does anyone have any suggestions?

Thanks,

Matt

Link to comment
Share on other sites

  • 3 months later...
×
×
  • Create New...