Purechoice Posted January 22, 2019 Share Posted January 22, 2019 I went to install the mailchip module I have 1.6.1 . I got this error and now get it everytime i try to get into modules. Anyone? [PrestaShop] Fatal error in module file :/home/purechoi/public_html/classes/module/Module.php(1361) : eval()'d code:Can't use function return value in write context Link to comment Share on other sites More sharing options...
Purechoice Posted January 22, 2019 Author Share Posted January 22, 2019 this is the lines from modules.php . Any idea whats wrong? // If (false) is a trick to not load the class with "eval". // This way require_once will works correctly if (eval('if (false){ '.$file."\n".' }') !== false) { require_once(_PS_MODULE_DIR_.$module.'/'.$module.'.php'); } else { $errors[] = sprintf(Tools::displayError('%1$s (parse error in %2$s)'), $module, substr($file_path, strlen(_PS_ROOT_DIR_))); } } Link to comment Share on other sites More sharing options...
Purechoice Posted January 22, 2019 Author Share Posted January 22, 2019 Solved- I was using PHP v5.4 which always worked. But for some reason it stopped working, I went to PHP 7.0 and now works. 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