morgan0 Posted October 14, 2016 Share Posted October 14, 2016 Buenas de repente al tratar de desactivar el modulo retome el contacto con sus clientes, me ha pasado esto: Y ya no me deja entrar a modulos. Como puedo solucionarlo. Gracias [PrestaShopException]No access reference in table module_access for id_module 175.at line 2538 in file classes/module/Module.php 2533. self::$cache_permissions[$employee->id_profile][$row['id_module']]['uninstall'] = $row['uninstall'];2534. }2535. }2536.2537. if (!isset(self::$cache_permissions[$employee->id_profile][$id_module])) {2538. throw new PrestaShopException('No access reference in table module_access for id_module '.$id_module.'.');2539. }2540.2541. return (bool)self::$cache_permissions[$employee->id_profile][$id_module][$variable];2542. }2543. ModuleCore::getPermissionStatic - [line 1158 - controllers/admin/AdminModulesController.php] - [2 Arguments]1153. // Check add permissions, if add permissions not set, addons modules and uninstalled modules will not be displayed1154. if ($this->tabAccess['add'] !== '1' && isset($module->type) && ($module->type != 'addonsNative' || $module->type != 'addonsBought')) {1155. unset($modules[$k]);1156. } elseif ($this->tabAccess['add'] !== '1' && (!isset($module->id) || $module->id < 1)) {1157. unset($modules[$k]);1158. } elseif ($module->id && !Module::getPermissionStatic($module->id, 'view') && !Module::getPermissionStatic($module->id, 'configure')) {1159. unset($modules[$k]);1160. } else {1161. // Init serial and modules author list1162. if (!in_array($module->name, $this->list_natives_modules)) {1163. $this->serial_modules .= $module->name.' '.$module->version.'-'.($module->active ? 'a' : 'i')."\n"; AdminModulesControllerCore->initModulesList - [line 1443 - controllers/admin/AdminModulesController.php] - [1 Arguments] AdminModulesControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 58 - admin/index.php]53. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab'])) {54. $_REQUEST['controller'] = strtolower($_REQUEST['tab']);55. }56.57. // Prepare and trigger admin dispatcher58. Dispatcher::getInstance()->dispatch(); Link to comment Share on other sites More sharing options...
joseantgv Posted October 18, 2016 Share Posted October 18, 2016 Buenas de repente al tratar de desactivar el modulo retome el contacto con sus clientes, me ha pasado esto: Y ya no me deja entrar a modulos. Como puedo solucionarlo. Gracias[PrestaShopException]No access reference in table module_access for id_module 175. at line 2538 in file classes/module/Module.php 2533. self::$cache_permissions[$employee->id_profile][$row['id_module']]['uninstall'] = $row['uninstall'];2534. } 2535. } 2536. 2537. if (!isset(self::$cache_permissions[$employee->id_profile][$id_module])) { 2538. throw new PrestaShopException('No access reference in table module_access for id_module '.$id_module.'.'); 2539. } 2540. 2541. return (bool)self::$cache_permissions[$employee->id_profile][$id_module][$variable]; 2542. } 2543. ModuleCore::getPermissionStatic - [line 1158 - controllers/admin/AdminModulesController.php] - [2 Arguments]1153. // Check add permissions, if add permissions not set, addons modules and uninstalled modules will not be displayed1154. if ($this->tabAccess['add'] !== '1' && isset($module->type) && ($module->type != 'addonsNative' || $module->type != 'addonsBought')) { 1155. unset($modules[$k]); 1156. } elseif ($this->tabAccess['add'] !== '1' && (!isset($module->id) || $module->id < 1)) { 1157. unset($modules[$k]); 1158. } elseif ($module->id && !Module::getPermissionStatic($module->id, 'view') && !Module::getPermissionStatic($module->id, 'configure')) { 1159. unset($modules[$k]); 1160. } else { 1161. // Init serial and modules author list 1162. if (!in_array($module->name, $this->list_natives_modules)) { 1163. $this->serial_modules .= $module->name.' '.$module->version.'-'.($module->active ? 'a' : 'i')."\n"; AdminModulesControllerCore->initModulesList - [line 1443 - controllers/admin/AdminModulesController.php] - [1 Arguments] AdminModulesControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 58 - admin/index.php]53. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab'])) {54. $_REQUEST['controller'] = strtolower($_REQUEST['tab']); 55. } 56. 57. // Prepare and trigger admin dispatcher 58. Dispatcher::getInstance()->dispatch(); Puede ser que el módulo se haya quedado sin permisos? Revisa la tabla ps_module_access. 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