February 8, 20188 yr 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 $domains = null; if ($context->shop->domain != $context->shop->domain_ssl) { $domains = [$context->shop->domain_ssl, $context->shop->domain]; } $cookie = new Cookie('ps-s'.$context->shop->id, '', $cookielifetime, $domains, false, $forcessl); } } $context->cookie = $cookie; 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 */ require(dirname(FILE).'/config/config.inc.php'); Dispatcher::getInstance()->dispatch(); Thank you.
February 8, 20188 yr What was the last thing you did? Did you install some module, made some changes using ftp?
February 8, 20188 yr Author the last thing i did was i deleted the file cookie.php and then downloaded a frech one via ftp
February 8, 20188 yr Author 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.
February 8, 20188 yr Author @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 :)
February 8, 20188 yr @datakick did you just change the cookie encryption method to fix the last error?
February 8, 20188 yr @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’
February 8, 20188 yr I have come across that before also. What would you think about us detecting that warning and changing it automatically?
February 8, 20188 yr @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