1.5.1.1版本发布

版本发布 · Fecmall · 于 9个月前 发布 · 672 次阅读

1.5.1.0版本存在bug,请安装1.5.1.1

1.后台权限控制更改为:RBAC权限控制。

2.库存扣除的bug修复

3.fix bug: product price format

4.fix bug: iconv('UTF-8', 'ASCII//TRANSLIT', ...) doesn't work properly when locale category LC_CTYPE is set to C or POSIX

5.代码规范和注释的调整

6.fix bug: product favorite

7.fix bug: yii2 exception format: change to \Exception $e

8.smtp配置无法发信的错误处理:捕捉异常处理,程序不退出,如果邮件发送失败不影响下单

9.fix bug: paypal express payment (cart paypal button)

10.fix bug: admin order not save tracking_num

11.fix bug: generate order, item_count = only cart active product total count, not all cart product

12.一些翻译文字的修正

详细的代码提交:https://github.com/fecshop/yii2_fecshop/commits/master

13.后台systemlog的添加,以及一些在fecadmin库包的功能迁移到fecshop appadmin中

说明

1.此版本修复的bug比较多,另外添加了RBAC的后台权限控制(使用说明后面给予),请各位尽快升级

2.后台RBAC涉及到数据库改动,线上项目请先备份数据库在执行migrate操作

升级一定要执行数据库升级,否则后台RBAC功能会出问题,如何升级参看:http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-update.html

共收到 11 条回复
Fecmall#19个月前 0 个赞

关于RBAC的使用,参看:http://www.fecshop.com/topic/1464

Fecmall#29个月前 0 个赞

本版本修复的bug比较多,请务必升级。

duanzhanling#39个月前 0 个赞

从开源中国看到的很不错,github上已经关注了。

Fecmall#49个月前 0 个赞

1.5.1.0版本存在bug,请安装1.5.1.1

xuhuaiqu#59个月前 0 个赞

执行了composer update 按照文档中执行完数据库更新 和 mongodb更新 之后管理后台报错(重新安装成功 但是升级的话就不成功):

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))
#12 /home/www/xinguyaji/Admin/vendor/fancyecommerce/fecshop/app/appadmin/modules/AppadminController.php(85): yii\base\Controller->renderContent('')
#13 /home/www/xinguyaji/Admin/vendor/fancyecommerce/fecshop/app/appadmin/modules/Fecadmin/controllers/IndexController.php(30): fecshop\app\appadmin\modules\AppadminController->render('index')
#14 [internal function]: fecshop\app\appadmin\modules\Fecadmin\controllers\IndexController->actionIndex()
#15 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#16 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#17 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('index', Array)
#18 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('fecadmin/index/...', Array)
#19 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#20 /home/www/xinguyaji/Admin/appadmin/web/index.php(77): yii\base\Application->run()
#21 {main}

Next yii\db\Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xinguyaji.admin_role_menu' doesn't exist
The SQL being executed was: SELECT `menu_id` FROM `admin_role_menu` WHERE `role_id` IN ('4', '12') in /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/db/Schema.php:664
Stack trace:
#0 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/db/Command.php(1263): yii\db\Schema->convertException(Object(PDOException), 'SELECT `menu_id...')
#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))
#12 /home/www/xinguyaji/Admin/vendor/fancyecommerce/fecshop/app/appadmin/modules/AppadminController.php(85): yii\base\Controller->renderContent('')
#13 /home/www/xinguyaji/Admin/vendor/fancyecommerce/fecshop/app/appadmin/modules/Fecadmin/controllers/IndexController.php(30): fecshop\app\appadmin\modules\AppadminController->render('index')
#14 [internal function]: fecshop\app\appadmin\modules\Fecadmin\controllers\IndexController->actionIndex()
#15 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#16 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#17 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('index', Array)
#18 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('fecadmin/index/...', Array)
#19 /home/www/xinguyaji/Admin/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#20 /home/www/xinguyaji/Admin/appadmin/web/index.php(77): yii\base\Application->run()
#21 {main}
Additional Information:
Array
(
    [0] => 42S02
    [1] => 1146
    [2] => Table 'xinguyaji.admin_role_menu' doesn't exist
)

Copy Stacktrace Search Stackoverflow Search Google Exception
Database Exception – yii\db\Exception
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xinguyaji.admin_role_menu' doesn't exist
The SQL being executed was: SELECT `menu_id` FROM `admin_role_menu` WHERE `role_id` IN ('4', '12')

Fecmall#69个月前 0 个赞

仔细看升级文档:http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-update.html

升级后需要执行migrate操作,升级数据库

xuhuaiqu#79个月前 0 个赞

@Fecshop #6楼 确定执行了两个库的迁移 切换到新迁的库 也会报错。我怕有缓存,把整个项目的vendor都替换了一遍。 正是因为执行了数据库迁移。所以admin_role_menu表被删除了

xuhuaiqu#89个月前 0 个赞

@Fecshop #6楼 1.5.0.0 迁移到1.5.1.1

Fecmall#98个月前 0 个赞

别人都升级成功了的

就是这个sql执行的删除,然后添加的其他的表: https://github.com/fecshop/yii2_fecshop/blob/master/migrations/mysqldb/m181025_090031_fecshop_tables.php

1.5.1.1版本,菜单已经不从数据库找了,而是从配置文件里面找 ,详细参看:http://www.fecshop.com/doc/fecshop-guide/instructions/cn-1.0/guide-fecshop_admin_rbac.html

Fecmall#108个月前 1 个赞

我知道你的问题了

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

月底又会发新版本,增加了后台的多语言翻译 ,本地重写的fecshop,就需要手动对照更改了

经过这一波的开发,fecshop已经完善。

xuhuaiqu#118个月前 0 个赞

@Fecshop #10楼 感谢大佬

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics