#0 [8]ErrorException in 1a9dcead9a4377fa0066ea6e85645679.php line 284

未定义数组下标: 1

  1. <?php
  2. $catinfo = catinfo(4);
  3. $page = input('page') ? input('page') : 1;
  4. $cat = input('cat') ? input('cat') : childcatlist(childcatlist($catinfo)[0])[0]['id'];
  5. $pcat = getPcatinfo($cat,1);//向上2级
  6. ?>
  7. <div class="publicLeft">
  8. <?php foreach(childcatlist($catinfo) as $k=>$v): ?>
  9. <div class="li <?php if($v['id']==$pcat[1]['id']): ?>active<?php endif; ?>">
  10. <h5><?php echo htmlentities($v['title']); ?><div class="liOn"></div></h5>
  11. <div class="li2">
  12. <?php foreach(childcatlist($v) as $ks=>$vs): ?>
  13. <a class="<?php if($vs['id'] == $pcat[0]['id']): ?>active<?php endif; ?>" href="<?php echo url('/product/index/'); ?>?cat=<?php echo htmlentities($vs['id']); ?>"><?php echo htmlentities($vs['title']); ?></a>
  14. <?php endforeach; ?>
  15. </div>
  16. </div>
  17. <?php endforeach; ?>
  18. </div>

Call Stack

  1. in 1a9dcead9a4377fa0066ea6e85645679.php line 284
  2. at Error->appError(8, 'Undefined offset: 1', '/www/wwwroot/cnweb/r...', 284, ['cacheFile' => '/www/wwwroot/cnweb/r...', 'vars' => ['cid' => 4, 'id' => 0, 'aliasurl' => '', ...], 'cid' => 4, ...]) in 1a9dcead9a4377fa0066ea6e85645679.php line 284
  3. at include('/www/wwwroot/cnweb/r...') in File.php line 59
  4. at File->read('/www/wwwroot/cnweb/r...', ['cid' => 4, 'id' => 0, 'aliasurl' => '', ...]) in Template.php line 255
  5. at Template->fetch('/www/wwwroot/cnweb/a...', ['cid' => 4, 'id' => 0, 'aliasurl' => '', ...]) in Think.php line 149
  6. at Think->fetch('/www/wwwroot/cnweb/a...', ['cid' => 4, 'id' => 0, 'aliasurl' => '', ...]) in View.php line 90
  7. at View->think\{closure}() in View.php line 126
  8. at View->getContent(object(Closure)) in View.php line 91
  9. at View->fetch('/product/index', []) in View.php line 92
  10. at View->output('/product/index') in Response.php line 388
  11. at Response->getContent() in CookieBarSetting.php line 121
  12. at CookieBarSetting->handle(object(Request), object(Closure))
  13. at call_user_func([object(CookieBarSetting), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  14. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  15. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  16. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  17. at MultiApp->handle(object(Request), object(Closure))
  18. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  19. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  20. at Pipeline->think\{closure}(object(Request)) in Glide.php line 90
  21. at Glide->__invoke(object(Request), object(Closure)) in Glide.php line 51
  22. at Glide->handle(object(Request), object(Closure))
  23. at call_user_func([object(Glide), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  24. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  25. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  26. at SessionInit->handle(object(Request), object(Closure))
  27. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  28. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  29. at Pipeline->think\{closure}(object(Request)) in LoadLangPack.php line 57
  30. at LoadLangPack->handle(object(Request), object(Closure))
  31. at call_user_func([object(LoadLangPack), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  32. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  33. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  34. at TraceDebug->handle(object(Request), object(Closure))
  35. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  36. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  37. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  38. at Pipeline->then(object(Closure)) in Http.php line 207
  39. at Http->runWithRequest(object(Request)) in Http.php line 170
  40. at Http->run() in index.php line 26

Environment Variables

GET Data
cat 4756
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_MICROSOFTAJAX Delta=true
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP_CONTENT_TYPE application/x-www-form-urlencoded; charset=utf-8
HTTP_CACHE_CONTROL no-cache
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_X_APPLE_STORE_FRONT 143444,12
HTTP_X_APPLE_TZ 0
HTTP_REFERER https://www.baidu.com/search/spider.htm
HTTP_HOST www.kmbinshang.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.kmbinshang.com
SERVER_PORT 443
SERVER_ADDR 172.18.213.92
REMOTE_PORT 35308
REMOTE_ADDR 154.220.64.2
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/cnweb/public
DOCUMENT_URI /index.php
REQUEST_URI //product/index/?cat=4756
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE application/x-www-form-urlencoded; charset=utf-8
REQUEST_METHOD GET
QUERY_STRING s=/product/index/&cat=4756
SCRIPT_FILENAME /www/wwwroot/cnweb/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1773765031.6428
REQUEST_TIME 1773765031
0.390316s
站点地图