samcho Posted January 19, 2015 Share Posted January 19, 2015 Hello, I have the following problem with the categories. When I want to edit or add a category to give me this error: [PrestaShopException]Id must be filled for categories treeat line 97 in file classes/helper/HelperForm.php 92. {93. case 'categories':94. if ($categories)95. {96. if (!isset($params['tree']['id']))97. throw new PrestaShopException('Id must be filled for categories tree');98.99. $tree = new HelperTreeCategories($params['tree']['id'], isset($params['tree']['title']) ? $params['tree']['title'] : null);100.101. if (isset($params['name']))102. $tree->setInputName($params['name']); HelperFormCore->generate - [line 65 - classes/helper/HelperForm.php] HelperFormCore->generateForm - [line 2214 - classes/controller/AdminController.php] - [1 Arguments] AdminControllerCore->renderForm - [line 216 - override/controllers/admin/AdminCategoriesController.php] AdminCategoriesController->renderForm - [line 1822 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 191 - controllers/admin/AdminCategoriesController.php] AdminCategoriesControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 374 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] For a few days ago I tried one free theme, but was not good so I went back to the original. Some modules have been disabled. I do not know how long it takes this problem. The categories I have done a few months. Now it occurred to me to change the name of one of them and there was this problem. Thank you for any help. Link to comment Share on other sites More sharing options...
setzpa Posted February 1, 2015 Share Posted February 1, 2015 (edited) I have same problem. Any idea? Please help me :-( Edited February 1, 2015 by setzpa (see edit history) Link to comment Share on other sites More sharing options...
Libor Zeman Posted February 2, 2015 Share Posted February 2, 2015 i have the same problem Link to comment Share on other sites More sharing options...
bogart Posted February 3, 2015 Share Posted February 3, 2015 I commented the number lines 97 and 98 of classes/helper/HelperForm.php. And works /* if (!isset($params['tree']['id'])) throw new PrestaShopException('Id must be filled for categories tree'); */ Link to comment Share on other sites More sharing options...
Libor Zeman Posted February 3, 2015 Share Posted February 3, 2015 (edited) Re: Bogart Perfect, it is works Edited February 3, 2015 by Libor Zeman (see edit history) Link to comment Share on other sites More sharing options...
RafaelJaller Posted February 5, 2015 Share Posted February 5, 2015 Yes, but it's very disordered. It happens to you? Link to comment Share on other sites More sharing options...
Lola Guillen Posted March 2, 2015 Share Posted March 2, 2015 Algo de ayuda en español y para alguien que no es programadora ? Gracias, LOLA Link to comment Share on other sites More sharing options...
Libor Zeman Posted March 2, 2015 Share Posted March 2, 2015 I just change line (you must use FTP client, download and upload file HelperForm.php, you can find it in classes/helper/HelperForm.php) 96. if (!isset($params['tree']['id'])) 97. throw new PrestaShopException('Id must be filled for categories tree'); to 96. /*if (!isset($params['tree']['id']))*/ 97. /*throw new PrestaShopException('Id must be filled for categories tree');*/ It was help me. Link to comment Share on other sites More sharing options...
michal.horen Posted April 7, 2015 Share Posted April 7, 2015 Hi, how u doin, folks? I have the same problem. I'd like to make the frash reinstall of the presta 1.6 but I'm a afraid the URLs of the categories and product will change. How can I do it without changing it? Thanks for the reply. Chears, Michal Link to comment Share on other sites More sharing options...
GeorgeVE Posted April 20, 2015 Share Posted April 20, 2015 Any news about that? Link to comment Share on other sites More sharing options...
GeorgeVE Posted April 22, 2015 Share Posted April 22, 2015 Maybe it means that everybody is working ok? Link to comment Share on other sites More sharing options...
navarisun Posted September 12, 2015 Share Posted September 12, 2015 commenting the lines didn't help me. instead of error now it gives blank page Link to comment Share on other sites More sharing options...
Edward Vargas Posted September 29, 2015 Share Posted September 29, 2015 Dont working for Me!! Link to comment Share on other sites More sharing options...
Libor Zeman Posted September 30, 2015 Share Posted September 30, 2015 Hello, I have solved problem with category, please try connect Mr. Kricfalusij - [email protected], he help me and not expensive services..... Link to comment Share on other sites More sharing options...
Shashikant N Sharma Posted October 20, 2015 Share Posted October 20, 2015 Any one in our Forum resolved this issue then share here. Link to comment Share on other sites More sharing options...
Edward Vargas Posted October 20, 2015 Share Posted October 20, 2015 Greetings to all. In my case , I have solved this problem by removing a module Background Switcher (http://module-presta.com/background-switcher.html) it was the source of my problem. The module override a AdminCategoryController file. I've just solved ( after much review the code) uninstalled this module. If you have this module installed, please uninstall it. Sorry, by my English. 5 Link to comment Share on other sites More sharing options...
crmalaga Posted November 3, 2015 Share Posted November 3, 2015 Greetings to all. In my case , I have solved this problem by removing a module Background Switcher (http://module-presta.com/background-switcher.html) it was the source of my problem. The module override a AdminCategoryController file. I've just solved ( after much review the code) uninstalled this module. If you have this module installed, please uninstall it. Sorry, by my English. I uninstalled the module and perfect.Thanks 2 Link to comment Share on other sites More sharing options...
calyka2001 Posted December 31, 2015 Share Posted December 31, 2015 Muchas gracias me sirvio de mucho.... Link to comment Share on other sites More sharing options...
jimlee Posted February 4, 2016 Share Posted February 4, 2016 Greetings to all. In my case , I have solved this problem by removing a module Background Switcher (http://module-presta.com/background-switcher.html) it was the source of my problem. The module override a AdminCategoryController file. I've just solved ( after much review the code) uninstalled this module. If you have this module installed, please uninstall it. Sorry, by my English. Genial Gracias Link to comment Share on other sites More sharing options...
meachou Posted March 23, 2016 Share Posted March 23, 2016 Solução Como passei por este problema achei a solução sem precisar desinstalar o modulo Causa é a instalação, mas a solução pra permanecer com ele e não aparecer a mensagem Background Switcher v1.0.0 - por BelVG Tools for making a great first impression on your customers by vivid and meaningful store design Erro abaixo se instalar o modulo acima [PrestaShopException]Id must be filled for categories treeat line 105 in file classes/helper/HelperForm.php 100. break;101.102. case 'categories':103. if ($categories) {104. if (!isset($params['tree']['id'])){105. throw new PrestaShopException('Id must be filled for categories tree');106. }107.108. $tree = new HelperTreeCategories($params['tree']['id'], isset($params['tree']['title']) ? $params['tree']['title'] : null);109.110. 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 2015 - 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] Solução = DESATIVAR TODOS OS OVERRIDES ( COLOCAR SIM ) Link to comment Share on other sites More sharing options...
kalu Posted April 27, 2016 Share Posted April 27, 2016 Greetings to all. In my case , I have solved this problem by removing a module Background Switcher (http://module-presta.com/background-switcher.html) it was the source of my problem. The module override a AdminCategoryController file. I've just solved ( after much review the code) uninstalled this module. If you have this module installed, please uninstall it. Sorry, by my English. Thank's, this have solved my problem. Link to comment Share on other sites More sharing options...
mirllan Posted May 22, 2016 Share Posted May 22, 2016 error o problema al crear o modificar categorias en prestashop Al parecer esto ocurre cuando instalamos el modulo background switche, la solucion es facil quitar o remover este modulo. Link to comment Share on other sites More sharing options...
HerrHohenheim Posted May 28, 2016 Share Posted May 28, 2016 Greetings to all. In my case , I have solved this problem by removing a module Background Switcher (http://module-presta.com/background-switcher.html) it was the source of my problem. The module override a AdminCategoryController file. I've just solved ( after much review the code) uninstalled this module. If you have this module installed, please uninstall it. Sorry, by my English. Thank you very much sir, your advice helped me and saved a lot of my time. thank you. thumbs up. Link to comment Share on other sites More sharing options...
ps3z Posted August 10, 2016 Share Posted August 10, 2016 I uninstalled the module and perfect.Thanks you great!! Link to comment Share on other sites More sharing options...
gera1900 Posted January 4, 2017 Share Posted January 4, 2017 Solução Como passei por este problema achei a solução sem precisar desinstalar o modulo Causa é a instalação, mas a solução pra permanecer com ele e não aparecer a mensagem Background Switcher v1.0.0 - por BelVG Tools for making a great first impression on your customers by vivid and meaningful store design Erro abaixo se instalar o modulo acima [PrestaShopException]Id must be filled for categories tree at line 105 in file classes/helper/HelperForm.php 100. break;101. 102. case 'categories': 103. if ($categories) { 104. if (!isset($params['tree']['id'])){ 105. throw new PrestaShopException('Id must be filled for categories tree'); 106. } 107. 108. $tree = new HelperTreeCategories($params['tree']['id'], isset($params['tree']['title']) ? $params['tree']['title'] : null); 109. 110. 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 2015 - 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] Solução = DESATIVAR TODOS OS OVERRIDES ( COLOCAR SIM ) GRACIAS EXCELENTE APORTE,SOLUCIONADO!!!!!!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
anlito Posted February 24, 2017 Share Posted February 24, 2017 En efecto desinstalando el modulo Background Switche se resuelve por completo el problema de editar las categorias. Link to comment Share on other sites More sharing options...
Luisejo Posted April 25, 2017 Share Posted April 25, 2017 Hi, the solution is uninstall the backgroud switcher module like says in this post: http://luisjordan.net/blog/prestashop/prestashop-solucion-al-problema-id-must-be-filled-for-categories-tree/ 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