momopo Posted January 22, 2017 Share Posted January 22, 2017 (edited) Bonjour à tous, J'étais tranquillement en train d'importer des catégories et voici que lorsque je clique sur "Catégories" j'ai ce message en popup (voir popup.png). Notice à la ligne 223 du fichier /home/raidsequ/www/shop_/controllers/admin/AdminCategoriesController.php [8] Undefined variable: count_categories_without_parent Je peux accéder à la page Catégorie mais à l'importation après "Importer les données CSV" j'ai une page d'erreur (voir prestashopexception.png). [PrestaShopException] Parent category does not exist at line 374 in file classes/Category.php 368. if (!$this->id_parent) 369. return 0; 370. 371. $parent_category = new Category((int)$this->id_parent); 372. if (!Validate::isLoadedObject($parent_category)) 373. throw new PrestaShopException('Parent category does not exist'); 374. return $parent_category->level_depth + 1; 375. } 376. 377. /** 378. * Re-calculate the values of all branches of the nested tree CategoryCore->calcLevelDepth - [line 150 - classes/Category.php] CategoryCore->add - [line 1183 - controllers/admin/AdminImportController.php] AdminImportControllerCore->categoryImport - [line 3260 - controllers/admin/AdminImportController.php] AdminImportControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/ind Merci à vous pour votre aide... Edited January 22, 2017 by momopo (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted January 22, 2017 Share Posted January 22, 2017 Il parait évident sur la dernière erreur que ton arbre des catégories est mal en point. Il faut corriger celà dans la bdd Link to comment Share on other sites More sharing options...
momopo Posted January 22, 2017 Author Share Posted January 22, 2017 Oki. Merci à toi, je vais voir ça et supprimer toutes mes catégories 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