Jump to content
thirty bees forum
  • 0

Cant log in - need help fast :)


Question

Posted

Hi,

When i go to my website www.unicae-shop.dk i got following message please help:

[ThirtyBeesException]

Class 'Cookie' not found at line 180 in file config/config.inc.php

  1. $domains = null;
  2. if ($context->shop->domain != $context->shop->domain_ssl) {
  3. $domains = [$context->shop->domain_ssl, $context->shop->domain];
  4. }
  5. $cookie = new Cookie('ps-s'.$context->shop->id, '', $cookielifetime, $domains, false, $forcessl);
  6. }
  7. }
  8. $context->cookie = $cookie;
  9. require - [line 32 - index.php]

      • @copyright 2007-2016 PrestaShop SA
      • @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
      • PrestaShop is an internationally registered trademark & property of PrestaShop SA
    1. */
    2. require(dirname(FILE).'/config/config.inc.php');
    3. Dispatcher::getInstance()->dispatch();

Thank you.

9 answers to this question

Recommended Posts

  • 0
Posted

and i did that, because when i turned on the cache from BO, i couldn't log in, and i read somewhere that a clean fresh cookie.php could solve it but. unfortunately it made it wore.

  • 0
Posted

@datakick thank you for your help, now atleast my website is online but now i cant log in to my backoffice, it says:

Warning: mcryptdecrypt() [function.mcrypt-decrypt]: Received initialization vector of size 7, but size 16 is required for this encryption mode in /var/www/unicae-shop.dk/publichtml/classes/Rijndael.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /var/www/unicae-shop.dk/publichtml/classes/Rijndael.php:102) in /var/www/unicae-shop.dk/publichtml/classes/Cookie.php on line 239

Can anybody help me. Thank you :)

  • 0
Posted

@lesley yes. There was invalid Rijndael key/vector in config file which caused the error. I simply switched ciphering method directly in database:

update <DB_PREFIX>_configuration set value=0 where name = ‘PS_CIPHER_ALGORITHM’

  • 0
Posted

@lesley sure, fallback to another (well configured) encryption mechanism would solve this problem. There should also be some warning in back office to inform administrator that config is not in valid state.

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