Jump to content
Sign in to follow this  
jcl17

erreur en migrant un site hébergeur vers le local

Recommended Posts

Bonjour à tous,

 

je suis débutant sur prestashop et j'ai voulu simplement transféré ma boutique en développement chez mon hébergeur vers mon serveur local.

 

j'ai donc transférer l'ensemble du site et des bases, puis j'ai effectué les modifications dans le fichier settings.inc.php pour pointer en local, idem dans la base.

 

en lançant l'administration du site en local voici le message :

 

[PrestaShopException]

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

2196.                 self::$cache_permissions[$employee->id_profile][$row['id_module']]['configure'] = $row['configure'];
2197.             }
2198.         }
2199.
2200.         if (!isset(self::$cache_permissions[$employee->id_profile][$id_module]))
2201.             throw new PrestaShopException('No access reference in table module_access for id_module '.$id_module.'.');
2202.
2203.         return (bool)self::$cache_permissions[$employee->id_profile][$id_module][$variable];
2204.     }
2205.
2206.     /**
  • ModuleCore::getPermissionStatic - [line 2862 - classes/controller/AdminController.php] - [2 Arguments]
    2856.         $this->modules_list = array();
    2857.         foreach ($all_modules as $module)
    2858.         {
    2859.             $perm = true;
    2860.             if ($module->id)
    2861.                 $perm &= Module::getPermissionStatic($module->id, 'configure');
    2862.             else
    2863.             {
    2864.                 $id_admin_module = Tab::getIdFromClassName('AdminModules');
    2865.                 $access = Profile::getProfileAccess($this->context->employee->id_profile, $id_admin_module);
    2866.                 if (!$access['edit'])
    Argument [0]
    36
    Argument [1]
    configure
  • AdminControllerCore->getModulesList - [line 1995 - classes/controller/AdminController.php] - [1 Arguments]
    1989.                             $this->list_natives_modules[] = (string)$value;
    1990.                         if ($xmlModule->attributes() == 'partner' && $key == 'name')
    1991.                             $this->list_partners_modules[] = (string)$value;
    1992.                     }
    1993.
    1994.         if ($this->getModulesList($this->filter_modules_list))
    1995.         {
    1996.             foreach ($this->modules_list as $key => $module)
    1997.             {
    1998.                 if (in_array($module->name, $this->list_partners_modules))
    1999.                     $this->modules_list[$key]->type = 'addonsPartner';
    Argument [0]
    Array
    (
    [1] => ferbuy
    [2] => paypal
    [3] => desjardins
    [4] => paypalusa
    [5] => pigmbhpaymill
    [6] => moneybookers
    [7] => adyen
    [8] => syspay
    [9] => ogone
    [10] => sofortbanking
    [11] => trustly
    [12] => hipay
    [13] => klikandpay
    [14] => realexredirect
    [15] => payplug
    [16] => authorizeaim
    [17] => kwixo
    [18] => atos
    [19] => firstdata
    [20] => payulatam
    [21] => cmcicpaiement
    [22] => pagseguro
    [23] => paybox
    [24] => lacaixa
    [25] => qiwi
    [26] => worldpay
    [27] => dotpay
    [28] => alliance3
    [29] => cashondelivery
    [30] => bankwire
    [31] => cheque
    )
     
  • AdminControllerCore->renderModulesList - [line 1790 - classes/controller/AdminController.php]
  • AdminControllerCore->initContent - [line 121 - controllers/admin/AdminLoginController.php]
  • AdminLoginControllerCore->initContent - [line 180 - classes/controller/Controller.php]
  • ControllerCore->run - [line 373 - classes/Dispatcher.php]
  • DispatcherCore->dispatch - [line 54 - admin7967/index.php]

 

 

le module associé à l'id 36 dans la base des modules est gridhtml ???

 

merci de me dépanner. :)

JC

Share this post


Link to post
Share on other sites

le problème est résolu, il suffisait d'effacer le cache smarty en local.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More