[8] ErrorException in Product.php line 73

未定义数组索引: id

  1. $info['content'] = preg_replace('/<img.*?src="(.*?)".*?>/i', '', $info['content']);
  2. $info['content'] = preg_replace('/<video.*?>.*?<\/video>/i', '', $info['content']);
  3. $info['content'] = preg_replace('/<a.*?>(.*?)<\/a>/i', '$1', $info['content']);
  4. $info['content'] = str_replace('hnhxjq.com', $this->domain, $info['content']);
  5. $info['content'] = str_replace(['河南红星机器','红星机器'], $this->company_name, $info['content']);
  6. $info['content'] = str_replace(['檀香路8号'], '', $info['content']);
  7. $this->assign('info',$info);
  8. $lists = Db::name("cwc_long")
  9. ->where('type_id',$info['id'])
  10. ->field("id,title,description,updatetime as time,image as cover,key_word")
  11. ->order('updatetime','desc')
  12. ->limit(15)->select();
  13. $this->assign('lists',$lists);
  14. foreach ($lists as $key=>$item){
  15. $lists[$key]['description'] = $this->str_phone($item['description']);
  16. }
  17. return $this->fetch('index/@product/content');
  18. }

Call Stack

  1. in Product.php line 73
  2. at Error::appError(8, 'Undefined index: id', '/data/www/csir.com.c...', 73, ['name' => 'mes', 'info' => ['content' => '']]) in Product.php line 73
  3. at Product->content('mes')
  4. at ReflectionMethod->invokeArgs(object(Product), ['mes']) in App.php line 343
  5. at App::invokeMethod([object(Product), 'content'], []) in App.php line 611
  6. at App::module([null, 'product', 'content'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => [null, 'product', 'content'], 'convert' => false], ['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('/data/www/csir.com.c...') in index.php line 24

Environment Variables

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

Server/Request Data

REDIRECT_UNIQUE_ID
ZgW-rtNKDRPKn@IXk1JbGgAARA4
REDIRECT_PATH_INFO
mes/60.html
REDIRECT_HTTPS
on
REDIRECT_SSL_TLS_SNI
www.csir.com.cn
REDIRECT_HTTP2
on
REDIRECT_H2PUSH
off
REDIRECT_H2_PUSH
off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID
3
REDIRECT_H2_STREAM_TAG
68-3
REDIRECT_STATUS
200
UNIQUE_ID
ZgW-rtNKDRPKn@IXk1JbGgAARA4
HTTPS
on
SSL_TLS_SNI
www.csir.com.cn
HTTP2
on
H2PUSH
off
H2_PUSH
off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID
3
H2_STREAM_TAG
68-3
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_REFERER
http://csir.com.cn/mes/60.html
HTTP_HOST
www.csir.com.cn
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/usr/local/apache/lib:/usr/local/openssl/lib
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
www.csir.com.cn
SERVER_ADDR
172.31.217.30
SERVER_PORT
443
REMOTE_ADDR
54.243.2.41
DOCUMENT_ROOT
/data/www/csir.com.cn/public
REQUEST_SCHEME
https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/data/www/csir.com.cn/public
SERVER_ADMIN
8424356@qq.com
SCRIPT_FILENAME
/data/www/csir.com.cn/public/index.php
REMOTE_PORT
57452
REDIRECT_URL
/mes/60.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/2.0
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/mes/60.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711652782.108
REQUEST_TIME
1711652782
PATH_INFO
mes/60.html
Environment Variables
empty

ThinkPHP Constants

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