1、Pc端可以正常访问,但是手机端报错;我检查了服务器nginx.conf 域名配置和和文件的指定路径都对了一下没发现问题,论坛上传图片报错,我截取报错代码;
yii\base\InvalidValueException
this domain is not config in store service, you must config it in admin store config
出现该报错,是因为您在fecmall安装过程中填写的域名和nginx配置的域名不一致,或者填写域名格式错误导致的,您可以点击这里参看帖子进行解决:
Fecmall安装报错【已解决】:this domain is not config in store service, you must config it in admin store config
1. in /www/wwwroot/rabbit-mall.com/vendor/fancyecommerce/fecshop/services/Store.phpat line 292
283284285286287288289290291292293294295296297298299300301 }
}
break;
}
}
}
if (!$init_complete) {
throw new InvalidValueException('this domain is not config in store service, you must config it in admin store config');
}
}
/**
* @param $store_code | String
* @param $store | Array
* mobile device url redirect.
* pc端自动跳转到html5端的检测
*/
2、PC端的图片无法显示问题,我目前已经在给管理后台设置了图片是以http:// 开头,但是PC端最终访问还是以https:// 开头
3、图片后面我配置七牛云,又出现了又些图片访问的是七牛的路径地址,又些访问的是本地路径地址我贴下日志,图片上传不了
Request URL: https://img.rabbit-mall.com/addons/fecro/20200907205605_136.jpg
Referrer Policy: strict-origin-when-cross-origin
Provisional headers are shown
Referer: https://rabbit-mall.com/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36
上面是访问服务器的地址
下面这段是访问阿里云的地址
Request URL: https://image.rabbit-mall.com/2/01/20160617104826_51885.jpg?imageMogr2/thumbnail/300x300%3E/extent/300x300/background/d2hpdGU=/quality/88
Request Method: GET
Status Code: 200
Remote Address: 127.0.0.1:1080
Referrer Policy: strict-origin-when-cross-origin
accept-ranges: bytes
access-control-allow-origin: *
access-control-expose-headers: X-Log, X-Reqid
access-control-max-age: 2592000
age: 0
ali-swift-global-savetime: 1615390410
cache-control: public, max-age=31536000
content-length: 25931
content-transfer-encoding: binary
content-type: image/jpeg
date: Wed, 10 Mar 2021 15:33:30 GMT
eagleid: 2ff62c9816153904068385044e
etag: "AB_x1LO0Vr0U4BihieJ3hb2f47AC"
last-modified: Wed, 10 Mar 2021 14:06:24 GMT
server: Tengine
timing-allow-origin: *
via: cache31.l2ot7-1[2941,206-0,M], cache4.l2ot7-1[2942,0], cache4.l2ot7-1[2944,0], cache7.se1[3869,200-0,M], cache4.se1[3870,0]
x-cache: MISS TCP_MISS dirn:-2:-2
x-log: X-Log
x-m-log: QNM:lac60;SRCPROXY:lac65;SRC:4;SRCPROXY:4;QNM3:89
x-m-reqid: KnMAAMJSNggFBWsW
x-qiniu-zone: na0
x-qnm-cache: Miss,Hit
x-reqid: 6joAAPVdTA0FBWsW
x-svr: IO
x-swift-cachetime: 2592000
x-swift-savetime: Wed, 10 Mar 2021 15:33:30 GMT
:authority: image.rabbit-mall.com
:method: GET
:path: /2/01/20160617104826_51885.jpg?imageMogr2/thumbnail/300x300%3E/extent/300x300/background/d2hpdGU=/quality/88
:scheme: https
accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8
accept-encoding: gzip, deflate, br
accept-language: zh-CN,zh-TW;q=0.9,zh;q=0.8,en-US;q=0.7,en;q=0.6
referer: https://rabbit-mall.com/
sec-fetch-dest: image
sec-fetch-mode: no-cors
sec-fetch-site: same-site
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36