[8] ErrorException in Huojiang.php line 107

未定义数组下标: 0

  1. $this->assign('shangtitle',$shangtitle);
  2. }
  3. if($xcon){
  4. $xiaid=$xcon[0]['id'];
  5. $xiaidnews=collection($this->news->where("id",$xiaid)->select())->toarray(); //查询shangid
  6. foreach ($xiaidnews as $k =>$v){
  7. $xiaidnews[$k]['title'] = $this->news->name('cms_archives')->where('id',$v['id'])->value('title');
  8. }
  9. $xiatitle =$xiaidnews[$k]['title'];
  10. $this->assign('xiatitle',$xiatitle);
  11. }
  12. $this->assign('xia',$xcon);
  13. $this->assign('shang',$scon);
  14. //print_r($xcon);
  15. return $this->fetch();

Call Stack

  1. in Huojiang.php line 107
  2. at Error::appError(8, 'Undefined offset: 0', '/www/wwwroot/www.got...', 107, ['lid' => 153, 'news' => [['id' => 153, 'user_id' => 0, 'channel_id' => 10, ...]], 'v' => ['id' => 152, 'content' => '<p><strong><p style=...', 'images' => '/uploads/20190328/bb...', ...], ...]) in Huojiang.php line 107
  3. at Huojiang->show()
  4. at ReflectionMethod->invokeArgs(object(Huojiang), []) in App.php line 343
  5. at App::invokeMethod([object(Huojiang), 'show'], []) in App.php line 611
  6. at App::module(['index', 'huojiang', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'huojiang', 'show']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/www.got...') in index.php line 24

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.gotrend.cn
PATH_INFO
/index/huojiang/show/id/153.html
REDIRECT_STATUS
200
SERVER_NAME
www.gotrend.cn
SERVER_PORT
443
SERVER_ADDR
172.18.65.234
REMOTE_PORT
51222
REMOTE_ADDR
44.200.40.97
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.gotrend.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/huojiang/show/id/153.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/huojiang/show/id/153.html
SCRIPT_FILENAME
/www/wwwroot/www.gotrend.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711629076.1254
REQUEST_TIME
1711629076
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.gotrend.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711629076.1258
THINK_START_MEM
404584
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.gotrend.cn/thinkphp/
LIB_PATH
/www/wwwroot/www.gotrend.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/www.gotrend.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.gotrend.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.gotrend.cn/
EXTEND_PATH
/www/wwwroot/www.gotrend.cn/extend/
VENDOR_PATH
/www/wwwroot/www.gotrend.cn/vendor/
RUNTIME_PATH
/www/wwwroot/www.gotrend.cn/runtime/
LOG_PATH
/www/wwwroot/www.gotrend.cn/runtime/log/
CACHE_PATH
/www/wwwroot/www.gotrend.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/www.gotrend.cn/runtime/temp/
CONF_PATH
/www/wwwroot/www.gotrend.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/www.gotrend.cn/addons/