fecro跨境电商企业版 插件安装后网站报错

安装报错 · xvchang0 · 于 2年前 发布 · 872 次阅读

您好,我安装了fecmall fecro跨境电商企业版 的插件,在不激活的时候页面显示正常,如下图

在激活之后,页面就会报错,如下图

请问下是什么原因,谢谢!!!

报错信息如下: >`php

yii\base\UnknownPropertyException: Setting unknown property: fecro\app\appfront\modules\Catalog\block\category\Price::price in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/BaseObject.php:163 Stack trace: #0 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/BaseYii.php(558): yii\base\BaseObject->set('price', '33.00') #1 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(fecro\app\appfront\modules\Catalog\block\category\Price), Array) #2 [internal function]: yii\base\BaseObject->construct(Array) #3 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/di/Container.php(420): ReflectionClass->newInstanceArgs(Array) #4 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/di/Container.php(171): yii\di\Container->build('fecro\app\appfr...', Array, Array) #5 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get('fecro\app\appfr...', Array, Array) #6 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php(171): yii\BaseYii::createObject(Array) #7 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php(219): fecshop\services\page\Widget->renderContentHtml('home/product_pr...', Array, '') #8 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php(138): fecshop\services\page\Widget->renderContent('home/product_pr...', Array) #9 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/app/appfront/theme/base/front/cms/home/index/product.php(31): fecshop\services\page\Widget->diRender('home/product_pr...', Array) #10 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/View.php(348): require('/www/wwwroot/ww...') #11 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/www/wwwroot/ww...', Array) #12 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php(163): yii\base\View->renderFile('/www/wwwroot/ww...', Array) #13 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php(219): fecshop\services\page\Widget->renderContentHtml('cms/productlist', Array, Array) #14 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php(81): fecshop\services\page\Widget->renderContent('cms/productlist', Array, Array) #15 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/app/appfront/theme/base/front/cms/home/index.php(18): fecshop\services\page\Widget->render('cms/productlist', Array) #16 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/View.php(348): require('/www/wwwroot/ww...') #17 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/www/wwwroot/ww...', Array) #18 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/app/appfront/modules/AppfrontController.php(97): yii\base\View->renderFile('/www/wwwroot/ww...', Array, Object(fecro\app\appfront\modules\Cms\controllers\HomeController)) #19 /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/app/appfront/modules/Cms/controllers/HomeController.php(30): fecshop\app\appfront\modules\AppfrontController->render('index', Array) #20 [internal function]: fecshop\app\appfront\modules\Cms\controllers\HomeController->actionIndex() #21 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #22 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams(Array) #23 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/Module.php(534): yii\base\Controller->runAction('index', Array) #24 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('cms/home/index', Array) #25 /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(fecshop\yii\web\Request)) #26 /www/wwwroot/www.hdgame.vip/appfront/web/index.php(66): yii\base\Application->run() #27 {main} Copy StacktraceSearch StackoverflowSearch GoogleException Unknown Property – yii\base\UnknownPropertyException Setting unknown property: fecro\app\appfront\modules\Catalog\block\category\Price::price

  1. in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/BaseObject.phpat line 163
  2. in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/BaseYii.php at line 558– yii\base\BaseObject::__set('price', '33.00')
  3. in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/BaseObject.php at line 107– yii\BaseYii::configure(fecro\app\appfront\modules\Catalog\block\category\Price, ['price' => '33.00', 'special_price' => 0])
  4. yii\base\BaseObject::__construct(['price' => '33.00', 'special_price' => 0])
  5. in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/di/Container.php at line 420– ReflectionClass::newInstanceArgs([['price' => '33.00', 'special_price' => 0]])
  6. in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/di/Container.php at line 171– yii\di\Container::build('fecro\app\appfront\modules\Catal...', [], ['price' => '33.00', 'special_price' => 0])
  7. in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/BaseYii.php at line 365– yii\di\Container::get('fecro\app\appfront\modules\Catal...', [], ['price' => '33.00', 'special_price' => 0])
  8. in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php at line 171– yii\BaseYii::createObject(['price' => '33.00', 'special_price' => 0]) 165166167168169170171172173174175176177 if (isset($config['method']) && !empty($config['method'])) {

         $method = $config['method'];
         unset($config['method']);
     } else {
         $method = $this->defaultObMethod;
     }
     $ob = Yii::createObject($config);
     $params = $ob->$method();
     if ($parentThis) {
         $params['parentThis'] = $parentThis;
     }
    
     return Yii::$app->view->renderFile($viewFile, $params);
    
  9. in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php at line 219– fecshop\services\page\Widget::renderContentHtml('home/product_price', ['class' => 'fecro\app\appfront\modules\Catal...', 'price' => '33.00', 'special_price' => 0], '') 213214215216217218219220221222223224225 throw new InvalidConfigException($config['class'].' must implete fecshop\interfaces\block\BlockCache when you use block cache .');

             }
         }
     }
     // 查看 $config['class'] 是否在YiiRewriteMap重写中存在配置,如果存在,则替换
     !isset($config['class']) || $config['class'] = Yii::mapGetClassName($config['class']);
     $content = $this->renderContentHtml($configKey, $config, $parentThis);
    
     return $content;
    

    }

    /**

    • find theme file by mutil theme ,if not find view file and $throwError=true, it will throw InvalidValueException.
  10. in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php at line 138– fecshop\services\page\Widget::renderContent('home/product_price', ['class' => 'fecro\app\appfront\modules\Catal...', 'view' => 'cms/home/index/price.php', 'price' => '33.00', 'special_price' => 0]) 132133134135136137138139140141142143144 throw new InvalidConfigException('in widget ['.$configKey.'],you enable cache ,you must config widget class .');

    }
    foreach ($diConfig as $k=>$v) {
        $config [$k] = $v;
    }
    
    return $this->renderContent($configKey, $config);
    

    }

    /**

    • @param $configKey | string ,使用配置中的widget,该参数对应相应的数组key
    • @param $config,就是上面actionRender()方法中的参数,格式一样。
    • @param $parentThis | array or '' , 调用层传递的参数数组,可以在view中调用。
  11. in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/app/appfront/theme/base/front/cms/home/index/product.php at line 31– fecshop\services\page\Widget::diRender('home/product_price', ['price' => '33.00', 'special_price' => 0]) 25262728293031323334353637
                <?php
                    $diConfig = [
                        'price' 		=> $product['price'],
                        'special_price' => $product['special_price'],
                    ];
                    echo Yii::$service->page->widget->DiRender('home/product_price',$diConfig);
                ?>
            </div>
        <?php  endforeach;  ?>
    </div>	
    <?php  endif;  ?>
    

in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/View.php at line 348– require('/www/wwwroot/www.hdgame.vip/vend...') in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/View.php at line 257– yii\base\View::renderPhpFile('/www/wwwroot/www.hdgame.vip/vend...', ['parentThis' => ['products' => [['name' => 'Round Neck Printed Short Sleeve ...', 'sku' => 'men0001', 'reviw_rate_star_average' => 0, 'review_count' => 0, ...], ['name' => 'Round Neck 3D Colorful Splash-In...', 'sku' => 'men0002', 'reviw_rate_star_average' => '4', 'review_count' => '4', ...], ['name' => 'Round Neck Floral 3D Print Patte...', 'sku' => 'men0003', 'reviw_rate_star_average' => '2', 'review_count' => '1', ...], ['name' => 'Raglan Sleeves Letter Printed Cr...', 'sku' => 'p10001-kahaki-xl', 'reviw_rate_star_average' => '4', 'review_count' => '63', ...], ...], 'name' => 'best-seller']])

in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php at line 163– yii\base\View::renderFile('/www/wwwroot/www.hdgame.vip/vend...', ['parentThis' => ['products' => [['name' => 'Round Neck Printed Short Sleeve ...', 'sku' => 'men0001', 'reviw_rate_star_average' => 0, 'review_count' => 0, ...], ['name' => 'Round Neck 3D Colorful Splash-In...', 'sku' => 'men0002', 'reviw_rate_star_average' => '4', 'review_count' => '4', ...], ['name' => 'Round Neck Floral 3D Print Patte...', 'sku' => 'men0003', 'reviw_rate_star_average' => '2', 'review_count' => '1', ...], ['name' => 'Raglan Sleeves Letter Printed Cr...', 'sku' => 'p10001-kahaki-xl', 'reviw_rate_star_average' => '4', 'review_count' => '63', ...], ...], 'name' => 'best-seller']]) 157158159160161162163164165166167168169 $viewFile = $this->getViewFile($view);

if (!isset($config['class']) || empty($config['class'])) {
    if ($parentThis) {
        $params['parentThis'] = $parentThis;
    }

    return Yii::$app->view->renderFile($viewFile, $params);
}
if (isset($config['method']) && !empty($config['method'])) {
    $method = $config['method'];
    unset($config['method']);
} else {
    $method = $this->defaultObMethod;

in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php at line 219– fecshop\services\page\Widget::renderContentHtml('cms/productlist', [], ['products' => [['name' => 'Round Neck Printed Short Sleeve ...', 'sku' => 'men0001', 'reviw_rate_star_average' => 0, 'review_count' => 0, ...], ['name' => 'Round Neck 3D Colorful Splash-In...', 'sku' => 'men0002', 'reviw_rate_star_average' => '4', 'review_count' => '4', ...], ['name' => 'Round Neck Floral 3D Print Patte...', 'sku' => 'men0003', 'reviw_rate_star_average' => '2', 'review_count' => '1', ...], ['name' => 'Raglan Sleeves Letter Printed Cr...', 'sku' => 'p10001-kahaki-xl', 'reviw_rate_star_average' => '4', 'review_count' => '63', ...], ...], 'name' => 'best-seller']) 213214215216217218219220221222223224225 throw new InvalidConfigException($config['class'].' must implete fecshop\interfaces\block\BlockCache when you use block cache .');

        }
    }
}
// 查看 $config['class'] 是否在YiiRewriteMap重写中存在配置,如果存在,则替换
!isset($config['class']) || $config['class'] = Yii::mapGetClassName($config['class']);
$content = $this->renderContentHtml($configKey, $config, $parentThis);

return $content;

}

/**

  • find theme file by mutil theme ,if not find view file and $throwError=true, it will throw InvalidValueException.

in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/services/page/Widget.php at line 81– fecshop\services\page\Widget::renderContent('cms/productlist', ['view' => 'cms/home/index/product.php'], ['products' => [['name' => 'Round Neck Printed Short Sleeve ...', 'sku' => 'men0001', 'reviw_rate_star_average' => 0, 'review_count' => 0, ...], ['name' => 'Round Neck 3D Colorful Splash-In...', 'sku' => 'men0002', 'reviw_rate_star_average' => '4', 'review_count' => '4', ...], ['name' => 'Round Neck Floral 3D Print Patte...', 'sku' => 'men0003', 'reviw_rate_star_average' => '2', 'review_count' => '1', ...], ['name' => 'Raglan Sleeves Letter Printed Cr...', 'sku' => 'p10001-kahaki-xl', 'reviw_rate_star_average' => '4', 'review_count' => '63', ...], ...], 'name' => 'best-seller']) 75767778798081828384858687 } else {

        throw new InvalidValueException(" config key: '$configKey', can not find in  ".'Yii::$service->page->widget->widgetConfig'.', you must config it before use it.');
    }
}

return $this->renderContent($configKey, $config, $parentThis);

} /**

  • @param configKey String or Array
  • 如果传递的是一个配置数组,内容格式如下:
  • [
  • class 选填

in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/app/appfront/theme/base/front/cms/home/index.php at line 18– fecshop\services\page\Widget::render('cms/productlist', ['products' => [['name' => 'Round Neck Printed Short Sleeve ...', 'sku' => 'men0001', 'reviw_rate_star_average' => 0, 'review_count' => 0, ...], ['name' => 'Round Neck 3D Colorful Splash-In...', 'sku' => 'men0002', 'reviw_rate_star_average' => '4', 'review_count' => '4', ...], ['name' => 'Round Neck Floral 3D Print Patte...', 'sku' => 'men0003', 'reviw_rate_star_average' => '2', 'review_count' => '1', ...], ['name' => 'Raglan Sleeves Letter Printed Cr...', 'sku' => 'p10001-kahaki-xl', 'reviw_rate_star_average' => '4', 'review_count' => '63', ...], ...], 'name' => 'best-seller']) 12131415161718192021222324
<h4 class="sectionBox_h best_seller"><span><?= Yii::$service->page->translate->__('best seller'); ?></span><em><a href=""><?= Yii::$service->page->translate->__('more'); ?></a></em></h4>
<div class="pro-content">
    <?php
        $parentThis['products'] = $bestSellerProducts;
        $parentThis['name'] = 'best-seller';
        echo Yii::$service->page->widget->render('cms/productlist',$parentThis);
    ?>
</div>

<h4 class="sectionBox_h featured"><span><?= Yii::$service->page->translate->__('featured products'); ?></span><em><a href=""><?= Yii::$service->page->translate->__('more'); ?></a></em></h4>
in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/View.php at line 348– require('/www/wwwroot/www.hdgame.vip/vend...')
in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/View.php at line 257– yii\base\View::renderPhpFile('/www/wwwroot/www.hdgame.vip/vend...', ['hot_products' => null, 'chaoliu_s1_products' => null, 'chaoliu_s2_products' => null, 'chaoliu_x1_products' => null, ...])

in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/app/appfront/modules/AppfrontController.php at line 97– yii\base\View::renderFile('/www/wwwroot/www.hdgame.vip/vend...', ['hot_products' => null, 'chaoliu_s1_products' => null, 'chaoliu_s2_products' => null, 'chaoliu_x1_products' => null, ...], fecro\app\appfront\modules\Cms\controllers\HomeController) 919293949596979899100101102103 * 1.get exist view file from mutil theme by theme protity.

  • 2.get content by yii view compontent function renderFile() , */ public function render($view, $params = []) { $viewFile = Yii::$service->page->theme->getViewFile($view); $content = Yii::$app->view->renderFile($viewFile, $params, $this);

    return $this->renderContent($content); }

/**

  • @param $view|string

in /www/wwwroot/www.hdgame.vip/vendor/fancyecommerce/fecshop/app/appfront/modules/Cms/controllers/HomeController.php at line 30– fecshop\app\appfront\modules\AppfrontController::render('index', ['hot_products' => null, 'chaoliu_s1_products' => null, 'chaoliu_s2_products' => null, 'chaoliu_x1_products' => null, ...]) 24252627282930313233343536 // 网站信息管理 public function actionIndex() {

$data = $this->getBlock()->getLastData();

return $this->render($this->action->id, $data);

}

public function behaviors() {

if (Yii::$service->store->isAppServerMobile()) {
    $urlPath = '';
fecshop\app\appfront\modules\Cms\controllers\HomeController::actionIndex() in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/InlineAction.php at line 57– call_user_func_array([fecro\app\appfront\modules\Cms\controllers\HomeController, 'actionIndex'], []) in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/Controller.php at line 181– yii\base\InlineAction::runWithParams([]) in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/Module.php at line 534– yii\base\Controller::runAction('index', []) in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/web/Application.php at line 104– yii\base\Module::runAction('cms/home/index', []) in /www/wwwroot/www.hdgame.vip/vendor/yiisoft/yii2/base/Application.php at line 392– yii\web\Application::handleRequest(fecshop\yii\web\Request) in /www/wwwroot/www.hdgame.vip/appfront/web/index.php at line 66– yii\base\Application::run() 60616263646566 * 使用方法:Yii::$service->cms->article;
  • 上面的例子就是获取cms服务的子服务article。 */ new fecshop\services\Application($config);

$application = new yii\web\Application($config); $application->run(); $_COOKIE = [

'PHPSESSID' => 'c11gscs76qpfmpld380f9mbvn1',
'td_cookie' => '561460197',

];

$_SESSION = [

'__flash' => [],
'currency_current' => 'USD',

]; Yii Framework 2022-03-18, 10:27:40

nginx/1.20.1

Fecmall Framework/2.17.4


共收到 1 条回复
Fecmall#12年前 0 个赞

仔细去看三遍文档就解决了、

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