Jump to content

can't open module section - /classes/module/Module.php(1246) : eval()'d code: ERROR


bedoor

Recommended Posts

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

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

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

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