亚马逊独立站无法搜索,和官方demo一样出现这个问题。可以确认不是配置问题。
复现步骤
- 下载安装amazon应用
- 激活应用,搜索出现异常
- 关闭应用,搜索正常
报错文件
in addons/fecmall/fecamazon/app/appfront/modules/Catalogsearch/block/index/Index.php at line 57
报错代码
$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,
'count' => $productCollInfo['count'],
'query_item' => $this->getQueryItem(),
'product_page' => $this->getProductPage(),