KGI Posted August 1, 2016 Share Posted August 1, 2016 Having recently updated various modules in the back office in the last few days I have just gone to edit one of my catorgories. The edit page no longer opens and this error page and data is shown (please note that all was performing correctly before the various module updates) [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 2031 - 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] Furher - trying to add a new catorgory this error page data is also shown. [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 2031 - 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] Can anyone from PS let me know whats gone wrong or is there a fix for this. Chees Ian Link to comment Share on other sites More sharing options...
rocky Posted August 2, 2016 Share Posted August 2, 2016 From the error message, it seems one of the modules created override/controllers/admin/AdminCategoriesController.php, which is causing the error. The file must not be passing the right parameters when creating the category tree structure on the form. If you edit the file, you should see a comment above the function with the name of the module that created the override. You can then contact the module's developer for support. You can rename the file to AdminCategoriesController.bad or something like that to prevent PrestaShop loading it until you're able to find a solution. Link to comment Share on other sites More sharing options...
KGI Posted August 2, 2016 Author Share Posted August 2, 2016 Hello Thank you, yet again The module is called belvg_backgroundpages it was one of the recommended modules (free) as list on this page https://www.prestashop.com/forums/topic/233442-free-modules-list-only-valuable-and-proven-solutions-31032014/ In total we tested 4 of these - 3 were found not to work or function correctly with 1.6.1.6 (which included this module causing the problem) - and were put back to being unabled. The belvg_backgroundpages module was deleted this moring and we now have full access to our catorgories. The other module we added - was the zompin chat - which seems to be working correctly. As a point of interest - we tried to send you a small donation ( also a week or so ago too) - via your web site link. It seem its all in Dutch and only allows USD $ - as its in dutch could not see where to go directly to make a paypal to paypal payment - only via credit card. PV me to assist on this. cheers Ian Link to comment Share on other sites More sharing options...
rocky Posted August 2, 2016 Share Posted August 2, 2016 Thank you for the donation. Thank you also for letting me know about the problem with my website. It seems adding a Dutch-language PayPal button overwrote all the other languages too. I'll try to fix it now. Link to comment Share on other sites More sharing options...
rocky Posted August 2, 2016 Share Posted August 2, 2016 That post you linked to is from 2013, so many of those modules may be outdated and not compatible with the latest version of PrestaShop. I think it is best to install them in a test environment first before installing them on a live website. 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