Jump to content

[solved 1st part] Prestashop Exception... but now have a new problem...


Recommended Posts

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

-----------------------------------------------------------------------------------------------------------

 

 

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 by Buds (see edit history)
Link to comment
Share on other sites

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

×
×
  • Create New...