Prestashop - 无法升级

Prestashop - can't upgrade

您好,我想安装“1-Click Upgrade v1.6.7 - by PrestaShop”插件,但由于以下错误我无法安装:

The following module(s) were not installed properly:
autoupgrade : 
    Unable to create the "AdminSelfUpgrade" tab

我检查了启用的模块,它们都是最新的并且由 PrestaShop 发布。有人可以帮帮我吗?

我目前是 运行 PrestaShop™ 1.6.0.11。

感谢您的帮助。

更新: 开启错误报告:

[PrestaShopDatabaseException]

Unknown column 'hide_host_mode' in 'field list'


INSERT INTO `ps_tab` (`id_parent`, `position`, `module`, `class_name`, `active`, `hide_host_mode`) VALUES ('17', '10', 'autoupgrade', 'AdminSelfUpgrade', '1', '0')

at line 639 in file classes/db/Db.php
634.            WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
635.        }
636.        elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
637.        {
638.            if ($sql)
639.                throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
640.            throw new PrestaShopDatabaseException($this->getMsgError());
641.        }
642.    }
643. 
644.    /**
DbCore->displayError - [line 333 - classes/db/Db.php] - [1 Arguments]
DbCore->query - [line 613 - classes/db/Db.php] - [1 Arguments]
DbCore->q - [line 398 - classes/db/Db.php] - [2 Arguments]
DbCore->insert - [line 480 - classes/ObjectModel.php] - [3 Arguments]
ObjectModelCore->add - [line 103 - classes/Tab.php] - [2 Arguments]
TabCore->add - [line 442 - classes/ObjectModel.php] - [2 Arguments]
ObjectModelCore->save - [line 115 - classes/Tab.php]
TabCore->save - [line 74 - modules/autoupgrade/autoupgrade.php]
Autoupgrade->install - [line 828 - controllers/admin/AdminModulesController.php]
AdminModulesControllerCore->postProcessCallback - [line 1071 - controllers/admin/AdminModulesController.php]
AdminModulesControllerCore->postProcess - [line 171 - classes/controller/Controller.php]
ControllerCore->run - [line 374 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 54 - admin/index.php]

如果你打开 Error Reporting 会是个好主意。

此外,您是否安装了一些管理管理选项卡的第 3 方模块?或者至少有一个管理管理人员的模块?

如果是这样,请尝试卸载它并删除目录文件。

终于自己解决了:ps_tab中少了一个栏目。

要修复它,您需要转到此 MySQL table 并将 hide_host_mode 列添加到 DV 中,它是 tinyint 类型。