Jump to content

[solved] Customers cannot login after moving data to new installation.


Recommended Posts

Hello,

I started my production site 2 years ago, with a 1.4.9 version.Then I upgraded first to 1.5.6.2 and then to 1.6.0.8 using the 1 clic upgrade module. The site works well but there is a cache problem, I have to delete the class_cache.php sometimes for making it work. I checked the forum for a solution and as far as I know anybody solved this problem.

So I started a new site from zero and I imported the products and categories with the same ID with a module and then I exported the tables of the production site related to customers, carts, orders, zones, couriers.

Everything seemed to work well but I cannot login with a customer's login data. 

I read this topic: http://www.prestashop.com/forums/topic/311985-solved-moved-database-now-customers-cant-login/

and I did the same and I tried to login as admin and I had no problems, but then I took the data from some customers and I cannot login.

I also tried this: http://www.prestashop.com/forums/topic/161377-solved-customers-cant-log-in-at-front-office-new-installps-1462/?do=findComment&comment=791927

With no luck.

I created a new customer and I can login without problems, even I could logout and then login.

Do you know how could I solve the customer's login problem?

Thanks in advance.

Regards.

Link to comment
Share on other sites

Hi,

 

prestashop uses a different hash value for each ps installation.  this value is used in creating encrypted password and is used when checking the password at login.  Because you ported your customer information to a new installation the old passwords will not work.

 

you can fix this as follows;

 

from your original installation

config/settings.inc.php

copy this line, (the long value will be different from yours)

define('_COOKIE_KEY_', 'a long value');

now open your new installation config/settings.inc.php

 

find this

define('_COOKIE_KEY', 'some  long value;);

add two slashed to the front of it (this will comment it out)

//define('_COOKIE_KEY  (', 'jsome  long value;);

now paste the old installations

define('_COOKIE_KEY  (', 'jsome  long value;);  below this line

 

Note: any customers registered on new installation passwords will no longer work.

 

hope that helps, el

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...