[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. }
  19. }

Call Stack

  1. in Index.php line 161
  2. at Error::appError(8, 'Undefined index: ', '/data/home/qxu119486...', 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('/data/home/qxu119486...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

s_u
0
s_l
zh_CN
PHPSESSID
okeme4h6t1m7v5af19nldi9i06
route
b3adfd78f087df8bd1cf08ab15ddbd02
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/qxu1194860077/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
s_u=0; s_l=zh_CN; PHPSESSID=okeme4h6t1m7v5af19nldi9i06; route=b3adfd78f087df8bd1cf08ab15ddbd02
HTTP_HOST
www.procentec.com.cn
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH
/bin:/usr/bin
PHPRC
/var/www/php56/hichina_ini/qxu1194860077
QUERY_STRING
s=/page51
REDIRECT_DOCUMENT_ROOT
/usr/home/qxu1194860077/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
gzip
REDIRECT_HTTP_COOKIE
s_u=0; s_l=zh_CN; PHPSESSID=okeme4h6t1m7v5af19nldi9i06; route=b3adfd78f087df8bd1cf08ab15ddbd02
REDIRECT_HTTP_HOST
www.procentec.com.cn
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
REDIRECT_PATH
/bin:/usr/bin
REDIRECT_QUERY_STRING
s=/page51
REDIRECT_REMOTE_ADDR
104.232.105.2
REDIRECT_REMOTE_PORT
48590
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/page51
REDIRECT_SCRIPT_FILENAME
/usr/home/qxu1194860077/htdocs/page51
REDIRECT_SCRIPT_NAME
/page51
REDIRECT_SCRIPT_URI
/page51
REDIRECT_SCRIPT_URL
/page51
REDIRECT_SERVER_ADDR
121.42.91.40
REDIRECT_SERVER_ADMIN
webmaster@qxu1194860077.my3w.com
REDIRECT_SERVER_NAME
www.procentec.com.cn
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
XyxcfwofR2EAAFR0UXUAAAAE
REDIRECT_URL
/page51
REMOTE_ADDR
104.232.105.2
REMOTE_PORT
48590
REQUEST_METHOD
GET
REQUEST_URI
/page51
SCRIPT_FILENAME
/usr/home/qxu1194860077/htdocs/index.php
SCRIPT_NAME
/index.php
SCRIPT_URI
/page51
SCRIPT_URL
/page51
SERVER_ADDR
121.42.91.40
SERVER_ADMIN
webmaster@qxu1194860077.my3w.com
SERVER_NAME
www.procentec.com.cn
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
XyxcfwofR2EAAFR0UXUAAAAE
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1596742783.6954
REQUEST_TIME
1596742783
PATH_INFO
/page51
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/home/qxu1194860077/htdocs/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1596742783.6963
THINK_START_MEM
226216
EXT
.php
DS
/
THINK_PATH
/data/home/qxu1194860077/htdocs/thinkphp/
LIB_PATH
/data/home/qxu1194860077/htdocs/thinkphp/library/
CORE_PATH
/data/home/qxu1194860077/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/home/qxu1194860077/htdocs/thinkphp/library/traits/
ROOT_PATH
/data/home/qxu1194860077/htdocs/
EXTEND_PATH
/data/home/qxu1194860077/htdocs/extend/
VENDOR_PATH
/data/home/qxu1194860077/htdocs/vendor/
RUNTIME_PATH
/data/home/qxu1194860077/htdocs/runtime/
LOG_PATH
/data/home/qxu1194860077/htdocs/runtime/log/
CACHE_PATH
/data/home/qxu1194860077/htdocs/runtime/cache/
TEMP_PATH
/data/home/qxu1194860077/htdocs/runtime/temp/
CONF_PATH
/data/home/qxu1194860077/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false