ferchache Posted October 2, 2016 Share Posted October 2, 2016 Buenas. Desde hace un tiempo he notado que no me deja insertar categorias en mi web. Es una tienda desde 0, no tengo productos agregados y es la primera tienda que hago. No obstante se me iba dando fenomenal hasta que ha ocurrido el error fatal (guardo la escopeta pues no tengo copias de seguridad). El caso que al dar al "agregar categorias" me manda a otra pagina que pone esto: [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(); Estoy buscando por mil sitios y no veo nada sobre el tema. Tengo varias dudas: lo que esta señalado en rojo hay que modificarlo??? que hay que poner en ese caso??? Les agradezco mucho la ayuda. Feliz día Link to comment Share on other sites More sharing options...
tuk66 Posted October 7, 2016 Share Posted October 7, 2016 Usted ha dañado ligeramente una o más tablas relacionadas de la categoría en la base de datos. Lo mejor sería para inspeccionarlo. You have slightly corrupted one or more category related tables in the database. The best would be to inspect it. 1 Link to comment Share on other sites More sharing options...
ferchache Posted October 12, 2016 Author Share Posted October 12, 2016 Usted ha dañado ligeramente una o más tablas relacionadas de la categoría en la base de datos. Lo mejor sería para inspeccionarlo. You have slightly corrupted one or more category related tables in the database. The best would be to inspect it. Te agradezco que me contestaras Link to comment Share on other sites More sharing options...
[email protected] Posted October 25, 2016 Share Posted October 25, 2016 Buen Dia Estaba trabajando en el panel de control, y de un momento a otro desapareció las categorías que tenia instaladas en la tienda, ademas de los 50 productos que tenia inastalados, solo quedaron 4. y se borro los cambios que tenia el dia anterios solicito su colaboración mil gracias 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