lohanc Posted May 5, 2015 Share Posted May 5, 2015 Hi guys. I have a problem with my website. I was adding a new link to CMS and after Save then i got error: [PrestaShop] Fatal error in module Module.php(1224) : eval()'d :Can't use function return value in write context I can;t acces the modules from admin and the site is not working. (in fact only first page doesnt work).www.piscina-ta.ro What can I do? Thanks! Link to comment Share on other sites More sharing options...
tdr170 Posted May 5, 2015 Share Posted May 5, 2015 Try going to MYSQL Database and delete the CMS link you added from the Database and see if you can then access. Link to comment Share on other sites More sharing options...
lohanc Posted May 6, 2015 Author Share Posted May 6, 2015 (edited) After I enable error reporting in PrestaShop 1.6 now on first page I have this(piscina-ta.ro) See bellow.All other webpages are working just fine. THANKS Notice: Use of undefined constant _RIJNDAEL_KEY_ - assumed '_RIJNDAEL_KEY_' in /home/piscindk/public_html/classes/Cookie.php on line 80Notice: Use of undefined constant _RIJNDAEL_IV_ - assumed '_RIJNDAEL_IV_' in /home/piscindk/public_html/classes/Cookie.php on line 80Fatal error: Can't use function return value in write context in /home/piscindk/public_html/modules/blockcmsinfo/blockcmsinfo.php on line 105 ---- line 105 is: if (empty(Tools::getValue('text_'.(int)Configuration::get('PS_LANG_DEFAULT')))) Edited May 6, 2015 by lohanc (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted May 6, 2015 Share Posted May 6, 2015 Do you have define('_RIJNDAEL_KEY_', '.....');define('_RIJNDAEL_IV_', '.....'); in /config/settings.inc.php? Have you upgraded from older version? Link to comment Share on other sites More sharing options...
lohanc Posted May 6, 2015 Author Share Posted May 6, 2015 (edited) in that file i have: <?php ......014-12-22'); if (!defined('_PS_VERSION_')) define('_PS_VERSION_', '1.6.0.9'); I changed host a week ago and no problem until I did an update to the module blockcmsinfo( i think) and than edited the other cms module (adding that new link). Edited May 7, 2015 by lohanc (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted May 6, 2015 Share Posted May 6, 2015 That's it. I have both define() rows at the end of my /config/settings.inc.php. Look at installation or 1-Click upgrade files how to get them by hand. Link to comment Share on other sites More sharing options...
tdr170 Posted May 6, 2015 Share Posted May 6, 2015 Yep that's an issue, in your original post you said this happened after you added CMS links however that would not have deleted the keys from your settings .ini file. Above you posted your settings.ini contents you need to be careful about posting personal info, I would edit that and either change some of the info or delete certain info just to be safe. Should have these two lines at bottom of settings.ini file, hope you have a backup. define('_RIJNDAEL_KEY_', '5Q79vYhf52UP1tKJUDRwU02k6KP72Rl'); define('_RIJNDAEL_IV_', 'VpwhYtGH4TQkt6G7hoYTpM=='); 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