[8] ErrorException in 65efb2174db99fa7e8884016869db3ba.php line 286

未定义数组索引: category

  1. </div>
  2. <div id="header">
  3. <div class="header-xiancheng" id="xc_top">
  4. <!--<h1 class="xiancheng-logo" style="background: url(/static/picture/pc_logo.png) no-repeat;background-size: 100% 100%;width: 50px;height: 50px;margin-top: 20px;margin-left:110px;" onclick="window.location.href='/home/index/index';">百家时评</h1>-->
  5. <h1 class="xiancheng-logo" style="background: url(/img/logo.png) no-repeat;background-size: 100% 100%;width: 180px;height: 60px;margin-top: 16px;margin-left:110px;" onclick="window.location.href='/home/index/index';">百家时评</h1>
  6. <ul class="nav-xiancheng" style="width: 70%;padding-left: 30px;">
  7. <li <?php if($cate == 0): ?> class="cur" <?php endif; ?>><a href="/home/index/index/cate/0" >首页</a></li>
  8. <?php if(is_array($category) || $category instanceof \think\Collection || $category instanceof \think\Paginator): if( count($category)==0 ) : echo "" ;else: foreach($category as $key=>$v): ?>
  9. <li <?php if($cate == $v['id']): ?> class="cur" <?php endif; ?>><a href="/home/index/index/cate/<?php echo $v['id']; ?>"><?php echo $v['category']; ?></a></li>
  10. <?php endforeach; endif; else: echo "" ;endif; ?>
  11. <!-- <li><a href="http://www.1mtime.com" target="_blank">育儿知识</a></li> -->
  12. </ul>
  13. <!--<a href=""><div class="abort fr white mar-r-106">登录</div></a>-->
  14. <div class="clearfix"></div>
  15. </div>
  16. </div>
  17. <div class="xiancheng-wrap" style='margin:20px auto 40px'>
  18. <p class="bnav-xc"><a href="/home/index/index">百家时评文章</a><i>&gt;</i><?php echo $cate_name; ?></p>

Call Stack

  1. in 65efb2174db99fa7e8884016869db3ba.php line 286
  2. at Error::appError(8, 'Undefined index: cat...', '/www/wwwroot/zhanhao...', 286, ['cacheFile' => '/www/wwwroot/zhanhao...', 'vars' => ['cate' => '0', 'article' => '0', 'type' => '2', ...], 'cate' => '0', ...]) in 65efb2174db99fa7e8884016869db3ba.php line 286
  3. at include('/www/wwwroot/zhanhao...') in File.php line 53
  4. at File->read('/www/wwwroot/zhanhao...', ['cate' => '0', 'article' => '0', 'type' => '2', ...]) in Template.php line 188
  5. at Template->fetch('/www/wwwroot/zhanhao...', ['cate' => '0', 'article' => '0', 'type' => '2', ...], []) in Think.php line 86
  6. at Think->fetch('index', ['cate' => '0', 'article' => '0', 'type' => '2', ...], []) in View.php line 163
  7. at View->fetch('index', ['cate' => '0', 'article' => '0', 'type' => '2', ...]) in Base.php line 40
  8. at Base->show(['cate' => '0', 'article' => '0', 'type' => '2', ...]) in Index.php line 263
  9. at Index->index()
  10. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  11. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  12. at App::module(['home', 'index', 'index'], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...], null) in App.php line 457
  13. at App::exec(['type' => 'module', 'module' => ['home', 'index', 'index']], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/zhanhao...') in index.php line 17

Environment Variables

GET Data

page
456
POST Data
empty
Files
empty

Cookies

scan_code
171165343982054264523377460157
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/zhanhao/public/index.php
QUERY_STRING
s=/home/index/index/cate/0/type/2&page=456
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/home/index/index/cate/0/type/2?page=456
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/zhanhao/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
34.201.16.34
REMOTE_PORT
52692
SERVER_ADDR
10.0.4.12
SERVER_PORT
80
SERVER_NAME
www.xn--glr604k.com
REDIRECT_STATUS
200
PATH_INFO
/home/index/index/cate/0/type/2
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
xn--glr604k.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711653439.8042
REQUEST_TIME
1711653439
Environment Variables
empty

ThinkPHP Constants

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