sabin Posted February 20, 2017 Share Posted February 20, 2017 Hello all, After updating from 1.6.1.9 to 1.6.1.11 I have a fatal error: [PrestaShop] Fatal error in module file: ***** / classes / module / Module.php (1361): eval () 'd code: Can not use function return value in write context I have removed productcomments forlder but still the same error. Does anyone else have any idea of what I can do? Thanks! Link to comment Share on other sites More sharing options...
Knowband Plugins Posted February 21, 2017 Share Posted February 21, 2017 Hi, The error is because you are calling function inside function like empty(trim($name)). So you will have to split that line into something like the following: $name = trim($name). empty($name). Link to comment Share on other sites More sharing options...
trueaquaponics@gmail Posted April 26, 2018 Share Posted April 26, 2018 Knowband Plugins, where would one change that bit of code? Link to comment Share on other sites More sharing options...
bellini13 Posted April 27, 2018 Share Posted April 27, 2018 On 2/20/2017 at 3:01 AM, sabin said: Fatal error in module file: ***** / classes / module / Module.php (1361): eval () 'd code: start by locating line 1361 in the file stated in the error message. then tell us what that line of code is ... Link to comment Share on other sites More sharing options...
toolmat Posted May 21, 2018 Share Posted May 21, 2018 Hi, i have the same problem. Tried installing Mail Chimp on Prestashop 1.6.1.2. and now receive the same error message at line 1361: if anyone can advise or point me in the right direction: Thanks. // If (false) is a trick to not load the class with "eval". // This way require_once will works correctlyLine 1361 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...
toolmat Posted May 22, 2018 Share Posted May 22, 2018 Please ignore my previous post, my problem is now sorted. Removed the recently added Mail chimp module through ftp. 1 Link to comment Share on other sites More sharing options...
eeboe Posted February 2, 2021 Share Posted February 2, 2021 THKS Toolmat!! You saved the day! Removing the mailchimp module is the solution! Link to comment Share on other sites More sharing options...
ablink81 Posted September 14, 2023 Share Posted September 14, 2023 Encore merci !! Suppression du dossier du module dans /modules par FTP et hop, plus d'erreur 😀 1 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