fecro安装问题汇总

安装报错 · penny · 于 2个月前 发布 · 201 次阅读

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
共收到 6 条回复
penny#12个月前 0 个赞

我在服务器把store 信息打印出来显示的域名与我配置的是一模一样,下面是我贴出来的日志

array(9) { ["language"]=> string(5) "zh-CN" ["languageName"]=> string(6) "中文" ["localThemeDir"]=> string(29) "@appfront/theme/terry/theme01" ["thirdThemeDir"]=> array(1) { [0]=> string(31) "@fecro/app/appfront/theme/fecro" } ["currency"]=> string(3) "USD" ["https"]=> bool(false) ["sitemapDir"]=> string(25) "@appfront/web/sitemap.xml" ["mobile"]=> array(5) { ["enable"]=> bool(true) ["condition"]=> array(2) { [0]=> string(5) "phone" [1]=> string(6) "tablet" } ["redirectDomain"]=> string(17) "m.rabbit-mall.com" ["https"]=> bool(true) ["type"]=> string(8) "apphtml5" } ["thirdLogin"]=> array(2) { ["facebook"]=> array(2) { ["facebook_app_id"]=> string(15) "108618299786621" ["facebook_app_secret"]=> string(32) "420b56da4f4664a4d1065a1d31e5ec73" } ["google"]=> array(2) { ["CLIENT_ID"]=> string(72) "380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com" ["CLIENT_SECRET"]=> string(24) "ei8RaoCDoAlIeh1nHYm0rrwO" } } } array(9) { ["language"]=> string(5) "fr-FR" ["languageName"]=> string(9) "Français" ["localThemeDir"]=> string(29) "@appfront/theme/terry/theme01" ["thirdThemeDir"]=> array(1) { [0]=> string(31) "@fecro/app/appfront/theme/fecro" } ["currency"]=> string(3) "EUR" ["https"]=> bool(false) ["sitemapDir"]=> string(28) "@appfront/web/fr/sitemap.xml" ["mobile"]=> array(5) { ["enable"]=> bool(true) ["condition"]=> array(2) { [0]=> string(5) "phone" [1]=> string(6) "tablet" } ["redirectDomain"]=> string(20) "m.rabbit-mall.com/fr" ["https"]=> bool(true) ["type"]=> string(8) "apphtml5" } ["thirdLogin"]=> array(2) { ["facebook"]=> array(2) { ["facebook_app_id"]=> string(15) "108618299786621" ["facebook_app_secret"]=> string(32) "420b56da4f4664a4d1065a1d31e5ec73" } ["google"]=> array(2) { ["CLIENT_ID"]=> string(72) "380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com" ["CLIENT_SECRET"]=> string(24) "ei8RaoCDoAlIeh1nHYm0rrwO" } } } array(9) { ["language"]=> string(5) "es-ES" ["languageName"]=> string(8) "Español" ["localThemeDir"]=> string(29) "@appfront/theme/terry/theme01" ["thirdThemeDir"]=> array(1) { [0]=> string(31) "@fecro/app/appfront/theme/fecro" } ["currency"]=> string(3) "EUR" ["https"]=> bool(false) ["sitemapDir"]=> string(28) "@appfront/web/sitemap_es.xml" ["mobile"]=> array(5) { ["enable"]=> bool(true) ["condition"]=> array(2) { [0]=> string(5) "phone" [1]=> string(6) "tablet" } ["redirectDomain"]=> string(20) "m.rabbit-mall.com/es" ["https"]=> bool(true) ["type"]=> string(8) "apphtml5" } ["thirdLogin"]=> array(2) { ["facebook"]=> array(2) { ["facebook_app_id"]=> string(15) "108618299786621" ["facebook_app_secret"]=> string(32) "420b56da4f4664a4d1065a1d31e5ec73" } ["google"]=> array(2) { ["CLIENT_ID"]=> string(72) "380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com" ["CLIENT_SECRET"]=> string(24) "ei8RaoCDoAlIeh1nHYm0rrwO" } } } array(9) { ["language"]=> string(5) "zh-CN" ["languageName"]=> string(6) "中文" ["localThemeDir"]=> string(29) "@appfront/theme/terry/theme01" ["thirdThemeDir"]=> array(1) { [0]=> string(31) "@fecro/app/appfront/theme/fecro" } ["currency"]=> string(3) "CNY" ["https"]=> bool(false) ["sitemapDir"]=> string(28) "@appfront/web/cn/sitemap.xml" ["mobile"]=> array(5) { ["enable"]=> bool(true) ["condition"]=> array(2) { [0]=> string(5) "phone" [1]=> string(6) "tablet" } ["redirectDomain"]=> string(20) "m.rabbit-mall.com/cn" ["https"]=> bool(true) ["type"]=> string(9) "
An Error occurred while handling another error:
yii\web\HeadersAlreadySentException: Headers already sent in /www/wwwroot/rabbit-mall.com/vendor/fancyecommerce/fecshop/services/Store.php on line 233. in /www/wwwroot/rabbit-mall.com/vendor/yiisoft/yii2/web/Response.php:373
Stack trace:
#0 /www/wwwroot/rabbit-mall.com/vendor/yiisoft/yii2/web/Response.php(346): yii\web\Response->sendHeaders()
#1 /www/wwwroot/rabbit-mall.com/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send()
#2 /www/wwwroot/rabbit-mall.com/vendor/yiisoft/yii2/base/ErrorHandler.php(135): yii\web\ErrorHandler->renderException(Object(yii\base\InvalidValueException))
#3 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\base\InvalidValueException))
#4 {main}
Previous exception:
yii\base\InvalidValueException: this domain is not config in store service, you must config it in admin store config in /www/wwwroot/rabbit-mall.com/vendor/fancyecommerce/fecshop/services/Store.php:293
Stack trace:
#0 /www/wwwroot/rabbit-mall.com/vendor/fancyecommerce/fecshop/components/Store.php(43): fecshop\services\Store->bootstrap(Object(yii\web\Application))
#1 /www/wwwroot/rabbit-mall.com/vendor/yiisoft/yii2/base/Application.php(333): fecshop\components\Store->bootstrap(Object(yii\web\Application))
#2 /www/wwwroot/rabbit-mall.com/vendor/yiisoft/yii2/web/Application.php(70): yii\base\Application->bootstrap()
#3 /www/wwwroot/rabbit-mall.com/vendor/yiisoft/yii2/base/Application.php(279): yii\web\Application->bootstrap()
#4 /www/wwwroot/rabbit-mall.com/vendor/yiisoft/yii2/base/BaseObject.php(109): yii\base\Application->init()
#5 /www/wwwroot/rabbit-mall.com/vendor/yiisoft/yii2/base/Application.php(212): yii\base\BaseObject->__construct(Array)
#6 /www/wwwroot/rabbit-mall.com/appfront/web/index.php(65): yii\base\Application->__construct(Array)
#7 {main}
Fecmall#22个月前 0 个赞

1.每个问题,都写了问题点,而没有问题的背景信息,帮不上忙,没有你的代码和配置信息,靠猜回复?

2.你的这些问题都不是问题。尤其第一个问题,报错的内容地方都附上了帖子地址了,自己不去看。

3.看你也发了很多帖子了,如果不行你就放弃吧,别相互难为。

或者你用宝塔安装,很多不懂技术的小白都可以用宝塔搭建起来,一点问题都没有。

fecmall的定位写清楚了,程序员用的电商系统。

penny#32个月前 0 个赞

@Fecmall #2楼 1、代码没有改动;2、我目前是在宝塔上面安装的;3、我看了报错的那个帖子就是没找到问题所在,这是尴尬点,宝塔后台配置我贴出来一下;

域名	端口	子目录	操作
m.rabbit-mall.com	80	apphtml5/web	伪静态  |  删除
img.rabbit-mall.com	80	appimage/common	伪静态  |  删除
admin.rabbit-mall.com	80	appadmin/web	伪静态  |  删除
appapi.rabbit-mall.com	80	appapi/web	伪静态  |  删除
Fecmall#42个月前 0 个赞

@penny #3楼 你加我微信,把服务器root,以及后台密码发我给你看看吧

penny#52个月前 0 个赞

@Fecmall #4楼 感谢

Fecmall#62个月前 0 个赞

this domain is not config in store service, you must config it in admin store config

这个问题的debug,帖子进行了补充:http://www.fecmall.com/topic/4582

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