订单编辑报错

bug问题 · green945 · 于 6个月前 发布 · 377 次阅读
PHP Deprecated Warning 'yii\base\ErrorException' with message 'Cannot use "parent" when current class scope has no parent' 

in /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/fancyecommerce/fecshop/app/appadmin/modules/Sales/block/orderinfo/Manageredit.php:26

Stack trace:
#0 /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/yiisoft/yii2/BaseYii.php(293): yii\base\ErrorHandler->handleError()
#1 /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/yiisoft/yii2/BaseYii.php(293): include()
#2 [internal function]: yii\BaseYii::autoload()
#3 /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/fancyecommerce/fecshop/app/appadmin/modules/AppadminController.php(168): spl_autoload_call()
#4 /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/fancyecommerce/fecshop/app/appadmin/modules/Sales/controllers/OrderinfoController.php(31): fecshop\app\appadmin\modules\AppadminController->getBlock()
#5 [internal function]: fecshop\app\appadmin\modules\Sales\controllers\OrderinfoController->actionManageredit()
#6 /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#7 /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams()
#8 /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction()
#9 /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction()
#10 /www/wwwroot/demo2.bmaxspace.com/fecmall/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest()
#11 /www/wwwroot/demo2.bmaxspace.com/fecmall/appadmin/web/index.php(50): yii\base\Application->run()
#12 {main}

订单管理也没有显示用户购物的明细

共收到 3 条回复
Fecmall#16个月前 0 个赞

@fecshop/app/appadmin/modules/Sales/block/orderinfo/Manageredit.php:26

头部改为

<?php
/**
 * FecShop file.
 *
 * @link http://www.fecshop.com/
 * @copyright Copyright (c) 2016 FecShop Software LLC
 * @license http://www.fecshop.com/license/
 */

namespace fecshop\app\appadmin\modules\Sales\block\orderinfo;

use fec\helpers\CUrl;
use Yii;
use yii\base\BaseObject;

/**
 * block cms\article.
 * @author Terry Zhao <2358269014@qq.com>
 * @since 1.0
 */
class Manageredit extends BaseObject
{
2楼 已删除.
Fecmall#36个月前 0 个赞

代码没有问题,自己去搜索解决

green945#46个月前 0 个赞

多了一个空格,问题已解决

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