Jump to content

Modules are not working


Recommended Posts

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

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 80

Notice: Use of undefined constant _RIJNDAEL_IV_ - assumed '_RIJNDAEL_IV_' in /home/piscindk/public_html/classes/Cookie.php on line 80

Fatal 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 by lohanc (see edit history)
Link to comment
Share on other sites

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 by lohanc (see edit history)
Link to comment
Share on other sites

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

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