[8] ErrorException in baa7c162e717f7c71cf4a96f98f3073c.php line 136

Trying to access array offset on value of type null

  1. </div>
  2. </div>
  3. <div class="col-md-8">
  4. <div class="mainmenu-area pull-right">
  5. <div class="mainmenu hidden-sm hidden-xs">
  6. <nav>
  7. <ul id="nav">
  8. <li <?php if(empty($cate['topid'])): ?>class="current"<?php endif; ?>><a href="/">首 页</a></li>
  9. <?php $__CATE__ = \think\facade\Db::name('cate')->where('is_menu',1)->order('sort ASC,id DESC')->select();$__LIST__ = unlimitedForLayer($__CATE__);$__LIST__ = array_slice($__LIST__, 0,10); if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?>
  10. <li <?php if($nav['id'] == $cate['topid']): ?>class="current"<?php endif; ?>><a data-id="nav_key_<?php echo htmlentities($key); ?>" href="<?php echo htmlentities($nav['url']); ?>"><?php echo htmlentities($nav['catname']); ?></a>
  11. <?php if($nav['sub']): ?>
  12. <ul class="sub-menu">
  13. <?php if(is_array($nav['sub']) || $nav['sub'] instanceof \think\Collection || $nav['sub'] instanceof \think\Paginator): $i = 0; $__LIST__ = $nav['sub'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
  14. <li><a data-id="nav_sub_key_<?php echo htmlentities($key); ?>" href="<?php echo htmlentities($v['url']); ?>"><?php echo htmlentities($v['catname']); ?></a></li>
  15. <?php endforeach; endif; else: echo "" ;endif; ?>
  16. </ul>
  17. <?php endif; ?>
  18. </li>
  19. <?php endforeach; endif; else: echo "" ;endif; ?>

Call Stack

  1. in baa7c162e717f7c71cf4a96f98f3073c.php line 136
  2. at Error->appError() in baa7c162e717f7c71cf4a96f98f3073c.php line 136
  3. at include('/www/www/xinglx/runt...') in File.php line 59
  4. at File->read() in Template.php line 209
  5. at Template->fetch() in Think.php line 97
  6. at Think->fetch() in View.php line 144
  7. at View->fetch()
  8. at call_user_func_array() in Facade.php line 98
  9. at Facade::__callStatic() in Index.php line 57
  10. at Index->index()
  11. at ReflectionMethod->invokeArgs() in Container.php line 351
  12. at Container->invokeReflectMethod() in Controller.php line 82
  13. at Controller->think\route\dispatch\{closure}()
  14. at call_user_func_array() in Container.php line 300
  15. at Container->invokeFunction() in Container.php line 364
  16. at Container->invoke() in Middleware.php line 213
  17. at Middleware->think\{closure}()
  18. at call_user_func() in Middleware.php line 153
  19. at Middleware->dispatch() in Controller.php line 87
  20. at Controller->exec() in Dispatch.php line 102
  21. at Dispatch->run() in Route.php line 754
  22. at Route->think\{closure}()
  23. at call_user_func_array() in Container.php line 300
  24. at Container->invokeFunction() in Container.php line 364
  25. at Container->invoke() in Middleware.php line 213
  26. at Middleware->think\{closure}() in TraceDebug.php line 52
  27. at TraceDebug->handle()
  28. at ReflectionMethod->invokeArgs() in Container.php line 326
  29. at Container->invokeMethod() in Container.php line 367
  30. at Container->invoke() in Middleware.php line 213
  31. at Middleware->think\{closure}() in SessionInit.php line 62
  32. at SessionInit->handle()
  33. at ReflectionMethod->invokeArgs() in Container.php line 326
  34. at Container->invokeMethod() in Container.php line 367
  35. at Container->invoke() in Middleware.php line 213
  36. at Middleware->think\{closure}() in LoadLangPack.php line 64
  37. at LoadLangPack->handle()
  38. at ReflectionMethod->invokeArgs() in Container.php line 326
  39. at Container->invokeMethod() in Container.php line 367
  40. at Container->invoke() in Middleware.php line 213
  41. at Middleware->think\{closure}() in CheckRequestCache.php line 58
  42. at CheckRequestCache->handle()
  43. at ReflectionMethod->invokeArgs() in Container.php line 326
  44. at Container->invokeMethod() in Container.php line 367
  45. at Container->invoke() in Middleware.php line 213
  46. at Middleware->think\{closure}()
  47. at call_user_func() in Middleware.php line 153
  48. at Middleware->dispatch() in Route.php line 761
  49. at Route->dispatch() in Http.php line 188
  50. at Http->runWithRequest() in Http.php line 140
  51. at Http->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER apache
HOME /usr/share/httpd
HTTP_HOST www.szxyl.com.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.szxyl.com.cn
SERVER_PORT 80
SERVER_ADDR 172.18.88.70
REMOTE_PORT 48880
REMOTE_ADDR 35.172.193.238
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/www/xinglx/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/www/xinglx/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711649933.6291
REQUEST_TIME 1711649933
Environment Variablesempty
ThinkPHP Constants
U_IDNA_PROHIBITED_ERROR 66560
U_IDNA_ERROR_START 66560
U_IDNA_UNASSIGNED_ERROR 66561
U_IDNA_CHECK_BIDI_ERROR 66562
U_IDNA_STD3_ASCII_RULES_ERROR 66563
U_IDNA_ACE_PREFIX_ERROR 66564
U_IDNA_VERIFICATION_ERROR 66565
U_IDNA_LABEL_TOO_LONG_ERROR 66566
U_IDNA_ZERO_LENGTH_LABEL_ERROR 66567
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR 66568
U_IDNA_ERROR_LIMIT 66569
U_STRINGPREP_PROHIBITED_ERROR 66560
U_STRINGPREP_UNASSIGNED_ERROR 66561
U_STRINGPREP_CHECK_BIDI_ERROR 66562
IDNA_DEFAULT 0
IDNA_ALLOW_UNASSIGNED 1
IDNA_USE_STD3_RULES 2
IDNA_CHECK_BIDI 4
IDNA_CHECK_CONTEXTJ 8
IDNA_NONTRANSITIONAL_TO_ASCII 16
IDNA_NONTRANSITIONAL_TO_UNICODE 32
INTL_IDNA_VARIANT_2003 0
INTL_IDNA_VARIANT_UTS46 1
IDNA_ERROR_EMPTY_LABEL 1
IDNA_ERROR_LABEL_TOO_LONG 2
IDNA_ERROR_DOMAIN_NAME_TOO_LONG 4
IDNA_ERROR_LEADING_HYPHEN 8
IDNA_ERROR_TRAILING_HYPHEN 16
IDNA_ERROR_HYPHEN_3_4 32
IDNA_ERROR_LEADING_COMBINING_MARK 64
IDNA_ERROR_DISALLOWED 128
IDNA_ERROR_PUNYCODE 256
IDNA_ERROR_LABEL_HAS_DOT 512
IDNA_ERROR_INVALID_ACE_LABEL 1024
IDNA_ERROR_BIDI 2048
IDNA_ERROR_CONTEXTJ 4096