[8] ErrorException in Xianqi.php line 52

未定义数组索引: newkuangz_id

  1. $_SESSION["language"] = $res["lang"];
  2. header("Location: ".$_SERVER['REQUEST_URI']);
  3. die();
  4. }
  5. }
  6. //转换语言结束
  7. $res['faxing'] = json_decode($res['faxing'], true);
  8. // dump($res);
  9. $newkuangz = Db::name('newkuangz')->where(['id' => $res['newkuangz_id']])->find();
  10. $this->assign('newkuangz', $newkuangz);
  11. $newlres = Db::name('newjianjie')->where(['status' => 'normal', 'newkuangz_id' => $res['newkuangz_id']])->order('weigh desc')->select();
  12. $this->assign('newlres', $newlres);
  13. $this->assign('res', $res);
  14. // var_dump($res['faxing']);

Call Stack

  1. in Xianqi.php line 52
  2. at Error::appError(8, 'Undefined index: new...', '/home/wwwroot/newsha...', 52, ['id' => '50', 'type' => 0, 'where' => ['id' => '50'], ...]) in Xianqi.php line 52
  3. at Xianqi->index()
  4. at ReflectionMethod->invokeArgs(object(Xianqi), []) in App.php line 343
  5. at App::invokeMethod([object(Xianqi), 'index'], []) in App.php line 611
  6. at App::module(['index', 'xianqi', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'xianqi', 'index']], ['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('/home/wwwroot/newsha...') in index.php line 23

Environment Variables

GET Data

id
50
POST Data
empty
Files
empty
Cookies
empty

Session

language
0

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.inflight-media.com.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/index/xianqi/index
REDIRECT_STATUS
200
SERVER_NAME
inflight-media.com.cn
SERVER_PORT
80
SERVER_ADDR
211.149.144.141
REMOTE_PORT
47808
REMOTE_ADDR
3.89.163.120
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/newshangji/public
DOCUMENT_URI
/index.php/index/xianqi/index
REQUEST_URI
/index/xianqi/index?id=50
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
id=50
SCRIPT_FILENAME
/www/wwwroot/newshangji/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/index/xianqi/index
REQUEST_TIME_FLOAT
1711620491.9396
REQUEST_TIME
1711620491
Environment Variables
empty

ThinkPHP Constants

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