Hello, I would like the help of someone, I have this problem for days and there is no research that solves this.
I'm testing a product import tool in Prestashop, and after performing some tests I've deleted the products, but this time I decided to delete the categories and consequently delete the products (Prestashop provided this option), but after I did, when I access the panel product page I get the following error:
[PrestaShopException]
Root category must be an integer value
at line 212 in file classes/helper/HelperTreeCategories.php
207. }
208.
209. public function setRootCategory($value)
210. {
211. if (!Validate::isInt($value)) {
212. throw new PrestaShopException('Root category must be an integer value');
213. }
214.
215. $this->_root_category = $value;
216. return $this;
217. }
HelperTreeCategoriesCore->setRootCategory - [line 2504 - controllers/admin/AdminProductsController.php] - [1 Arguments]
AdminProductsControllerCore->initContent - [line 189 - classes/controller/Controller.php]
ControllerCore->run - [line 367 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 58 - admin/index.php]
IhavealreadylookedatseveralsitesontheinternetbuttheproblemisnoteasilysolvedjustbycreatingaRootcategory,orIamdoingthesamewrongly.
I'm using Prestashop 1.6.1.3