## [8] ErrorException in Config.php line 45

# Trying to get property of non-object

        public function getUpHost($accessKey, $bucket)
        {
            $zone = $this->getZone($accessKey, $bucket);
            if ($this->useHTTPS === true) {
                $scheme = "https://";
            } else {
                $scheme = "http://";
            }

            $host = $zone->srcUpHosts[0];
            if ($this->useCdnDomains === true) {
                $host = $zone->cdnUpHosts[0];
            }

            return $scheme . $host;
        }

        public function getUpBackupHost($accessKey, $bucket)
        {

## Call Stack

1. in Config.php line 45
2. at Error::appError(8, 'Trying to get proper...', '/Users/Dean/git/thin...', 45, ['accessKey' => 'XdiS6FfUnX2ev_FbtjEi...', 'bucket' => 'thinkcmf-portal', 'zone' => [null, object(Error)], ...]) in Config.php line 45
3. at Config->getUpHost('XdiS6FfUnX2ev_FbtjEi...', 'thinkcmf-portal') in FormUploader.php line 58
4. at FormUploader::put('XdiS6FfUnX2ev_FbtjEi...', 'portal/20190303/59ad...', '...', object(Config), null, 'application/octet-st...', '59adc8a781b1be671def...') in UploadManager.php line 108
5. at UploadManager->putFile('XdiS6FfUnX2ev_FbtjEi...', 'portal/20190303/59ad...', './upload/portal/2019...') in Qiniu.php line 51
6. at Qiniu->upload('portal/20190303/59ad...', './upload/portal/2019...', 'image', null) in Storage.php line 70
7. at Storage->upload('portal/20190303/59ad...', './upload/portal/2019...', 'image') in Upload.php line 327
8. at Upload->upload() in AssetController.php line 42
9. at AssetController->webuploader()
10. at ReflectionMethod->invokeArgs(object(AssetController), []) in App.php line 343
11. at App::invokeMethod([object(AssetController), 'webuploader'], []) in App.php line 611
12. at App::module(['user', 'asset', 'webuploader'], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...], true) in App.php line 456
13. at App::exec(['type' => 'module', 'module' => ['user', 'asset', 'webuploader']], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 139
14. at App::run() in index.php line 44

## Environment Variables

### GET Data

_ajax
1

### POST Data

app
portal
filetype
image
id
WU_FILE_0
name
封面.001.jpg
type
image/jpeg
lastModifiedDate
Sat Mar 24 2018 23:11:37 GMT+0800 (China Standard Time)
size
956061

### Files

file
{ "name": "\u5c01\u9762.001.jpg", "type": "image\/jpeg", "tmp_name": "\/private\/var\/tmp\/phpTaT6hj", "error": 0, "size": 956061 }

### Cookies

OUTFOX_SEARCH_USER_ID_NCOO
1411363915.8599343
admin_username
admin
PHPSESSID
urr95c6rt20552hako7jsrfaiu
thinkphp_show_page_trace
0|1

### Session

think
{ "__SP_ADMIN_LOGIN_PAGE_SHOWED_SUCCESS__": true, "ADMIN_ID": 1, "name": "admin", "token": "2eb4d69a7c70f034a080f195d1e8625a25c216178d353d36d569bd14c0078001", "cmf_default_theme": "simpleboot3" }

### Server/Request Data

REDIRECT_STATUS
200
HTTP_HOST
cmf5.im
HTTP_CONNECTION
keep-alive
CONTENT_LENGTH
957004
HTTP_PRAGMA
no-cache
HTTP_CACHE_CONTROL
no-cache
HTTP_ORIGIN
http://cmf5.im
HTTP_USER_AGENT
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36
CONTENT_TYPE
multipart/form-data; boundary=----WebKitFormBoundaryYZzPGMjLHBfHZtKA
HTTP_ACCEPT
*/*
HTTP_REFERER
http://cmf5.im/user/Asset/webuploader?&multi=0&filetype=image&app=portal
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT_LANGUAGE
en,zh-CN;q=0.9,zh;q=0.8,la;q=0.7
HTTP_COOKIE
OUTFOX_SEARCH_USER_ID_NCOO=1411363915.8599343; admin_username=admin; PHPSESSID=urr95c6rt20552hako7jsrfaiu; thinkphp_show_page_trace=0|1
PATH
/usr/bin:/bin:/usr/sbin:/sbin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.35 (Unix) PHP/7.1.1
SERVER_NAME
cmf5.im
SERVER_ADDR
127.0.0.1
SERVER_PORT
80
REMOTE_ADDR
127.0.0.1
DOCUMENT_ROOT
/Users/Dean/git/thinkcmf5/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/Users/Dean/git/thinkcmf5/public
SERVER_ADMIN
webmaster@dummy-host2.example.com
SCRIPT_FILENAME
/Users/Dean/git/thinkcmf5/public/index.php
REMOTE_PORT
58049
REDIRECT_URL
/user/asset/webuploader.html
REDIRECT_QUERY_STRING
s=user/asset/webuploader.html&_ajax=1
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
POST
QUERY_STRING
s=user/asset/webuploader.html&_ajax=1
REQUEST_URI
/user/asset/webuploader.html?_ajax=1
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1551607638.106
REQUEST_TIME
1551607638
PATH_INFO
user/asset/webuploader.html
Environment Variables
empty

### ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/Users/Dean/git/thinkcmf5/public/../
APP_PATH
/Users/Dean/git/thinkcmf5/public/../app/
CMF_PATH
/Users/Dean/git/thinkcmf5/public/../simplewind/cmf/
WEB_ROOT
/Users/Dean/git/thinkcmf5/public/
PLUGINS_PATH
/Users/Dean/git/thinkcmf5/public/plugins/
EXTEND_PATH
/Users/Dean/git/thinkcmf5/public/../simplewind/extend/
VENDOR_PATH
/Users/Dean/git/thinkcmf5/public/../simplewind/vendor/
RUNTIME_PATH
/Users/Dean/git/thinkcmf5/public/../data/runtime/
THINKCMF_VERSION
5.0.190111
THINK_VERSION
5.0.24
THINK_START_TIME
1551607638.1396
THINK_START_MEM
395672
EXT
.php
DS
/
THINK_PATH
/Users/Dean/git/thinkcmf5/simplewind/thinkphp/
LIB_PATH
/Users/Dean/git/thinkcmf5/simplewind/thinkphp/library/
CORE_PATH
/Users/Dean/git/thinkcmf5/simplewind/thinkphp/library/think/
TRAIT_PATH
/Users/Dean/git/thinkcmf5/simplewind/thinkphp/library/traits/
ROOT_PATH
/Users/Dean/git/thinkcmf5/
LOG_PATH
/Users/Dean/git/thinkcmf5/public/../data/runtime/log/
CACHE_PATH
/Users/Dean/git/thinkcmf5/public/../data/runtime/cache/
TEMP_PATH
/Users/Dean/git/thinkcmf5/public/../data/runtime/temp/
CONF_PATH
/Users/Dean/git/thinkcmf5/public/../app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/Users/Dean/git/thinkcmf5/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.7
ThinkPHP V5.0.24 { 十年磨一剑-为API开发设计的高性能框架 }