marcusasberg Posted July 12, 2016 Share Posted July 12, 2016 (edited) Can someone help me with this? I get this message when i press the modules and token button on the admin page. I get a blank page with this error report. Catchable fatal error: Argument 1 passed to Advancedeucompliance::__construct() must be an instance of Core_Foundation_Database_EntityManager, none given, called in public_html/controllers/admin/AdminModulesController.php on line 1491 and defined in public_html/modules/advancedeucompliance/advancedeucompliance.php on line 58 The code in AdminModulesController, if ($object = new $module->name()) { /** @var Module $object */ $object->runUpgradeModule(); if ((count($errors_module_list = $object->getErrors()))) { $module_errors[] = array('name' => $module->displayName, 'message' => $errors_module_list); } elseif ((count($conf_module_list = $object->getConfirmations()))) { $module_success[] = array('name' => $module->displayName, 'message' => $conf_module_list); } unset($object); } The code in advancedeucompliance.php, public function __construct(Core_Foundation_Database_EntityManager $entity_manager, Core_Foundation_FileSystem_FileSystem $fs, Core_Business_Email_EmailLister $email) { $this->name = 'advancedeucompliance'; $this->tab = 'administration'; $this->version = '2.0.2'; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->bootstrap = true; parent::__construct(); /* Register dependencies to module */ $this->entity_manager = $entity_manager; $this->filesystem = $fs; $this->emails = $email; $this->displayName = $this->l('Advanced EU Compliance'); $this->description = $this->l('This module helps European merchants comply with applicable e-commerce laws.'); $this->confirmUninstall = $this->l('Are you sure you want to uninstall this module?'); /* Init errors var */ $this->_errors = array(); } Edited July 12, 2016 by marcusasberg (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted September 7, 2016 Share Posted September 7, 2016 What is your PrestaShop version? 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