Buds Posted July 26, 2013 Share Posted July 26, 2013 (edited) PS 1.5.4.1 Hello, I'd really appreciate any input anyone could provide... I have found a few posts regarding this topic but they either did not help or were in a different language. All of a sudden, upon trying to update products via csv import, I am getting the following error page: -------------------------------------------------------------------------------------------------- [PrestaShopException] Parent category does not exist at line 377 in file classes/Category.php 371. if (!$this->id_parent) 372. return 0; 373. 374. $parent_category = new Category((int)$this->id_parent); 375. if (!Validate::isLoadedObject($parent_category)) 376. throw new PrestaShopException('Parent category does not exist'); 377. return $parent_category->level_depth + 1; 378. } 379. 380. /** 381. * Re-calculate the values of all branches of the nested tree CategoryCore->calcLevelDepth - [line 156 - classes/Category.php] - [0 Argument] CategoryCore->add - [line 1182 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->productImport - [line 2722 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin123/index.php] - [0 Argument] ----------------------------------------------------------------------------------------------------------- I have updated my products this way many times, but this error suddenly just popped up yesterday. A few minutes prior to the error, I first imported new products and it worked fine. After the error, I tried to re-import the categories via csv just to see if that would clear things up, but I got the same error then, too. I tried re-copying the above mentioned files to the server from backups, but no change. If anyone is willing to take their time to help, it would be greatly appreciated. Thanks -Bud Edited July 27, 2013 by Buds (see edit history) Link to comment Share on other sites More sharing options...
Buds Posted July 27, 2013 Author Share Posted July 27, 2013 Ok, I seem to have fixed this particular issue by clicking 'configure' for the 'Categories' module and then I just clicked save when it opened and the error I was getting went away... strange. But now I noticed a new problem with the "Filter by Category" ticker under 'Products' in the back office. When I click 1 particular category, it shows that there are no products... but there are about 7000 products in that category, and they show just fine when the filter is not checked. Does anyone have any advice on this issue?? Thanks for your time. Link to comment Share on other sites More sharing options...
Recommended Posts