#0 [2]ErrorException in Article.php line 90

Trying to access array offset on value of type null

  1. $thecate = cache('category_'.$tid);
  2. $child_cate = [];
  3. // 如果没有缓存栏目,重新生成一下并获取;
  4. if (!$thecate) {
  5. $cateMod = new CategoryModel();
  6. $cateMod->cacheInfo();
  7. $thecate = cache('category_'.$tid);
  8. }
  9. if ($thecate['pid'] == 0) {
  10. $child_cate = $tree->get_child($tid);
  11. $this->catid = $tid;
  12. $cateinfo = cache('category_'.$tid);
  13. } else {
  14. $fa_cats = $tree->get_pos($tid);
  15. $cateinfo = $fa_cats[0];
  16. $child_cate = $tree->get_child($cateinfo['id']);
  17. $this->catid = $cateinfo['id'];
  18. }

Call Stack

  1. in Article.php line 90
  2. at Error->appError() in Article.php line 90
  3. at Article->index()
  4. at ReflectionMethod->invokeArgs() in Container.php line 344
  5. at Container->invokeReflectMethod() in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  7. at Pipeline->think\{closure}() in Browers.php line 57
  8. at Browers->handle()
  9. at call_user_func() in Middleware.php line 142
  10. at Middleware->think\{closure}() in Pipeline.php line 85
  11. at Pipeline->think\{closure}() in Pipeline.php line 66
  12. at Pipeline->then() in Controller.php line 113
  13. at Controller->exec() in Dispatch.php line 90
  14. at Dispatch->run() in Route.php line 785
  15. at Route->think\{closure}() in Pipeline.php line 59
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Route.php line 786
  18. at Route->dispatch() in Http.php line 216
  19. at Http->dispatchToRoute() in Http.php line 206
  20. at Http->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in MultiApp.php line 71
  22. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in MultiApp.php line 72
  25. at MultiApp->handle()
  26. at call_user_func() in Middleware.php line 142
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in SessionInit.php line 67
  29. at SessionInit->handle()
  30. at call_user_func() in Middleware.php line 142
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in TraceDebug.php line 71
  33. at TraceDebug->handle()
  34. at call_user_func() in Middleware.php line 142
  35. at Middleware->think\{closure}() in Pipeline.php line 85
  36. at Pipeline->think\{closure}() in Pipeline.php line 66
  37. at Pipeline->then() in Http.php line 207
  38. at Http->runWithRequest() in Http.php line 170
  39. at Http->run() in index.php line 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.cen-sun.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME cen-sun.com
SERVER_PORT 80
SERVER_ADDR 172.17.235.78
REMOTE_PORT 42448
REMOTE_ADDR 44.200.179.138
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /mnt/www/cen-sun.com/public
DOCUMENT_URI /index.php
REQUEST_URI /product/product/37_92.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//product/product/37_92.html
SCRIPT_FILENAME /mnt/www/cen-sun.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711648926.2874
REQUEST_TIME 1711648926