Jump to content

Id must be filled for categories tree - Error


Recommended Posts

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 tree
at 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

  • 7 months later...
  • 10 months later...

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...