Warning: Cannot modify header information - headers already sent by (output started at /data/www/leke.gzdanlai.com/public/ini.php:18) in /data/www/leke.gzdanlai.com/public/index.php on line 19

[8] ErrorException in Product.php line 136

未定义数组索引: cate_id

  1. if ($this->data['article']['meta_description'] != '') {
  2. $this->data['seo']['meta_description'] = $this->data['article']['meta_description'];
  3. }
  4. $this->data['cate_id'] = $this->data['article']['cate_id'];
  5. // $this->data['article']['create_date'] = date("Y-m-d", strtotime($this->data['article']['create_date']));
  6. $game_list_count = Db::name('article')->where(['status'=>1, 'product_id' => ['like', '%"' . $id . '"%']])->count('*');
  7. $this->data['article']['game_list'] = Db::name('article')->where(['status'=>1, 'product_id' => ['like', '%"' . $id . '"%']])->limit(intval($game_list_count/2)*2)->order(['sort'=>'asc', 'article_id'=>'desc'])->select();
  8. }
  9. $this->data['other'] = Db::name('article')->field('article_id,title,cate_id,status,sort,img,summary')->where('cate_id', $this->data['cate_id'])->where('status', '1')->where('article_id', '<>', $id)->order('sort', 'asc')->order('article_id', 'desc')->select();
  10. return $this->fetch('detail', $this->data);
  11. }
  12. private function sortArr($arrays,$sort_key,$sort_order=SORT_ASC,$sort_type=SORT_NUMERIC ){
  13. $key_arrays =array();
  14. if(is_array($arrays)){
  15. foreach ($arrays as $array){
  16. if(is_array($array)){
  17. $key_arrays[] = $array[$sort_key];

Call Stack

  1. in Product.php line 136
  2. at Error::appError(8, 'Undefined index: cat...', '/data/www/leke.gzdan...', 136, ['id' => '255']) in Product.php line 136
  3. at Product->detail('255')
  4. at ReflectionMethod->invokeArgs(object(Product), ['255']) in App.php line 343
  5. at App::invokeMethod([object(Product), 'detail'], ['id' => '255']) in Loader.php line 596
  6. at Loader::action('index/product/detail', ['id' => '255'], 'controller', false) in App.php line 466
  7. at App::exec(['type' => 'controller', 'controller' => 'index/product/detail', 'var' => []], ['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/leke.gzdan...') in index.php line 24

Environment Variables

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

Server/Request Data

REDIRECT_HTTPS
on
REDIRECT_SSL_TLS_SNI
qanjtf.com
REDIRECT_STATUS
200
HTTPS
on
SSL_TLS_SNI
qanjtf.com
SSL_SERVER_S_DN_CN
qanjtf.com
SSL_SERVER_I_DN_C
US
SSL_SERVER_I_DN_O
DigiCert Inc
SSL_SERVER_I_DN_OU
www.digicert.com
SSL_SERVER_I_DN_CN
Encryption Everywhere DV TLS CA - G2
SSL_SERVER_SAN_DNS_0
qanjtf.com
SSL_SERVER_SAN_DNS_1
qanjtf.com
SSL_VERSION_INTERFACE
mod_ssl/2.4.52
SSL_VERSION_LIBRARY
OpenSSL/1.0.1e-fips
SSL_PROTOCOL
TLSv1.2
SSL_SECURE_RENEG
true
SSL_COMPRESS_METHOD
NULL
SSL_CIPHER
ECDHE-RSA-AES256-GCM-SHA384
SSL_CIPHER_EXPORT
false
SSL_CIPHER_USEKEYSIZE
256
SSL_CIPHER_ALGKEYSIZE
256
SSL_CLIENT_VERIFY
NONE
SSL_SERVER_M_VERSION
3
SSL_SERVER_M_SERIAL
0A8658EDD8121D3A6C1579F39094385C
SSL_SERVER_V_START
Jun 16 00:00:00 2025 GMT
SSL_SERVER_V_END
Sep 13 23:59:59 2025 GMT
SSL_SERVER_S_DN
CN=qanjtf.com
SSL_SERVER_I_DN
CN=Encryption Everywhere DV TLS CA - G2,OU=www.digicert.com,O=DigiCert Inc,C=US
SSL_SERVER_A_KEY
rsaEncryption
SSL_SERVER_A_SIG
sha256WithRSAEncryption
SSL_SESSION_RESUMED
Initial
HTTP_ACCEPT
text/html, application/xhtml+xml, */*
CONTENT_TYPE
text/html
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
HTTP_HOST
qanjtf.com
HTTP_CONNECTION
Close
PATH
/sbin:/usr/sbin:/bin:/usr/bin
LD_LIBRARY_PATH
/usr/local/Apache2/lib
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.52 (Unix) OpenSSL/1.0.1e-fips
SERVER_NAME
qanjtf.com
SERVER_ADDR
172.17.214.96
SERVER_PORT
443
REMOTE_ADDR
154.89.84.2
DOCUMENT_ROOT
/data/www/leke.gzdanlai.com/public
REQUEST_SCHEME
https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/data/www/leke.gzdanlai.com/public
SERVER_ADMIN
you@example.com
SCRIPT_FILENAME
/data/www/leke.gzdanlai.com/public/index.php
REMOTE_PORT
58326
REDIRECT_URL
/product/detail/255.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/product/detail/255.html
SCRIPT_NAME
/index.php
PATH_INFO
/product/detail/255.html
PATH_TRANSLATED
redirect:/index.php/product/detail/255.html/detail/255.html
PHP_SELF
/index.php/product/detail/255.html
REQUEST_TIME_FLOAT
1753044122.312
REQUEST_TIME
1753044122
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/www/leke.gzdanlai.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1753044122.3135
THINK_START_MEM
278392
EXT
.php
DS
/
THINK_PATH
/data/www/leke.gzdanlai.com/thinkphp/
LIB_PATH
/data/www/leke.gzdanlai.com/thinkphp/library/
CORE_PATH
/data/www/leke.gzdanlai.com/thinkphp/library/think/
TRAIT_PATH
/data/www/leke.gzdanlai.com/thinkphp/library/traits/
ROOT_PATH
/data/www/leke.gzdanlai.com/
EXTEND_PATH
/data/www/leke.gzdanlai.com/extend/
VENDOR_PATH
/data/www/leke.gzdanlai.com/vendor/
RUNTIME_PATH
/data/www/leke.gzdanlai.com/runtime/
LOG_PATH
/data/www/leke.gzdanlai.com/runtime/log/
CACHE_PATH
/data/www/leke.gzdanlai.com/runtime/cache/
TEMP_PATH
/data/www/leke.gzdanlai.com/runtime/temp/
CONF_PATH
/data/www/leke.gzdanlai.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
tinify\VERSION
1.5.2