Bsports

[8] ErrorException in News.php line 90

未定义数组索引: q_id

  1. }else{
  2. $gets=5;
  3. }
  4. $classnav = Db::table('gong_classtopnav')->where('status',0)->order('id asc')->where('p_id',7)->select();
  5. foreach($classnav as $key=>$val){
  6. $classnav[$key]['idd'] = $key+1;
  7. }
  8. $banner= Db::table('gong_banner')->where('status',0)->where('p_id',$gets)->where('d_id',2)->find();
  9. $zhong=Db::table('newest_information')->where('status',0)->where('id',$get['q_id'])->find();
  10. $neww=Db::table('newest_information')->where('status',0)->order('addtime desc')->where('q_id',$zhong['q_id'])->limit(0,5)->select();
  11. foreach ($neww as $key => $value) {
  12. $neww[$key]['summm'] = mb_substr($value['sum'],0,26,'utf-8');
  13. }
  14. $names=Db::table('gong_classtopnav')->where('status',0)->where('id',$zhong['q_id'])->value('valuez');
  15. $times=date('Y-m-d H:i:s',$zhong['addtime']);
  16. $new= Db::table('newest_information')->where('status',0)->order('addtime asc')->select();
  17. $news= Db::table('newest_information')->where('status',0)->order('addtime desc')->select();
  18. foreach($new as $key=>$val){

Call Stack

  1. in News.php line 90
  2. at Error::appError(8, 'Undefined index: q_i...', '/usr/home/syu7497080...', 90, ['get' => [], 'gets' => 5, 'classnav' => [], ...]) in News.php line 90
  3. at News->details()
  4. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  5. at App::invokeMethod([object(News), 'details'], []) in App.php line 611
  6. at App::module(['index', 'news', 'details'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'details']], ['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('/usr/home/syu7497080...') in index.php line 12

Environment Variables

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

Server/Request Data

CONTENT_TYPE
text/html
DOCUMENT_ROOT
/usr/home/syu7497080001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
HTTP_ACCEPT
text/html, application/xhtml+xml, */*
HTTP_CONNECTION
Close
HTTP_HOST
green-swallow.com
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
PATH
/bin
PHPRC
/var/www/php55/hichina_ini/syu7497080001
QUERY_STRING
REDIRECT_CONTENT_TYPE
text/html
REDIRECT_DOCUMENT_ROOT
/usr/home/syu7497080001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTPS
on
REDIRECT_HTTP_ACCEPT
text/html, application/xhtml+xml, */*
REDIRECT_HTTP_CONNECTION
Close
REDIRECT_HTTP_HOST
green-swallow.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO
/details
REDIRECT_PATH_TRANSLATED
redirect:/index.php/index/details
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR
154.82.59.130
REDIRECT_REMOTE_PORT
20026
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/news/details
REDIRECT_SCRIPT_FILENAME
/usr/home/syu7497080001/htdocs/news
REDIRECT_SCRIPT_NAME
/news
REDIRECT_SERVER_ADDR
10.29.124.243
REDIRECT_SERVER_ADMIN
webmaster@syu7497080001.my3w.com
REDIRECT_SERVER_NAME
green-swallow.com
REDIRECT_SERVER_PORT
443
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_SSL_TLS_SNI
green-swallow.com
REDIRECT_STATUS
200
REDIRECT_TZ
Asia/Shanghai
REDIRECT_UNIQUE_ID
aDBVgQodfPMAIW9sjnkAAAAS
REDIRECT_URL
/news/details
REMOTE_ADDR
154.82.59.130
REMOTE_PORT
20026
REQUEST_METHOD
GET
REQUEST_URI
/news/details
SCRIPT_FILENAME
/usr/home/syu7497080001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.29.124.243
SERVER_ADMIN
webmaster@syu7497080001.my3w.com
SERVER_NAME
green-swallow.com
SERVER_PORT
443
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SSL_TLS_SNI
green-swallow.com
TZ
Asia/Shanghai
UNIQUE_ID
aDBVgQodfPMAIW9sjnkAAAAS
ORIG_PATH_INFO
/index/news/details
ORIG_PATH_TRANSLATED
/usr/home/syu7497080001/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1747998081.3031
REQUEST_TIME
1747998081
PATH_INFO
/index/news/details
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/syu7497080001/htdocs/home/
RUNTIME_PATH
/usr/home/syu7497080001/htdocs/runtime/
THINK_VERSION
5.0.24
THINK_START_TIME
1747998081.3036
THINK_START_MEM
249832
EXT
.php
DS
/
THINK_PATH
/usr/home/syu7497080001/htdocs/thinkphp/
LIB_PATH
/usr/home/syu7497080001/htdocs/thinkphp/library/
CORE_PATH
/usr/home/syu7497080001/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/syu7497080001/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/syu7497080001/htdocs/
EXTEND_PATH
/usr/home/syu7497080001/htdocs/extend/
VENDOR_PATH
/usr/home/syu7497080001/htdocs/vendor/
LOG_PATH
/usr/home/syu7497080001/htdocs/runtime/log/
CACHE_PATH
/usr/home/syu7497080001/htdocs/runtime/cache/
TEMP_PATH
/usr/home/syu7497080001/htdocs/runtime/temp/
CONF_PATH
/usr/home/syu7497080001/htdocs/home/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
必一·体育(B-sports)官方网站必一·体育(B-sports)官方网站必一·体育(B-sports)官方网站必一·体育(B-sports)官方网站必一·体育(B-sports)官方网站