1.5K Star 13.2K Fork 4.3K

GVP众邦科技 / CRMEB开源商城系统

 / 详情

is_dir(): open_basedir restric tion in effect. File(/tmp) is n ot within the allowed path s): (/var)

未处理
缺陷
创建于  
2023-06-09 16:37

输入图片说明

按照docker compose一键安装后,上架商品后打开客户端会提示is_dir(): open_basedir restric tion in effect. File(/tmp) is n ot within the allowed path s): (/var)

评论 (3)

shuhc 创建了任务

谢谢反馈,我们再测测docker

遇到同样的问题,如下:

{
    "status": 400,
    "msg": "is_dir(): open_basedir restriction in effect. File(\/tmp) is not within the allowed path(s): (\/var)",
    "data": {
        "message": "is_dir(): open_basedir restriction in effect. File(\/tmp) is not within the allowed path(s): (\/var)",
        "file": "\/var\/www\/vendor\/doctrine\/cache\/lib\/Doctrine\/Common\/Cache\/FileCache.php",
        "line": 197,
        "trace": [
            {
                "function": "appError",
                "class": "think\\initializer\\Error",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/doctrine\/cache\/lib\/Doctrine\/Common\/Cache\/FileCache.php",
                "line": 197,
                "function": "is_dir"
            },
            {
                "file": "\/var\/www\/vendor\/doctrine\/cache\/lib\/Doctrine\/Common\/Cache\/FileCache.php",
                "line": 81,
                "function": "createPathIfNeeded",
                "class": "Doctrine\\Common\\Cache\\FileCache",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/doctrine\/cache\/lib\/Doctrine\/Common\/Cache\/FilesystemCache.php",
                "line": 37,
                "function": "__construct",
                "class": "Doctrine\\Common\\Cache\\FileCache",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/overtrue\/wechat\/src\/Foundation\/Application.php",
                "line": 236,
                "function": "__construct",
                "class": "Doctrine\\Common\\Cache\\FilesystemCache",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/pimple\/pimple\/src\/Pimple\/Container.php",
                "line": 118,
                "function": "EasyWeChat\\Foundation\\{closure}",
                "class": "EasyWeChat\\Foundation\\Application",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/overtrue\/wechat\/src\/Foundation\/Application.php",
                "line": 244,
                "function": "offsetGet",
                "class": "Pimple\\Container",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/pimple\/pimple\/src\/Pimple\/Container.php",
                "line": 118,
                "function": "EasyWeChat\\Foundation\\{closure}",
                "class": "EasyWeChat\\Foundation\\Application",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/overtrue\/wechat\/src\/Foundation\/ServiceProviders\/JsServiceProvider.php",
                "line": 45,
                "function": "offsetGet",
                "class": "Pimple\\Container",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/pimple\/pimple\/src\/Pimple\/Container.php",
                "line": 118,
                "function": "EasyWeChat\\Foundation\\ServiceProviders\\{closure}",
                "class": "EasyWeChat\\Foundation\\ServiceProviders\\JsServiceProvider",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/overtrue\/wechat\/src\/Foundation\/Application.php",
                "line": 199,
                "function": "offsetGet",
                "class": "Pimple\\Container",
                "type": "->"
            },
            {
                "file": "\/var\/www\/crmeb\/services\/app\/WechatService.php",
                "line": 613,
                "function": "__get",
                "class": "EasyWeChat\\Foundation\\Application",
                "type": "->"
            },
            {
                "file": "\/var\/www\/crmeb\/services\/app\/WechatService.php",
                "line": 624,
                "function": "jsService",
                "class": "crmeb\\services\\app\\WechatService",
                "type": "::"
            },
            {
                "file": "\/var\/www\/app\/services\/wechat\/WechatServices.php",
                "line": 100,
                "function": "jsSdk",
                "class": "crmeb\\services\\app\\WechatService",
                "type": "::"
            },
            {
                "file": "\/var\/www\/app\/api\/controller\/v1\/wechat\/WechatController.php",
                "line": 75,
                "function": "config",
                "class": "app\\services\\wechat\\WechatServices",
                "type": "->"
            },
            {
                "function": "config",
                "class": "app\\api\\controller\\v1\\wechat\\WechatController",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Container.php",
                "line": 344,
                "function": "invokeArgs",
                "class": "ReflectionMethod",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/route\/dispatch\/Controller.php",
                "line": 110,
                "function": "invokeReflectMethod",
                "class": "think\\Container",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 59,
                "function": "think\\route\\dispatch\\{closure}",
                "class": "think\\route\\dispatch\\Controller",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 66,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/route\/dispatch\/Controller.php",
                "line": 113,
                "function": "then",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/route\/Dispatch.php",
                "line": 90,
                "function": "exec",
                "class": "think\\route\\dispatch\\Controller",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Route.php",
                "line": 785,
                "function": "run",
                "class": "think\\route\\Dispatch",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 59,
                "function": "think\\{closure}",
                "class": "think\\Route",
                "type": "->"
            },
            {
                "file": "\/var\/www\/app\/api\/middleware\/AuthTokenMiddleware.php",
                "line": 70,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "function": "handle",
                "class": "app\\api\\middleware\\AuthTokenMiddleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Middleware.php",
                "line": 142,
                "function": "call_user_func"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 85,
                "function": "think\\{closure}",
                "class": "think\\Middleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/app\/api\/middleware\/StationOpenMiddleware.php",
                "line": 30,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "function": "handle",
                "class": "app\\api\\middleware\\StationOpenMiddleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Middleware.php",
                "line": 142,
                "function": "call_user_func"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 85,
                "function": "think\\{closure}",
                "class": "think\\Middleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/app\/http\/middleware\/AllowOriginMiddleware.php",
                "line": 50,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "function": "handle",
                "class": "app\\http\\middleware\\AllowOriginMiddleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Middleware.php",
                "line": 142,
                "function": "call_user_func"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 85,
                "function": "think\\{closure}",
                "class": "think\\Middleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 66,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Route.php",
                "line": 786,
                "function": "then",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Http.php",
                "line": 216,
                "function": "dispatch",
                "class": "think\\Route",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Http.php",
                "line": 206,
                "function": "dispatchToRoute",
                "class": "think\\Http",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 59,
                "function": "think\\{closure}",
                "class": "think\\Http",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php",
                "line": 71,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 59,
                "function": "think\\app\\{closure}",
                "class": "think\\app\\MultiApp",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 66,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php",
                "line": 72,
                "function": "then",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "function": "handle",
                "class": "think\\app\\MultiApp",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Middleware.php",
                "line": 142,
                "function": "call_user_func"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 85,
                "function": "think\\{closure}",
                "class": "think\\Middleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/app\/http\/middleware\/BaseMiddleware.php",
                "line": 45,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "function": "handle",
                "class": "app\\http\\middleware\\BaseMiddleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Middleware.php",
                "line": 142,
                "function": "call_user_func"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 85,
                "function": "think\\{closure}",
                "class": "think\\Middleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/middleware\/LoadLangPack.php",
                "line": 57,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "function": "handle",
                "class": "think\\middleware\\LoadLangPack",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Middleware.php",
                "line": 142,
                "function": "call_user_func"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 85,
                "function": "think\\{closure}",
                "class": "think\\Middleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/middleware\/SessionInit.php",
                "line": 67,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "function": "handle",
                "class": "think\\middleware\\SessionInit",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Middleware.php",
                "line": 142,
                "function": "call_user_func"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 85,
                "function": "think\\{closure}",
                "class": "think\\Middleware",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Pipeline.php",
                "line": 66,
                "function": "think\\{closure}",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Http.php",
                "line": 207,
                "function": "then",
                "class": "think\\Pipeline",
                "type": "->"
            },
            {
                "file": "\/var\/www\/vendor\/topthink\/framework\/src\/think\/Http.php",
                "line": 170,
                "function": "runWithRequest",
                "class": "think\\Http",
                "type": "->"
            },
            {
                "file": "\/var\/www\/public\/index.php",
                "line": 39,
                "function": "run",
                "class": "think\\Http",
                "type": "->"
            }
        ],
        "previous": null
    }
}```

修改 docker-compose/php/php-ini-overrides.ini文件:
open_basedir = /var 修改为open_basedir = "/var:/var/tmp/:/tmp/"
执行:
docker compose down
docker compose up -d

问题解决。

聆听 任务类型任务 修改为缺陷
聆听 负责人设置为吴昊天
聆听 关联项目设置为标准版
聆听 优先级设置为主要
聆听 严重程度设置为普通

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
892944 honor8 1578935137
PHP
1
https://gitee.com/ZhongBangKeJi/CRMEB.git
git@gitee.com:ZhongBangKeJi/CRMEB.git
ZhongBangKeJi
CRMEB
CRMEB开源商城系统

搜索帮助

53164aa7 5694891 3bd8fe86 5694891