Jump to content

Cancellata la Home dal catalogo (come ripristinarla)?


Recommended Posts

Buonasera, 

 

hanno messo mano al mio catalogo e per errore (volevano cambiargli nome) hanno cancellato la home dalla sezione catalogo di prestashop (versione 1.6.1.5).

 

ora mi da i seguenti errori se cerco di caricare i prodotti del mio negozio.

 

 

[PrestaShopException]

Root category must be an integer value
at line 212 in file classes/helper/HelperTreeCategories.php

207. }
208.
209. public function setRootCategory($value)
210. {
211. if (!Validate::isInt($value)) {
212. throw new PrestaShopException('Root category must be an integer value');
213. }
214.
215. $this->_root_category = $value;
216. return $this;
217. }
  • HelperTreeCategoriesCore->setRootCategory - [line 2504 - controllers/admin/AdminProductsController.php] - [1 Arguments]
    2499. // Generate category selection tree
    2500. $tree = new HelperTreeCategories('categories-tree', $this->l('Filter by category'));
    2501. $tree->setAttribute('is_category_filter', (bool)$this->id_current_category)
    2502. ->setAttribute('base_url', preg_replace('#&id_category=[0-9]*#', '', self::$currentIndex).'&token='.$this->token)
    2503. ->setInputName('id-category')
    2504. ->setRootCategory(Category::getRootCategory()->id)
    2505. ->setSelectedCategories(array((int)$id_category));
    2506. $this->tpl_list_vars['category_tree'] = $tree->render();
    2507.
    2508. // used to build the new url when changing category
    2509. $this->tpl_list_vars['base_url'] = preg_replace('#&id_category=[0-9]*#', '', self::$currentIndex).'&token='.$this->token;
  • AdminProductsControllerCore->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 controller
    367. $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 dispatcher
    58. Dispatcher::getInstance()->dispatch();
 
come posso ripristinare il tutto da presta shop senza intarlarlo nuovamente?

post-1248911-0-89721700-1462543917_thumb.jpg

post-1248911-0-90567600-1462543919_thumb.jpg

post-1248911-0-89721700-1462543917_thumb.jpg

post-1248911-0-90567600-1462543919_thumb.jpg

post-1248911-0-89721700-1462543917_thumb.jpg

post-1248911-0-90567600-1462543919_thumb.jpg

post-1248911-0-89721700-1462543917_thumb.jpg

post-1248911-0-90567600-1462543919_thumb.jpg

post-1248911-0-89721700-1462543917_thumb.jpg

post-1248911-0-90567600-1462543919_thumb.jpg

post-1248911-0-89721700-1462543917_thumb.jpg

post-1248911-0-90567600-1462543919_thumb.jpg

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...