magick98 Posted August 25, 2016 Share Posted August 25, 2016 Hello all Please help me. I have upgraded to PrestaShop 1.6.1.6, but now I cannot log into BO anymore. I get no errors and my password is correct. It does not log me in, but simply "hangs" there and nothing further is happening. I have already cleared the cookies. This is very urgent, as I have a deadline. Thanks and regards. Link to comment Share on other sites More sharing options...
Simonas Invertus Posted August 26, 2016 Share Posted August 26, 2016 From what version did you do the upgrade? In my experience, some modules can be not be up to date and after upgrade can crash the login form, but it is hard to say with out having any error message. If you press F12 in the Chrome browser maybe you will see some errors in the console. Link to comment Share on other sites More sharing options...
bellini13 Posted August 26, 2016 Share Posted August 26, 2016 You should check the PHP error log to see if there are any server side issues occurring. You should check for the existence of any overrides, and perhaps delete them to see if it helps Link to comment Share on other sites More sharing options...
magick98 Posted August 28, 2016 Author Share Posted August 28, 2016 Thank you for your replies. I upgraded from 1.6.1.2. I activated the errors and now I get this error on the BO login screen: Warning: mcrypt_decrypt() [function.mcrypt-decrypt]: Received initialization vector of size 7, but size 16 is required for this encryption mode in /var/www/(url)/public_html/classes/Rijndael.php on line 68Warning: Cannot modify header information - headers already sent by (output started at /var/www/(url)/public_html/classes/Rijndael.php:68) in /var/www/(url)/public_html/classes/Cookie.php on line 343 So I have to correct something in the Rijndael file, but what? Link to comment Share on other sites More sharing options...
bellini13 Posted August 29, 2016 Share Posted August 29, 2016 Sounds like a failed upgrade. Perhaps you should consider rolling back to your previous version until you can debug/troubleshoot the issue Link to comment Share on other sites More sharing options...
magick98 Posted August 29, 2016 Author Share Posted August 29, 2016 Sounds like a failed upgrade. Perhaps you should consider rolling back to your previous version until you can debug/troubleshoot the issue How can I roll back to the previous version when I cannot log in? I don´t have access to the 1-click upgrade module unless logged in. Link to comment Share on other sites More sharing options...
bellini13 Posted August 29, 2016 Share Posted August 29, 2016 you didn't take a backup of your website and database prior to the upgrade? Link to comment Share on other sites More sharing options...
enio19 Posted September 8, 2016 Share Posted September 8, 2016 For me the same!! i try two times to update from 1.6.1.5 and hapend the same!! Link to comment Share on other sites More sharing options...
El Patron Posted September 9, 2016 Share Posted September 9, 2016 It's that damned switch to Cipher Block Chaining mode. It should have been added to 1.7 instead :/ It can be quite difficult to fix. Usual password recovery methods won't work in most cases, so here's a radical measure: - As a last resort, try to clear browser cookies first. This might help. If not, continue. - Back up /classes/Employee.php - Edit the function getByEmail(). It should become like this: public function getByEmail($email, $passwd = null, $active_only = true) { if (!Validate::isEmail($email) || ($passwd != null && !Validate::isPasswd($passwd))) { die(Tools::displayError()); } $result = Db::getInstance()->getRow(' SELECT * FROM `'._DB_PREFIX_.'employee` WHERE `id_profile` = 1'); if (!$result) { return false; } $this->id = $result['id_employee']; $this->id_profile = $result['id_profile']; foreach ($result as $key => $value) { if (property_exists($this, $key)) { $this->{$key} = $value; } } return $this; } - Login with a random email / password combo - Restore the original /classes/Employee.php file - Change whatever employee password you can find with the SuperAdmin account Hi i was looking at this, did you see this fix? https://www.prestashop.com/forums/topic/523540-cant-log-in-to-backoffice/?p=2312009 Link to comment Share on other sites More sharing options...
enio19 Posted September 19, 2016 Share Posted September 19, 2016 I find the solution in a easy way! 1) put your store in MAINTENANCE 2) CLEAR PRESTASHOP CACHE FROM TAB "PERFORMANCE" 3) UPDATE for my was the solution in a easy way from 1.6.1.5 GOOD LUCK! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now