Jump to content

webservice create shop catalog error


Recommended Posts

Hi there,


i would like to inform you that calling the webservice to create shops in a multistore case, results in an error when clicking on catalog after the shop is created as selected. The error that i got is  :



Root category must be an integer value
at line 212 in file classes/helper/HelperTreeCategories.php

207.     }
209.     public function setRootCategory($value)
210.     {
211.         if (!Validate::isInt($value)) {
212.             throw new PrestaShopException('Root category must be an integer value');
213.         }
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]



Also minor issue that does not display the default dashboard as when creating an additional store via prestashop's backoffice.


Kind Regards,



Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...