[8] ErrorException in Index.php line 161

未定义数组索引:

  1. }
  2. }
  3. }else{
  4. $temp = $setting['show_template'];
  5. }
  6. return $temp;
  7. }
  8. //递归获取顶级fid
  9. private function get_fid($catid,&$fid=0){
  10. $parentid = $this->categorys[$catid]['parentid'];
  11. if($parentid){
  12. $fid = $parentid;
  13. self::get_fid($parentid,$fid);
  14. }else{
  15. $fid = $catid;
  16. }
  17. return $fid;
  18. }

Call Stack

  1. in Index.php line 161
  2. at Error::appError(8, 'Undefined index: ', '/www/wwwroot/www.enr...', 161, ['catid' => '', 'fid' => 0]) in Index.php line 161
  3. at Index->get_fid('') in Index.php line 36
  4. at Index->lists()
  5. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  6. at App::invokeMethod([object(Index), 'lists'], []) in App.php line 611
  7. at App::module([null, 'index', 'lists'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => [null, 'index', 'lists'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/wwwroot/www.enr...') in index.php line 17

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/www.enrichee.com/index.php
QUERY_STRING
s=/projects_services.asp
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/projects_services.asp
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/www.enrichee.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.22.1
REMOTE_ADDR
3.238.233.189
REMOTE_PORT
58276
SERVER_ADDR
192.168.0.118
SERVER_PORT
80
SERVER_NAME
www.enrichee.com
REDIRECT_STATUS
200
PATH_INFO
/projects_services.asp
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.enrichee.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711644875.6501
REQUEST_TIME
1711644875
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.enrichee.com/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711644875.6505
THINK_START_MEM
259328
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.enrichee.com/thinkphp/
LIB_PATH
/www/wwwroot/www.enrichee.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.enrichee.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.enrichee.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.enrichee.com/
EXTEND_PATH
/www/wwwroot/www.enrichee.com/extend/
VENDOR_PATH
/www/wwwroot/www.enrichee.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.enrichee.com/runtime/
LOG_PATH
/www/wwwroot/www.enrichee.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.enrichee.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.enrichee.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.enrichee.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false