大家好
我安装了fecmall和fecyo后测试搜索栏 搜索 移动和pc端都是 显示错误
默认 mysql搜索功能不能适用吗,是不是要安装xunsearch
后台也开启了mysqlsearch了

错误如下
in /home/wwwroot/www.xxxx.cn/vendor/yiisoft/yii2/base/BaseObject.phpat line 141
132133134135136137138139140141142143144145146147148149150 public function __get($name)
{
$getter = 'get' . $name;
if (method_exists($this, $getter)) {
return $this->$getter();
} elseif (method_exists($this, 'set' . $name)) {
throw new InvalidCallException('Getting write-only property: ' . get_class($this) . '::' . $name);
}
throw new UnknownPropertyException('Getting unknown property: ' . get_class($this) . '::' . $name);
}
/**
- Sets value of an object property.
*
- Do not call this method directly as it is a PHP magic method that
- will be implicitly called when executing
$object->property = $value;
.
- @param string $name the property name or the event name
- @param mixed $value the property value
- in /home/wwwroot/www.xxxx.cn/addons/fecmall/fecyo/app/appfront/modules/Catalogsearch/block/index/Index.php at line 37– yii\base\BaseObject::__get('_category')
31323334353637383940414243 $products = $productCollInfo['coll'];
$this->_productCount = $productCollInfo['count'];
//echo $this->_productCount;
return [
'searchText' => $this->_searchText,
'title' => $this->_title,
'name' => Yii::$service->store->getStoreAttrVal($this->_category['name'], 'name'),
'image' => $this->_category['image'] ? Yii::$service->category->image->getUrl($this->_category['image']) : '',
'description' => Yii::$service->store->getStoreAttrVal($this->_category['description'], 'description'),
'products' => $products,
'query_item' => $this->getQueryItem(),
'product_page' => $this->getProductPage(),
'refine_by_info' => $this->getRefineByInfo(),
in /home/wwwroot/www.xxxx.cn/vendor/fancyecommerce/fecshop/app/appfront/modules/Catalogsearch/controllers/IndexController.php at line 34– fecyo\app\appfront\modules\Catalogsearch\block\index\Index::getLastData()
2829303132333435363738 if (Yii::$service->store->isAppServerMobile()) {
$searchText = Yii::$app->request->get('q');
$searchText = \Yii::$service->helper->htmlEncode($searchText);
$urlPath = 'search/'.$searchText;
Yii::$service->store->redirectAppServerMobile($urlPath);
}
$data = $this->getBlock()->getLastData();
return $this->render($this->action->id, $data);
}
}
- fecshop\app\appfront\modules\Catalogsearch\controllers\IndexController::actionIndex()
- in /home/wwwroot/www.xxxx.cn/vendor/yiisoft/yii2/base/InlineAction.php at line 57– call_user_func_array([fecyo\app\appfront\modules\Catalogsearch\controllers\IndexController, 'actionIndex'], [])
- in /home/wwwroot/www.xxxx.cn/vendor/yiisoft/yii2/base/Controller.php at line 181– yii\base\InlineAction::runWithParams(['q' => '企业'])
- in /home/wwwroot/www.xxxx.cn/vendor/yiisoft/yii2/base/Module.php at line 528– yii\base\Controller::runAction('', ['q' => '企业'])
- in /home/wwwroot/www.xxxx.cn/vendor/yiisoft/yii2/web/Application.php at line 104– yii\base\Module::runAction('catalogsearch/index', ['q' => '企业'])
- in /home/wwwroot/www.xxxx.cn/vendor/yiisoft/yii2/base/Application.php at line 392– yii\web\Application::handleRequest(fecshop\yii\web\Request)
- in /home/wwwroot/www.xxxx.cn/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();
$_GET = [
'q' => '企业',
];
$_COOKIE = [
'__guid' => '15584048.1558940067487748400.1607422436807.4507',
'PHPSESSID' => '4ek3ubf02vscid0mm80l1nupsb',
'monitor_count' => '314',
];
$_SESSION = [
'__flash' => [],
'currency_current' => 'CNY',
];