[8] ErrorException in Cate.php line 42

平安彩票秒速赛车

  1. // 1 => 0,
  2. // // 省略...
  3. // 5 => 1,
  4. // // 省略...
  5. // 13 => 5
  6. // ];
  7. // 建议将这数组缓存起来
  8. $id = $cid;
  9. while($arr[$id]) {
  10. $id = $arr[$id];
  11. }
  12. return $id; // 1
  13. }
  14. public function getPageContent($cid){
  15. $cates=$this->field('content')->find($cid);
  16. $content=strip_tags($cates['content']);
  17. $content=cut_str($content,66);

Call Stack

  1. in Cate.php line 42
  2. at Error::appError(8, 'Undefined offset: 44', '/www/wwwroot/www.krm...', 42, ['cid' => 44, 'data' => [['id' => 17, 'pid' => 0], ['id' => 18, 'pid' => 17], ['id' => 19, 'pid' => 17], ...], 'arr' => [0, 17, 17, ...], ...]) in Cate.php line 42
  3. at Cate->getTopId(44) in Cate.php line 196
  4. at Cate->publiccat(44) in Cate.php line 156
  5. at Cate->sh()
  6. at ReflectionMethod->invokeArgs(object(Cate), []) in App.php line 224
  7. at App::invokeMethod([object(Cate), 'sh'], []) in App.php line 389
  8. at App::module(['index', 'cate', 'sh'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 130
  9. at App::run() in start.php line 18
  10. at require('/www/wwwroot/www.krm...') in index.php line 18

平安彩票秒速赛车

Error Context
cid 44
data [ { "id": 17, "pid": 0 }, { "id": 18, "pid": 17 }, { "id": 19, "pid": 17 }, { "id": 20, "pid": 17 }, { "id": 21, "pid": 17 }, { "id": 16, "pid": 0 }, { "id": 22, "pid": 0 }, { "id": 23, "pid": 22 }, { "id": 24, "pid": 22 }, { "id": 25, "pid": 22 }, { "id": 26, "pid": 0 }, { "id": 27, "pid": 0 }, { "id": 28, "pid": 0 }, { "id": 29, "pid": 0 }, { "id": 30, "pid": 0 }, { "id": 31, "pid": 0 }, { "id": 32, "pid": 31 }, { "id": 45, "pid": 26 }, { "id": 33, "pid": 26 }, { "id": 34, "pid": 0 }, { "id": 35, "pid": 31 }, { "id": 36, "pid": 31 }, { "id": 37, "pid": 31 }, { "id": 38, "pid": 31 }, { "id": 39, "pid": 31 }, { "id": 40, "pid": 38 }, { "id": 41, "pid": 38 }, { "id": 43, "pid": 0 }, { "id": 46, "pid": 0 } ]
arr { "17": 0, "18": 17, "19": 17, "20": 17, "21": 17, "16": 0, "22": 0, "23": 22, "24": 22, "25": 22, "26": 0, "27": 0, "28": 0, "29": 0, "30": 0, "31": 0, "32": 31, "45": 26, "33": 26, "34": 0, "35": 31, "36": 31, "37": 31, "38": 31, "39": 31, "40": 38, "41": 38, "43": 0, "46": 0 }
k 28
v { "id": 46, "pid": 0 }
id 44

平安彩票秒速赛车

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/www.krm.com/index.php
QUERY_STRING s=/sh/
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /sh/
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/www.krm.com
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.8.1
REMOTE_ADDR 154.85.189.178
REMOTE_PORT 63351
SERVER_ADDR 172.31.154.186
SERVER_PORT 80
SERVER_NAME www.krm.com
REDIRECT_STATUS 200
PATH_INFO /sh/
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
HTTP_HOST www.kiomodesign.com
HTTP_ACCEPT */*
HTTP_REFERER http://www.shimengzao.com/sh/
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1548620305.1356
REQUEST_TIME 1548620305
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.krm.com/./application/
THINK_VERSION 5.0.6
THINK_START_TIME 1548620305.1362
THINK_START_MEM 259488
EXT .php
DS /
THINK_PATH /www/wwwroot/www.krm.com/thinkphp/
LIB_PATH /www/wwwroot/www.krm.com/thinkphp/library/
CORE_PATH /www/wwwroot/www.krm.com/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/www.krm.com/thinkphp/library/traits/
ROOT_PATH /www/wwwroot/www.krm.com/
EXTEND_PATH /www/wwwroot/www.krm.com/extend/
VENDOR_PATH /www/wwwroot/www.krm.com/vendor/
RUNTIME_PATH /www/wwwroot/www.krm.com/runtime/
LOG_PATH /www/wwwroot/www.krm.com/runtime/log/
CACHE_PATH /www/wwwroot/www.krm.com/runtime/cache/
TEMP_PATH /www/wwwroot/www.krm.com/runtime/temp/
CONF_PATH /www/wwwroot/www.krm.com/./application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false