Paulsmithhome Posted August 20, 2016 Share Posted August 20, 2016 Hi I have my shop running for a while now, I needed to add some new categories but when I click add new category in bo i get an error script, I have no idea what i have done wrong, any help would be appreciated. here is the error [PrestaShopException]Id must be filled for categories treeat line 104 in file classes/helper/HelperForm.php 99. break;100. 101. case 'categories':102. if ($categories) {103. if (!isset($params['tree']['id'])) {104. throw new PrestaShopException('Id must be filled for categories tree');105. }106. 107. $tree = new HelperTreeCategories($params['tree']['id'], isset($params['tree']['title']) ? $params['tree']['title'] : null);108. 109. if (isset($params['name'])) { HelperFormCore->generate - [line 65 - classes/helper/HelperForm.php] HelperFormCore->generateForm - [line 246 - override/controllers/admin/AdminCategoriesController.php] - [1 Arguments] AdminCategoriesController->renderForm - [line 2022 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 199 - controllers/admin/AdminCategoriesController.php] AdminCategoriesControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 58 - admin/index.php] Link to comment Share on other sites More sharing options...
vekia Posted August 20, 2016 Share Posted August 20, 2016 your shop uses override override/controllers/admin/AdminCategoriesController.php and problem you've got is related to this override. overrides usually are a part of some custom modules that changes the way of how shop core works. due to this - it will be hard to help because we dont know what module you uses and what code this override contains Link to comment Share on other sites More sharing options...
salim72562 Posted September 20, 2016 Share Posted September 20, 2016 (edited) same problem for me also. Thanks to Vekia, i searched and tried to disable those recent modules. found that black sheep ... " Background Switcher " once i disable this module , problem solved Please Note: I downloaded that module from Vekia's free modules list in a comment in a forum thread. - https://www.prestashop.com/forums/topic/233442-free-modules-list-only-valuable-and-proven-solutions-7sept2016/?p=1148364&do=findComment&comment=1148364 Edited September 20, 2016 by salim72562 (see edit history) 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