Jump to content
  • 0

Nowy pracownik i problem z zalogowaniem


piotr0

Question

witam, próbuję dodać pracownika do mojego sklepu niestety po dodaniu i próbie zalogowania pojawia się błąd: Zna ktoś rozwiązanie?

 

 

 

[PrestaShopException]

No access reference in table module_access for id_module 63.
at line 2264 in file classes/module/Module.php

2259. 				self::$cache_permissions[$employee->id_profile][$row['id_module']]['uninstall'] = $row['uninstall'];2260. 			}2261. 		}2262. 2263. 		if (!isset(self::$cache_permissions[$employee->id_profile][$id_module]))2264. 			throw new PrestaShopException('No access reference in table module_access for id_module '.$id_module.'.');2265. 2266. 		return (bool)self::$cache_permissions[$employee->id_profile][$id_module][$variable];2267. 	}2268. 2269. 	/**

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

jak sama nazwa wskazuje nie sa okreslone uprawnienia dla pracownika (tak/nie) dla modulu z id 63 

id sprawdzisz w tabeli ps_module - bedziesz wiedzial co to za modul

uprawnienia ustanawiasz w administracja -> uprawnienia -> profil

Link to comment
Share on other sites

  • 0
Presta najnowsza, wcześniej była przenoszona cała danych ale to chyba nie ma znaczenia w tym przypadku.

 

Dokładnie pojawia się taki błąd:

 

Quote

[PrestaShopException]

 

No access reference in table module_access for id_module 63.

at line 2264 in file classes/module/Module.php

2259. self::$cache_permissions[$employee->id_profile][$row['id_module']]['uninstall'] = $row['uninstall'];

2260. }

2261. }

2262. 

2263. if (!isset(self::$cache_permissions[$employee->id_profile][$id_module]))

2264. throw new PrestaShopException('No access reference in table module_access for id_module '.$id_module.'.');

2265. 

2266. return (bool)self::$cache_permissions[$employee->id_profile][$id_module][$variable];

2267. }

2268. 

2269. /**

ModuleCore::getPermissionStatic - [line 488 - classes/Hook.php] - [3 Arguments]

483. 'authentication' => 'auth',

484. 'productscomparison' => 'compare'

485. );

486. if (isset($matching_name[$controller]) && in_array($matching_name[$controller], $exceptions))

487. continue;

488. if (Validate::isLoadedObject($context->employee) && !Module::getPermissionStatic($array['id_module'], 'view', $context->employee))

489. continue;

490. }

491.

492. if (!($moduleInstance = Module::getInstanceByName($array['module'])))

493. continue;

HookCore::exec - [line 2438 - classes/controller/AdminController.php] - [2 Arguments]

2433. 'host_mode' => defined('_PS_HOST_MODE_') ? 1 : 0,

2434. 'stock_management' => (int)Configuration::get('PS_STOCK_MANAGEMENT')

2435. ));

2436. 

2437. if ($this->display_header)

2438. $this->context->smarty->assign('displayBackOfficeHeader', Hook::exec('displayBackOfficeHeader', array()));

2439. 

2440. $this->context->smarty->assign(array(

2441. 'displayBackOfficeTop' => Hook::exec('displayBackOfficeTop', array()),

2442. 'submit_form_ajax' => (int)Tools::getValue('submitFormAjax')

2443. ));

AdminControllerCore->init - [line 163 - classes/controller/Controller.php]

158. /**

159. * Start controller process (this method shouldn't be overriden !)

160. */

161. public function run()

162. {

163. $this->init();

164. if ($this->checkAccess())

165. {

166. // setMedia MUST be called before postProcess

167. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))

168. $this->setMedia();

ControllerCore->run - [line 374 - classes/Dispatcher.php]

369. // Execute hook dispatcher

370. if (isset($params_hook_action_dispatcher))

371. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);

372. 

373. // Running controller

374. $controller->run();

375. }

376. catch (PrestaShopException $e)

377. {

378. $e->displayMessage();

379. }

DispatcherCore->dispatch - [line 54 - admin/index.php]

49. $_POST['controller'] = strtolower($_POST['tab']);

50. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))

51. $_REQUEST['controller'] = strtolower($_REQUEST['tab']);

52. 

53. // Prepare and trigger admin dispatcher

54. Dispatcher::getInstance()->dispatch();

 

 

    DispatcherCore->dispatch - [line 28 - index.php]

Edited by piotr0 (see edit history)
Link to comment
Share on other sites

  • 0

po pierwsze przenoszac baze danych i wrzucajac ja do nowej istalacji jak najbardziej, wlasnie w przypadku logowania pracownika ma to jak nawiejksze znaczenie..... czyatales o kodowaniu MD5 hasla pracownika z polaczeniem KEY?

 

jestes pewny, ze przenoszac baze przerzuciles wszystkie tabele porpawnie? bo wyglada to tak, jakby w tabeli employee widnial sprzedawca ale nie widnial dla jego id odpowiednik w access

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