[8] ErrorException in Index.php line 68

Trying to access array offset on value of type null

  1. ->join("__ARTICLE__ a", "a.contentid = c.contentid")
  2. ->where(['c.contentid' => $contentid])
  3. ->find();
  4. //根据当前的直播找到其小的缩略图
  5. $img = Db::name('zhibo')
  6. ->where(['contentid' => $contentid])
  7. ->field('img_index')
  8. ->order("id ASC")
  9. ->limit(1)->find();
  10. $res["img_phone"] = $img["img_index"];
  11. $zhibo_meta = \db("zhibo_meta")->where(["contentid" => $res["contentid"]])->find();
  12. $this->assign("zhibo_meta", $zhibo_meta);
  13. $list = Db::name('zhibo')->where(['contentid' => $contentid])->order('id DESC')->select();
  14. $this->assign('list', $list);
  15. $this->assign('res', $res);
  16. return $this->fetch();

Call Stack

  1. in Index.php line 68
  2. at Error::appError() in Index.php line 68
  3. at Index->read()
  4. at ReflectionMethod->invokeArgs() in App.php line 343
  5. at App::invokeMethod() in App.php line 608
  6. at App::module() in App.php line 456
  7. at App::exec() in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/data/zhibo.qudong.c...') in index.php line 18
  10. at include('/data/zhibo.qudong.c...') in index.php line 8

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_X_FORWARDED_FOR
3.80.129.195
HTTP_CTL_SRC_IP
3.80.129.195
HTTP_CTL_C_C
no-cache
HTTP_X_VIA
edge-js-changzhou8-cache-25.in.ctcdn.cn
HTTP_REQUEST_ID
66054974f1f39da71ed26dff37872c37
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
zhibo.qudong.com
PATH_INFO
/article/366505.html
REDIRECT_STATUS
200
SERVER_NAME
zhibo.qudong.com
SERVER_PORT
80
SERVER_ADDR
192.168.0.17
REMOTE_PORT
49648
REMOTE_ADDR
58.216.30.154
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data/zhibo.qudong.com
DOCUMENT_URI
/index.php
REQUEST_URI
/article/366505.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/article/366505.html
SCRIPT_FILENAME
/data/zhibo.qudong.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711622516.8522
REQUEST_TIME
1711622516
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/zhibo.qudong.com/public/../application/
THINK_VERSION
5.0.20
THINK_START_TIME
1711622516.8529
THINK_START_MEM
408744
EXT
.php
DS
/
THINK_PATH
/data/zhibo.qudong.com/thinkphp/
LIB_PATH
/data/zhibo.qudong.com/thinkphp/library/
CORE_PATH
/data/zhibo.qudong.com/thinkphp/library/think/
TRAIT_PATH
/data/zhibo.qudong.com/thinkphp/library/traits/
ROOT_PATH
/data/zhibo.qudong.com/
EXTEND_PATH
/data/zhibo.qudong.com/extend/
VENDOR_PATH
/data/zhibo.qudong.com/vendor/
RUNTIME_PATH
/data/zhibo.qudong.com/runtime/
LOG_PATH
/data/zhibo.qudong.com/runtime/log/
CACHE_PATH
/data/zhibo.qudong.com/runtime/cache/
TEMP_PATH
/data/zhibo.qudong.com/runtime/temp/
CONF_PATH
/data/zhibo.qudong.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false