[8] ErrorException in News.php line 125

未定义数组索引: p_id

  1. if($na){
  2. foreach ($na as $key => $value) {
  3. $navv[$key]['name']=$value['valuez'];
  4. $navv[$key]['links']=$value['links'];
  5. $navv[$key]['id']=$value['id'];
  6. }
  7. }else{
  8. $navv=Db::table('gong_topnav')->where('status',0)->where('id',$gets)->select();
  9. }
  10. $qid= Db::table('newest_information')->where('status',0)->order('addtime desc')->where('id',$get['p_id'])->value('q_id');
  11. $zhong=Db::table('newest_information')->where('status',0)->where('id',$get['q_id'])->find();
  12. $time=date('Y-m-d H:i:s',$zhong['addtime']);
  13. $new= Db::table('newest_information')->where('status',0)->order('addtime asc')->select();
  14. $news= Db::table('newest_information')->where('status',0)->order('addtime desc')->select();
  15. foreach($new as $key=>$val){

Call Stack

  1. in News.php line 125
  2. at Error::appError(8, 'Undefined index: p_i...', '/home/wellchinacomcn...', 125, ['get' => ['id' => '7', 'q_id' => '10'], 'gets' => '7', 'guan' => ['id' => '7', 'name' => '新闻动态', 'links' => 'news/index.html', ...], ...]) in News.php line 125
  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('/home/wellchinacomcn...') in sb.php line 12

Environment Variables

GET Data

id
7
q_id
10
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_REDIRECT_UNIQUE_ID
ZgVP419SD5xNB644XNQSfAAAAAY
REDIRECT_REDIRECT_PHPRC
/home/wellchinacomcn1wiehlxlqcqh5i8nsajc7o4mcc8n/others
REDIRECT_REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
ZgVP419SD5xNB644XNQSfAAAAAY
REDIRECT_PHPRC
/home/wellchinacomcn1wiehlxlqcqh5i8nsajc7o4mcc8n/others
REDIRECT_HANDLER
php-cgi
REDIRECT_STATUS
200
UNIQUE_ID
ZgVP419SD5xNB644XNQSfAAAAAY
PHPRC
/home/wellchinacomcn1wiehlxlqcqh5i8nsajc7o4mcc8n/others
HTTP_X_FORWARDED_FOR
34.203.221.104
HTTP_X_REAL_IP
34.203.221.104
HTTP_HOST
www.wellchina.com.cn
HTTP_CONNECTION
close
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
<address>Apache Server at www.wellchina.com.cn Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.wellchina.com.cn
SERVER_ADDR
127.0.0.1
SERVER_PORT
80
REMOTE_ADDR
34.203.221.104
DOCUMENT_ROOT
/home/wellchinacomcn1wiehlxlqcqh5i8nsajc7o4mcc8n/wwwroot
REQUEST_SCHEME
http
CONTEXT_PREFIX
/php-run-as-cgi
CONTEXT_DOCUMENT_ROOT
/usr/php5.5/bin
SERVER_ADMIN
webmaster@wellchinacomcn
SCRIPT_FILENAME
/home/wellchinacomcn1wiehlxlqcqh5i8nsajc7o4mcc8n/wwwroot/sb.php
REMOTE_PORT
45598
REDIRECT_URL
/sb.php/index/news/details.html
REDIRECT_QUERY_STRING
id=7&q_id=10
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.0
REQUEST_METHOD
GET
QUERY_STRING
id=7&q_id=10
REQUEST_URI
/news/details.html?id=7&q_id=10
SCRIPT_NAME
/sb.php
PATH_INFO
/index/news/details.html
PATH_TRANSLATED
/home/wellchinacomcn1wiehlxlqcqh5i8nsajc7o4mcc8n/wwwroot/index/news/details.html
ORIG_PATH_INFO
/sb.php/index/news/details.html
ORIG_SCRIPT_NAME
/php-run-as-cgi/php-cgi
ORIG_SCRIPT_FILENAME
/usr/php5.5/bin/php-cgi
ORIG_PATH_TRANSLATED
/home/wellchinacomcn1wiehlxlqcqh5i8nsajc7o4mcc8n/wwwroot/sb.php/index/news/details.html
PHP_SELF
/sb.php/index/news/details.html
REQUEST_TIME_FLOAT
1711624163.6579
REQUEST_TIME
1711624163
Environment Variables
empty

ThinkPHP Constants

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