Swifer Posted July 5, 2021 Share Posted July 5, 2021 Bonjour, J'essaye d'aller sur la page de configuration du module Navigation à facettes et j'ai ce message d'erreur : [PrestaShopException] Root category must be an integer value at line 246 in file classes/helper/HelperTreeCategories.php 241. } 242. 243. public function setRootCategory($value) 244. { 245. if (!Validate::isInt($value)) { 246. throw new PrestaShopException('Root category must be an integer value'); 247. } 248. 249. $this->_root_category = $value; 250. 251. return $this; HelperTreeCategoriesCore->setRootCategory - [line 751 - modules/ps_facetedsearch/ps_facetedsearch.php] - [1 Arguments] 746. $helper->identifier = 'id_layered_filter'; 747. $this->context->smarty->assign('asso_shops', $helper->renderAssoShop()); 748. } 749. 750. $treeCategoriesHelper = new HelperTreeCategories('categories-treeview'); 751. $treeCategoriesHelper->setRootCategory((Shop::getContext() == Shop::CONTEXT_SHOP ? Category::getRootCategory()->id_category : 0)) 752. ->setUseCheckBox(true); 753. 754. $moduleUrl = Tools::getProtocol(Tools::usingSecureMode()) . $_SERVER['HTTP_HOST'] . $this->getPathUri(); 755. 756. if (method_exists($this->context->controller, 'addJquery')) { Ps_Facetedsearch->getContent - [line 907 - controllers/admin/AdminModulesController.php] 902. 903. if (count($this->errors)) { 904. continue; 905. } 906. // Get the return value of current method 907. $echo = $module->{$method}(); 908. 909. // After a successful install of a single module that has a configuration method, to the configuration page 910. if ($key == 'install' && $echo === true && strpos(Tools::getValue('install'), '|') === false && method_exists($module, 'getContent')) { 911. Tools::redirectAdmin(self::$currentIndex . '&token=' . $this->token . '&configure=' . $module->name . '&conf=12'); 912. } AdminModulesControllerCore->postProcessCallback - [line 1167 - controllers/admin/AdminModulesController.php] 1162. } 1163. } 1164. 1165. // Call appropriate module callback 1166. if (!isset($ppm_return)) { 1167. $this->postProcessCallback(); 1168. } 1169. 1170. if (Tools::getValue('generate_rtl') && Tools::getValue('configure') != '') { 1171. Language::getRtlStylesheetProcessor() 1172. ->setProcessPaths([ AdminModulesControllerCore->postProcess - [line 295 - classes/controller/Controller.php] 290. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { 291. $this->setMedia(); 292. } 293. 294. // postProcess handles ajaxProcess 295. $this->postProcess(); 296. 297. if (!empty($this->redirect_after)) { 298. $this->redirect(); 299. } 300. ControllerCore->run - [line 518 - classes/Dispatcher.php] 513. if (isset($params_hook_action_dispatcher)) { 514. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); 515. } 516. 517. // Running controller 518. $controller->run(); 519. 520. // Execute hook dispatcher after 521. if (isset($params_hook_action_dispatcher)) { 522. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher); 523. } DispatcherCore->dispatch - [line 93 - admin/index.php] 88. if (!headers_sent()) { 89. header('Content-Type: text/html; charset=utf-8'); 90. } 91. 92. // Prepare and trigger LEGACY admin dispatcher 93. Dispatcher::getInstance()->dispatch(); 94. } Je suis sur prestashop version 1.7.7.3 Link to comment Share on other sites More sharing options...
doekia Posted July 6, 2021 Share Posted July 6, 2021 A priori une migration qui a planté. Vérifiez vos valeurs dans la table de configuration PS_ROOT_CATEGORY PS_HOME_CATEGORY Vérifiviez également la valeur id_category dans ps_shop Link to comment Share on other sites More sharing options...
Swifer Posted July 6, 2021 Author Share Posted July 6, 2021 4 hours ago, doekia said: A priori une migration qui a planté. Vérifiez vos valeurs dans la table de configuration PS_ROOT_CATEGORY PS_HOME_CATEGORY Vérifiviez également la valeur id_category dans ps_shop Bonjour, Merci pour la réponse, est-ce bien là ? Link to comment Share on other sites More sharing options...
Shonen Posted July 7, 2021 Share Posted July 7, 2021 Salut, C'est plutôt par ici : ps_configuration Link to comment Share on other sites More sharing options...
Swifer Posted July 7, 2021 Author Share Posted July 7, 2021 9 hours ago, Shonen said: Salut, C'est plutôt par ici : ps_configuration Ok merci ! J'ai donc teléchargé le fichier SQL, au niveau PS_ROOT_CATEGORY j'ai ça : (242, NULL, NULL, 'PS_ROOT_CATEGORY', '1', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), et PS_HOME_CATEGORY (243, NULL, NULL, 'PS_HOME_CATEGORY', '2', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), et voici ce que j'ai dans id_category et ps_shop Link to comment Share on other sites More sharing options...
Swifer Posted July 20, 2021 Author Share Posted July 20, 2021 Si quelqu'un a une solution toujours prenneur ! 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