Jump to content

Upgrade to 1.6.1.6 - Now BO login is "hanging"


Recommended Posts

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

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 68

Warning: 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

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

  • 2 weeks later...

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

  • 2 weeks later...

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...