Jump to content

Website Migration Error


Kwash

Recommended Posts

We are doing a new prestashop install on a new server but the problem is when we want to access backend and have our customers use their old passwords it does not work.

 

Besides importing the old database data file into the new database and changing the database name in the /settings.inc.php.

 

I think they is a problem somehow with the Keys. 

Link to comment
Share on other sites

If you want to import or migrate data from old store, you must use the same keys of following in the file /config/config.inc.php

Try to copy from old store of following key values.

 

define('_COOKIE_KEY_', 'yIjDvVdQJf3xuqvbOduL90YoavcfBYLZ6KZE7y8Ua5AkXk1jHm9ImNp7');
define('_COOKIE_IV_', 'DRtX0xJJ');
define('_RIJNDAEL_KEY_', 'iJyi6RzUavpwXdZ36y05fPTobeaZGBSV');
define('_RIJNDAEL_IV_', 'hJeFpkU+VykJxp9RmBnoxg==');
  • Like 1
Link to comment
Share on other sites

Shokinro is right with the answer. Passwords are encrypted by keys and this keys are defined in config.inc.php. If you make a fresh install, this keys are generated randomly. This causes all old passwords do not work anymore since the keys used to ENCRYPT were the ones from the old install and the keys used to DECRYPT are the ones from the new installation.

 

Change topic to SOLVED if the answers helped.

Edited by Scully (see edit history)
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...