[8] ErrorException in Tag.php line 167

Trying to access array offset on value of type null

  1. ->where('status', 'normal')
  2. ->where('id', 'in', function ($query) use ($tag) {
  3. return $query->name('cms_taggable')->where('tag_id', $tag['id'])->field('archives_id');
  4. })
  5. ->field("id,channel_id,keywords,description")
  6. ->order("id asc")
  7. ->find();
  8. $tag['seotitle'] = $tag['name']."最新章节小说".$tag['name']."全文免费阅读";
  9. $tag['keywords'] = isset($tag['keywords']) && $tag['keywords'] ? $tag['keywords'] : $one['keywords'];
  10. $tag['description'] = isset($tag['description']) && $tag['description'] ? $tag['description'] : $one['description'];
  11. Config::set('cms.sitename', '指南者');
  12. Config::set('cms.title', $tag['seotitle']);
  13. Config::set('cms.keywords', $tag['keywords']);
  14. Config::set('cms.description', $tag['description']);
  15. Config::set('cms.image', isset($tag['image']) && $tag['image'] ? cdnurl($tag['image'], true) : '');
  16. return $this->view->fetch($template);
  17. }
  18. }

Call Stack

  1. in Tag.php line 167
  2. at Error::appError() in Tag.php line 167
  3. at Tag->index()
  4. at call_user_func_array() in Route.php line 78
  5. at Route->execute()
  6. at ReflectionMethod->invokeArgs() in App.php line 343
  7. at App::invokeMethod() in App.php line 470
  8. at App::exec() in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/ssd_www/www/wwwroot...') in index.php line 82

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_ALI_CDN_ADAPTIVE_PORTS
443,443
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_CDN_REAL_IP
3.81.221.121
HTTP_X_CLIENT_SCHEME
https
HTTP_X_FORWARDED_FOR
3.81.221.121
HTTP_ALI_SWIFT_STAT_HOST
level2.www.amznz.com
HTTP_ALI_SWIFT_LOG_HOST
www.amznz.com
HTTP_EAGLEEYE_TRACEID
3adad01b17116483587207759e
HTTP_VIA
cn192.l1, kunlun7.cn192, l2cn2647.l2, cache51.l2cn2647
HTTP_HOST
www.amznz.com
PATH_INFO
/tag/gu-tian-you
REDIRECT_STATUS
200
SERVER_NAME
fast.amznz.com
SERVER_PORT
443
SERVER_ADDR
59.63.166.197
REMOTE_PORT
36280
REMOTE_ADDR
58.215.103.180
SERVER_SOFTWARE
nginx/1.22.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/ssd_www/www/wwwroot/fast.amznz.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/tag/gu-tian-you
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/tag/gu-tian-you
SCRIPT_FILENAME
/ssd_www/www/wwwroot/fast.amznz.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711648358.7839
REQUEST_TIME
1711648358
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/ssd_www/www/wwwroot/fast.amznz.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711648358.785
THINK_START_MEM
427728
EXT
.php
DS
/
THINK_PATH
/ssd_www/www/wwwroot/fast.amznz.com/thinkphp/
LIB_PATH
/ssd_www/www/wwwroot/fast.amznz.com/thinkphp/library/
CORE_PATH
/ssd_www/www/wwwroot/fast.amznz.com/thinkphp/library/think/
TRAIT_PATH
/ssd_www/www/wwwroot/fast.amznz.com/thinkphp/library/traits/
ROOT_PATH
/ssd_www/www/wwwroot/fast.amznz.com/
EXTEND_PATH
/ssd_www/www/wwwroot/fast.amznz.com/extend/
VENDOR_PATH
/ssd_www/www/wwwroot/fast.amznz.com/vendor/
RUNTIME_PATH
/ssd_www/www/wwwroot/fast.amznz.com/runtime/
LOG_PATH
/ssd_www/www/wwwroot/fast.amznz.com/runtime/log/
CACHE_PATH
/ssd_www/www/wwwroot/fast.amznz.com/runtime/cache/
TEMP_PATH
/ssd_www/www/wwwroot/fast.amznz.com/runtime/temp/
CONF_PATH
/ssd_www/www/wwwroot/fast.amznz.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/ssd_www/www/wwwroot/fast.amznz.com/addons/