详情页商品评论不显示

bug问题 · Blueyii · 于 1年前 发布 · 954 次阅读

提交了评论,但是这里没有显示出来:

共收到 4 条回复
Fecmall#11年前 1 个赞

你看截图的灰字:your comment is awaiting moderation

评论需要在后台审核,审核通过后,个数才会增加

Blueyii#21年前 0 个赞

@Terry [#1楼](#comment1) 谢谢您的回复,在本地测试的时候,选择了通过审核...但是详情页里面没有显示出来。

不过在通过审核的时候出现了报错:

Http status: 500 Internal Server Error
ajaxOptions: error
thrownError: Internal Server Error
Exception (Unknown Property) 'yii\base\UnknownPropertyException' with message 'Getting unknown property: fecshop\models\mongodb\product\Review::ACTIVE_STATUS' 

in /www/web/develop/fecshop/vendor/yiisoft/yii2/base/Component.php:147

Stack trace:
#0 /www/web/develop/fecshop/vendor/yiisoft/yii2/db/BaseActiveRecord.php(285): yii\base\Component->__get('ACTIVE_STATUS')
#1 /www/web/develop/fecshop/vendor/fancyecommerce/fecshop/services/product/Review.php(373): yii\db\BaseActiveRecord->__get('ACTIVE_STATUS')
#2 [internal function]: fecshop\services\product\Review->actionUpdateProductSpuReview('222212', 'fr')
#3 /www/web/develop/fecshop/vendor/fancyecommerce/fecshop/services/Service.php(48): call_user_func_array(Array, Array)
#4 /www/web/develop/fecshop/vendor/fancyecommerce/fecshop/services/product/Review.php(269): fecshop\services\Service->__call('updateProductSp...', Array)
#5 /www/web/develop/fecshop/vendor/fancyecommerce/fecshop/services/product/Review.php(269): fecshop\services\product\Review->updateProductSpuReview('222212', 'fr')
#6 [internal function]: fecshop\services\product\Review->actionSave(Array)
#7 /www/web/develop/fecshop/vendor/fancyecommerce/fecshop/services/Service.php(48): call_user_func_array(Array, Array)
#8 /www/web/develop/fecshop/vendor/fancyecommerce/fecshop/app/appadmin/modules/Catalog/block/productreview/Manageredit.php(155): fecshop\services\Service->__call('save', Array)
#9 /www/web/develop/fecshop/vendor/fancyecommerce/fecshop/app/appadmin/modules/Catalog/block/productreview/Manageredit.php(155): fecshop\services\product\Review->save(Array)
#10 /www/web/develop/fecshop/vendor/fancyecommerce/fecshop/app/appadmin/modules/Catalog/controllers/ProductreviewController.php(38): fecshop\app\appadmin\modules\Catalog\block\productreview\Manageredit->save()
#11 [internal function]: fecshop\app\appadmin\modules\Catalog\controllers\ProductreviewController->actionManagereditsave()
#12 /www/web/develop/fecshop/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#13 /www/web/develop/fecshop/vendor/yiisoft/yii2/base/Controller.php(156): yii\base\InlineAction->runWithParams(Array)
#14 /www/web/develop/fecshop/vendor/yiisoft/yii2/base/Module.php(523): yii\base\Controller->runAction('managereditsave', Array)
#15 /www/web/develop/fecshop/vendor/yiisoft/yii2/web/Application.php(102): yii\base\Module->runAction('catalog/product...', Array)
#16 /www/web/develop/fecshop/vendor/yiisoft/yii2/base/Application.php(380): yii\web\Application->handleRequest(Object(yii\web\Request))
#17 /www/web/develop/fecshop/appadmin/web/index.php(73): yii\base\Application->run()
#18 {main}
Fecmall#31年前 1 个赞

框架重构带来的bug,已经修复,代码地址为: https://github.com/fecshop/yii2_fecshop/commit/8430f9d6f00c2e5e3248d3fd4e8125c6e368c80c

Blueyii#41年前 0 个赞

@Terry #3楼 非常感谢:+1:

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