升级1.6后报错:admin_role_menu doesn't exist

技术分享 · Fecshop · 于 14天前 发布 · 42 次阅读

某位童鞋的报错信息

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xinguyaji.admin_role_menu' doesn't exist in /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/db/Command.php:1258
Stack trace:
#0 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/db/Command.php(1258): PDOStatement->execute()
#1 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/db/Command.php(1148): yii\db\Command->internalExecute('SELECT `menu_id...')
#2 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)
#3 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/db/Query.php(237): yii\db\Command->queryAll()
#4 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)
#5 /home/www/xinguyaji/Admin/vendor/fancyecommerce/fec_admin/models/AdminMenu.php(78): yii\db\ActiveQuery->all()
#6 /home/www/xinguyaji/Admin/vendor/fancyecommerce/fec_admin/models/AdminMenu.php(96): fecadmin\models\AdminMenu->getActiveMenuIds()
#7 /home/www/xinguyaji/Admin/vendor/fancyecommerce/fec_admin/views/layouts/Menu.php(20): fecadmin\models\AdminMenu->getLeftMenuTreeHtml()
#8 /home/www/xinguyaji/Admin/appadmin/theme/local/theme01/layouts/dashboard.php(124): fecadmin\views\layouts\Menu::getContent()
#9 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/View.php(336): require('/home/www/xingu...')
#10 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/home/www/xingu...', Array)
#11 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/Controller.php(399): yii\base\View->renderFile('/home/www/xingu...', Array, Object(fecshop\app\appadmin\modules\Fecadmin\controllers\IndexController))

layout文件是 本地的文件:#8 /home/www/xinguyaji/Admin/appadmin/theme/local/theme01/layouts/dashboard.php ,而不是fecshop的,fecshop对这个文件进行了更改,你也需要进行更改一下才行

参看提交:https://github.com/fecshop/yii2_fecshop/commit/d3e019ea3e3a71ffe12871aa072e615f16ec54e3#diff-f147288418625c6f99894168bd193506

共收到 0 条回复
没有找到数据。
添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics