Prestashop - 无法升级

时间:2016-10-21 12:15:14

标签: prestashop prestashop-1.6

您好我想安装“1-Click Upgrade v1.6.7 - 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]

2 个答案:

答案 0 :(得分:1)

如果你打开Error Reporting,那将是一个好主意。

另外,您是否安装了一些管理管理员标签的第三方模块?或者至少是一个管理管理员的模块?

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

答案 1 :(得分:0)

最后,我自己解决了这个问题:ps_tab中缺少一列。

要解决此问题,您需要转到此MySQL表并将hide_host_mode列添加到DV中,它是tinyint类型。