[8] ErrorException in Lists.php line 26

未定义数组索引: templist

  1. }
  2. // 获取模板
  3. $typeInfo = db("column")->where('id', $typeId)->find();
  4. $typeInfo['parent'] = db('column')->where('id', $typeInfo['pid'])->find();
  5. $typeInfo['children'] = db('column')->where('pid', $typeId)->find();
  6. // 获取子集的文章列表
  7. if ($typeInfo['children'] && $typeInfo['children']['channeltype'] != 3) {
  8. $typeInfo['children']['arclist'] = db('article')->where('typeid', $typeInfo['children']['id'])->where('status', 1)->order('sort_order asc,create_time desc')->select();
  9. }
  10. $tempList = $typeInfo['templist'];
  11. $tempList = str_replace(".html", "", $tempList);
  12. $list = [];
  13. $single = '';
  14. $where = '';
  15. $channeltype = $typeInfo['channeltype'];
  16. if ($channeltype == 3) {
  17. $where['typeid'] = $typeId;

Call Stack

  1. in Lists.php line 26
  2. at Error::appError(8, 'Undefined index: tem...', '/www/wwwroot/new-nb....', 26, ['typeId' => 574, 'typeInfo' => ['parent' => null, 'children' => null]]) in Lists.php line 26
  3. at Lists->index()
  4. at ReflectionMethod->invokeArgs(object(Lists), []) in App.php line 343
  5. at App::invokeMethod([object(Lists), 'index'], []) in App.php line 611
  6. at App::module([null, 'lists', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => [null, 'lists', 'index'], '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('/www/wwwroot/new-nb....') in index.php line 12

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "home_language": 1 }

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.new-nb.com
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at www.new-nb.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.new-nb.com
SERVER_ADDR
172.29.82.198
SERVER_PORT
80
REMOTE_ADDR
3.236.214.123
DOCUMENT_ROOT
/www/wwwroot/new-nb.com
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/new-nb.com
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/new-nb.com/index.php
REMOTE_PORT
44928
REDIRECT_URL
/hy/krwallworkstation/574.html
REDIRECT_QUERY_STRING
s=/hy/krwallworkstation/574.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=/hy/krwallworkstation/574.html
REQUEST_URI
/hy/krwallworkstation/574.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711663486.0548
REQUEST_TIME
1711663486
PATH_INFO
/hy/krwallworkstation/574.html
Environment Variables
empty

ThinkPHP Constants

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