bedoor Posted April 20, 2018 Share Posted April 20, 2018 Hello, this is my first time posting here. I would like to know why I am not able to open and navigate through my shop modules ? I did not play with any code ! it is suddenly giving me this error: [PrestaShop] Fatal error in module file :/public_html/Prestashop/classes/module/Module.php(1246) : eval()'d code:Can't use function return value in write context Thank you, Link to comment Share on other sites More sharing options...
selectshop.at Posted April 20, 2018 Share Posted April 20, 2018 Prestashop version ? php-version in use ? Most of times by upgrading your php-version this error will disappear. You activated also debug mode and read possible other errors you are having ? https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ 1 Link to comment Share on other sites More sharing options...
bedoor Posted April 20, 2018 Author Share Posted April 20, 2018 php version: 5.4.45 prestashop version: 1.6.0.14 and yes I activated the debug mode and got the following: Fatal error: Can't use function return value in write context in /home/mydomine/public_html/Prestashop/classes/module/Module.php(1246) : eval()'d code on line 95[PrestaShop] Fatal error in module file :/home/mydomine/public_html/Prestashop/classes/module/Module.php(1246) : eval()'d code:Can't use function return value in write context Link to comment Share on other sites More sharing options...
bedoor Posted April 21, 2018 Author Share Posted April 21, 2018 I would like to thank you for your support. I updated my php version to 5.6 and it worked Link to comment Share on other sites More sharing options...
selectshop.at Posted April 21, 2018 Share Posted April 21, 2018 One of the modules you installed is causing the problem. Try this: You need to edit on FTP the file classes/module/Module.php. at the end of __construct() function add this, about line 300 var_dump($this->name); Find this: } $this->local_path = _PS_MODULE_DIR_.$this->name.'/'; } } and add the var_dump. The lines should be than: } $this->local_path = _PS_MODULE_DIR_.$this->name.'/'; } var_dump($this->name); } You will find these lines before block: /** * Insert module into datable save the file back to your FTP at same place and then try to open modules > modules section The last module name you will see there is the module that have a bug. This module should be debuged or deinstalled. Link to comment Share on other sites More sharing options...
selectshop.at Posted April 21, 2018 Share Posted April 21, 2018 OK. The solution I've just added is for there who are using php 5.4. and having the same problem. 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