dancallo Posted March 16, 2013 Share Posted March 16, 2013 (edited) Manually installed a new PrestaShop 1.5.3.1 store and everything was working fine. Then, I went to create a new customer account from the Create a New Account area of the store under the SiteMap as though a customer would want to create an account while perusing that site page. I verified the email functionality was working using PHP mail method. I entered an email address that I monitor, filled out the customer information, then clicked Register. I received an email letting me know what the account access information was. So, I went back to the authentication area to login as the customer for the first time only to have it do nothing. No errors or warnings. Just no reaction when attemptingto login. I have SSL enabled on the site as any store would be setup on a Webhosting service to protect customer data and allow for secure eCommerce. Does anyone know why PrestaShop is not logging the customer in? I have verified that the account was properly created under the Customer > Customer BO. Thank you for your support. Dan Calloway UPDATE: If it will help anyone who may be able to assist me with this issue, I installed a fresh copy of PrestaShop on a domain that does not have an SSL certificate and the problem with adding customer accounts does not exist. Accounts are created normally. This tells me that the problem is most likely related to the SSL certificate. This does not appear to have any impact on other modules that I've discovered. Please do not tell me that the solution to the problem is to Disable SSL since PrestaShop should work with an SSL certificate with no problem. Thank you, again. Dan Calloway ------------------------------------------------------- Now, I have discovered that a related issue to the one I originally posted here is that when a visitor clicks on a product and adds that product to his/her shopping cart, the cart is not updated. The item appears to be moving the shopping cart, but never updates. I believe this issue is related to the authentication issue I reported earlier. I need help with this or I may seriously have to look for another shopping cart application to use. I can't have this sort of thing happening and not get any support from the community to fix the problem. Appreciate any assistance with these two related issues as soon as possible. Dan Calloway Edited March 17, 2013 by dancallo (see edit history) Link to comment Share on other sites More sharing options...
hase-at Posted March 18, 2013 Share Posted March 18, 2013 Hi, I think you are right, the problems with authentication and the cart seem to be related. I found a way to reproduce the problem (note: although I am an IT guy, I am not a user of prestashop, I am just a customer who had problems with a shop and dug into the problem). Furthermore, the problem seems to be related with how you enter the URL: with or without "www.", so it seems to be a cookie problem. The shop I was trying to use is www.leurredelapeche.fr, so I will use this site for my example. I am able to reproduce the problem at any given time. I am using Chrome 25.0.1364.172 m, but I am having the same issues in Firefox and IE. Steps to reproduce: - Open Browser, enter "leurredelapeche.fr" (without "www."!!!) - go to any given product and put it in the cart (ajouter au panier) - now open the cart (voir mon panier), and it will be empty - no matter how often you try, even if you go to "www.leurredelapeche.fr", it will not work Solutions: - clear all your cookies for www.leurredelapeche.fr and leurredelapeche.fr - open browser and enter "www.leurredelapeche.fr" (this time with "www."!) - put any product in the cart - open cart -> it works - if you close browser and enter leurredelapeche.fr, it will also work now. Once cookies are set for the correct address, you have no problems Whenever the cart works, I can authenticate, when the cart is empty, authentication does not work. I hope this helps with solving the problem, looks like a bug in the shop code to me. Greetings from Salzburg Robert Link to comment Share on other sites More sharing options...
El Patron Posted March 18, 2013 Share Posted March 18, 2013 greetings from Kansas City try this: add this to the top of your .htaccess file..ensures www <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] </IfModule> and if you prefer to use a back office module to manage your .htaccess as opposed to ftp, see our module: http://www.etiendas.co/en/42-prestashop-15-customize-htaccess.html Link to comment Share on other sites More sharing options...
hase-at Posted March 18, 2013 Share Posted March 18, 2013 I forgot to mention that if you go to leurredelapeche.fr, you are already being forwarded to www.leurredelapeche.fr. Link to comment Share on other sites More sharing options...
El Patron Posted March 18, 2013 Share Posted March 18, 2013 I forgot to mention that if you go to leurredelapeche.fr, you are already being forwarded to www.leurredelapeche.fr. check that your ssl and shop url are the same Link to comment Share on other sites More sharing options...
dancallo Posted March 18, 2013 Author Share Posted March 18, 2013 (edited) Hi, I think you are right, the problems with authentication and the cart seem to be related. I found a way to reproduce the problem (note: although I am an IT guy, I am not a user of prestashop, I am just a customer who had problems with a shop and dug into the problem). Furthermore, the problem seems to be related with how you enter the URL: with or without "www.", so it seems to be a cookie problem. The shop I was trying to use is www.leurredelapeche.fr, so I will use this site for my example. I am able to reproduce the problem at any given time. I am using Chrome 25.0.1364.172 m, but I am having the same issues in Firefox and IE. Steps to reproduce: - Open Browser, enter "leurredelapeche.fr" (without "www."!!!) - go to any given product and put it in the cart (ajouter au panier) - now open the cart (voir mon panier), and it will be empty - no matter how often you try, even if you go to "www.leurredelapeche.fr", it will not work Solutions: - clear all your cookies for www.leurredelapeche.fr and leurredelapeche.fr - open browser and enter "www.leurredelapeche.fr" (this time with "www."!) - put any product in the cart - open cart -> it works - if you close browser and enter leurredelapeche.fr, it will also work now. Once cookies are set for the correct address, you have no problems Whenever the cart works, I can authenticate, when the cart is empty, authentication does not work. I hope this helps with solving the problem, looks like a bug in the shop code to me. Greetings from Salzburg Robert Robert, Not being able to authenticate into PrestaShop when the shopping cart is empty is problematical. Let's say that a customer wanted to simply login to your store to look at his/her previous orders, order status, or vouchers, then not being able to do this unless they added an item to their shopping cart is unacceptable. The shop that I'm installing for a client is still in non-production mode. So, I manually installed a fresh copy of PrestaShop in a new folder location on her domain (with SSL) but this time I used a new downloaded .zip file rather than reuse the one that I had installed on two other occasions. I walked through installing modules into the shop identically as before and stopped each time after installation to test whether the shopping cart worked and whether I could authenticate into Prestashop as a fake customer. What I discovered now is that all is working as advertised. It appears that my problem may have been a corrupt .zip download. In addition, the difference this third time around also included the fact that I did not upload the files to the domain shop folder using FileZilla, but, instead, uploaded the .zip file in cPanel and extracted the file in place. I'm beginning to think that the problem was corrupt files either through the ftp upload process or from the very beginning with a corrupt .zip. All is well for the moment. Dan Edited March 18, 2013 by dancallo (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts