ferchache Posted September 25, 2016 Share Posted September 25, 2016 Buenos días. Llevo muy poco moneando con prestashop y estoy teniendo un problema con las categorias. Me aparece éste problema: [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]60. }61. 62. public function generateForm($fields_form)63. {64. $this->fields_form = $fields_form;65. return $this->generate();66. }67. 68. public function generate()69. {70. $this->tpl = $this->createTemplate($this->base_tpl); HelperFormCore->generateForm - [line 246 - override/controllers/admin/AdminCategoriesController.php] - [1 Arguments]241. } else {242. $helper->tpl_vars['back'] = Tools::safeOutput(Tools::getValue(self::$currentIndex . '&token=' . $this->token));243. }244. }245. $helper->override_folder = 'override/'; //BELVG246. $form = $helper->generateForm($this->fields_form);247. return $form;248. }249. }250. /*251. * module: belvg_backgroundpages AdminCategoriesController->renderForm - [line 2031 - classes/controller/AdminController.php]2026. if ($this->display == 'edit' || $this->display == 'add') {2027. if (!$this->loadObject(true)) {2028. return;2029. }2030. 2031. $this->content .= $this->renderForm();2032. } elseif ($this->display == 'view') {2033. // Some controllers use the view action without an object2034. if ($this->className) {2035. $this->loadObject(true);2036. } AdminControllerCore->initContent - [line 199 - controllers/admin/AdminCategoriesController.php]194. 'url_delete' => htmlentities($_SERVER['REQUEST_URI']),195. 'boxes' => $this->boxes,196. ));197. }198. 199. parent::initContent();200. }201. 202. public function setMedia()203. {204. parent::setMedia(); AdminCategoriesControllerCore->initContent - [line 189 - classes/controller/Controller.php]184. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {185. $this->initHeader();186. }187. 188. if ($this->viewAccess()) {189. $this->initContent();190. } else {191. $this->errors[] = Tools::displayError('Access denied.');192. }193. 194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) { ControllerCore->run - [line 367 - classes/Dispatcher.php]362. if (isset($params_hook_action_dispatcher)) {363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);364. }365. 366. // Running controller367. $controller->run();368. } catch (PrestaShopException $e) {369. $e->displayMessage();370. }371. }372. DispatcherCore->dispatch - [line 58 - admin/index.php]53. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab'])) {54. $_REQUEST['controller'] = strtolower($_REQUEST['tab']);55. }56. 57. // Prepare and trigger admin dispatcher58. Dispatcher::getInstance()->dispatch(); No tengo ni idea que puede ser. Estoy comprobando (al menos el primer mensaje) y si aparece la linea en el archivo. Si alguien me puede decir... Gracias pd: pido disculpas si aqui no va el mensaje, es el primer post que hago y no tengo ni idea de nada. saludos. Link to comment Share on other sites More sharing options...
Luisejo Posted April 25, 2017 Share Posted April 25, 2017 Hola, aquí tenemos la solución a lo que comentas: 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...
Luisejo Posted February 27, 2018 Share Posted February 27, 2018 He creado otra entrada que cumplimenta la anterior, os dejo aquí el enlace por si a alguien le interesa: http://luisjordan.net/blog/prestashop/error-id-must-be-filled-for-categories-tree-prestashop/ 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