Prestashop 1.6.1.4 - 根类别必须是整数值

时间:2016-11-28 15:40:03

标签: sql install prestashop prestashop-1.6

我正在尝试全新安装prestashop 1.6.1.4,首先我得到了SQL error on query All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead​并使用了以下解决方案https://www.prestashop.com/forums/topic/480947-error-presta-on-server-2012-r2-sql-error-on-query-all-parts-of-a-primary-key-must-be-not-null/

但现在,安装完成后,当我转到管理员>目录我得到:

[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]
AdminProductsControllerCore->initContent - [line 189 - classes/controller/Controller.php]
ControllerCore->run - [line 367 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 58 - admin1/index.php]

$ value为空

注意:我正在尝试安装此特定版本,因为我正在调试:

Cannot save or edit product data in Prestashop 1.6.1.4

1 个答案:

答案 0 :(得分:0)

如果无论如何都删除了主页类别,则会显示您提到的错误。尝试添加主类别,将其作为根类别。

有关详细信息,请访问:

http://forge.prestashop.com/browse/NM-606