unica e-shop Posted February 8, 2018 Posted February 8, 2018 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.
0 datakick Posted February 8, 2018 Posted February 8, 2018 What was the last thing you did? Did you install some module, made some changes using ftp?
0 unica e-shop Posted February 8, 2018 Author Posted February 8, 2018 the last thing i did was i deleted the file cookie.php and then downloaded a frech one via ftp
0 unica e-shop Posted February 8, 2018 Author Posted February 8, 2018 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 unica e-shop Posted February 8, 2018 Author Posted February 8, 2018 @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 unica e-shop Posted February 8, 2018 Author Posted February 8, 2018 Problem solved - Again thanks to @datakick :)
0 lesley Posted February 8, 2018 Posted February 8, 2018 @datakick did you just change the cookie encryption method to fix the last error?
0 datakick Posted February 8, 2018 Posted February 8, 2018 @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 lesley Posted February 8, 2018 Posted February 8, 2018 I have come across that before also. What would you think about us detecting that warning and changing it automatically?
0 datakick Posted February 8, 2018 Posted February 8, 2018 @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.
Question
unica e-shop
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
require - [line 32 - index.php]
Thank you.
9 answers to this question
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