[2] ErrorException in Index.php line 106

array_merge(): Argument #1 is not an array

  1. if($live['platform'] ==1){
  2. $this->redirect($live['m3u8']);
  3. }
  4. $G = geturl($live['sid']);
  5. $user = cookie('dzuser');
  6. $disUser = discuz::wxPclogin($user['unionid']);
  7. if(empty($disUser)){
  8. $disUser = ['uid'=>'0','groupid'=>'0'];
  9. }
  10. $user = array_merge($user,$disUser);
  11. $this->assign('user',$user);
  12. $this->assign('signPackage',$G['signPackage']);
  13. $this->assign('jsApiParameters','');
  14. $this->assign('limit','1');
  15. $this->assign('page',$page);
  16. $this->assign('sid',$live['sid']);
  17. $this->assign('rid',$live['id']);
  18. $this->assign('adminstr','管理员');
  19. $this->assign('seek',$seek);

Call Stack

  1. in Index.php line 106
  2. at Error::appError(2, 'array_merge(): Argum...', '/mnt/web/u_td776_com...', 106, ['tid' => '40', 'page' => '', 'rid' => '', ...])
  3. at array_merge(null, ['uid' => '0', 'groupid' => '0']) in Index.php line 106
  4. at Index->index('40', '', '', '', '', object(Request))
  5. at ReflectionMethod->invokeArgs(object(Index), ['40', '', '', ...]) in App.php line 343
  6. at App::invokeMethod([object(Index), 'index'], []) in App.php line 609
  7. at App::module(['live', 'index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['live', 'index', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 18
  10. at require('/mnt/web/u_td776_com...') in index.php line 18

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/dev/null
PATH_TRANSLATED
redirect:/index.php/live/index/index/sid/1/tid/40/index/index/sid/1/tid/40
PATH_INFO
/live/index/index/sid/1/tid/40
SCRIPT_NAME
/index.php
REQUEST_URI
/live/index/index/sid/1/tid/40
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/live/index/index/sid/1/tid/40
REMOTE_PORT
45827
SCRIPT_FILENAME
/mnt/web/u_td776_com/public_html/index.php
SERVER_ADMIN
you@example.com
CONTEXT_DOCUMENT_ROOT
/mnt/web/u_td776_com/public_html
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/mnt/web/u_td776_com/public_html
REMOTE_ADDR
61.241.120.179
SERVER_PORT
80
SERVER_ADDR
172.18.253.230
SERVER_NAME
tehmad.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
PATH
/sbin:/usr/sbin:/bin:/usr/bin
HTTP_ALI_SWIFT_USE_UPSTREAM_TPROXY
on
HTTP_CLIENT_IP
60.63.212.104
HTTP_REFERER
http://tehmad.com/live/index/index/sid/1/tid/40
HTTP_ACCEPT_ENCODING
gzip,deflate
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
HTTP_ALI_CDN_REAL_IP
209.58.130.25
HTTP_X_CLIENT_SCHEME
http
HTTP_X_FORWARDED_FOR
218.114.244.90, 209.58.130.25
HTTP_ALI_SWIFT_STAT_HOST
tehmad.com
HTTP_ALI_SWIFT_LOG_HOST
tehmad.com
HTTP_EAGLEEYE_TRACEID
7250bb1e15864536539015463e
HTTP_VIA
cn2364.l1, kunlun2.cn2364, l2cn1824.l2, cache31.l2cn1824
HTTP_HOST
tehmad.com
proxy-nokeepalive
1
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/live/index/index/sid/1/tid/40
REQUEST_TIME_FLOAT
1586453654.5336
REQUEST_TIME
1586453654
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/web/u_td776_com/public_html/application/
THINK_VERSION
5.0.20
THINK_START_TIME
1586453654.534
THINK_START_MEM
379448
EXT
.php
DS
/
THINK_PATH
/mnt/web/u_td776_com/public_html/thinkphp/
LIB_PATH
/mnt/web/u_td776_com/public_html/thinkphp/library/
CORE_PATH
/mnt/web/u_td776_com/public_html/thinkphp/library/think/
TRAIT_PATH
/mnt/web/u_td776_com/public_html/thinkphp/library/traits/
ROOT_PATH
/mnt/web/u_td776_com/public_html/
EXTEND_PATH
/mnt/web/u_td776_com/public_html/extend/
VENDOR_PATH
/mnt/web/u_td776_com/public_html/vendor/
RUNTIME_PATH
/mnt/web/u_td776_com/public_html/runtime/
LOG_PATH
/mnt/web/u_td776_com/public_html/runtime/log/
CACHE_PATH
/mnt/web/u_td776_com/public_html/runtime/cache/
TEMP_PATH
/mnt/web/u_td776_com/public_html/runtime/temp/
CONF_PATH
/mnt/web/u_td776_com/public_html/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false