#0 [8]ErrorException in Lists.php line 66

Trying to access array offset on value of type null

  1. if (!is_numeric($dir) || strval(intval($dir)) !== strval($dir)) {
  2. $where['dir_name'] = $_REQUEST['s'];
  3. } else {
  4. $where['id'] = intval($dir);
  5. }
  6. /*根据栏目id查询页面*/
  7. $column = Column::where($where)->find();
  8. View::assign('column', $column);
  9. $bread_ids=$this->getParentId($column['id']);
  10. $bread_ids[]=1;
  11. $bread_ids=array_reverse($bread_ids);
  12. array_pop($bread_ids);
  13. $breads=Column::whereIn('id',$bread_ids)->where('status',1)->whereNull('delete_time')->select();
  14. View::assign('breads', $breads);
  15. if ($column) {
  16. //判断权限 start

Call Stack

  1. in Lists.php line 66
  2. at Error->appError() in Lists.php line 66
  3. at Lists->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 Pipeline.php line 66
  8. at Pipeline->then() in Controller.php line 113
  9. at Controller->exec() in Dispatch.php line 90
  10. at Dispatch->run() in Route.php line 772
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Route.php line 773
  14. at Route->dispatch() in Http.php line 216
  15. at Http->dispatchToRoute() in Http.php line 206
  16. at Http->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in MultiApp.php line 71
  18. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  19. at Pipeline->think\{closure}() in Pipeline.php line 66
  20. at Pipeline->then() in MultiApp.php line 72
  21. at MultiApp->handle()
  22. at call_user_func() in Middleware.php line 142
  23. at Middleware->think\{closure}() in Pipeline.php line 85
  24. at Pipeline->think\{closure}() in SessionInit.php line 67
  25. at SessionInit->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 LoadLangPack.php line 57
  29. at LoadLangPack->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 CheckUrl.php line 60
  33. at CheckUrl->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 CheckIp.php line 51
  37. at CheckIp->handle()
  38. at call_user_func() in Middleware.php line 142
  39. at Middleware->think\{closure}() in Pipeline.php line 85
  40. at Pipeline->think\{closure}() in Pipeline.php line 66
  41. at Pipeline->then() in Http.php line 207
  42. at Http->runWithRequest() in Http.php line 170
  43. at Http->run() in index.php line 35

Environment Variables

GET Data
160_html
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
TEMP /tmp
TMPDIR /tmp
TMP /tmp
PATH /usr/local/bin:/usr/bin:/bin
USER www
HOME /home/www
HTTP_HOST www.shmujia.com
HTTP_REFERER http://shmujia.com/content/?160.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
SERVER_NAME www.shmujia.com
SERVER_PORT 80
SERVER_ADDR 172.25.0.4
REMOTE_PORT 43210
REMOTE_ADDR 54.163.62.42
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/www/shmujia.com/public
DOCUMENT_URI /index.php
REQUEST_URI /content/?160.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/content/&160.html
SCRIPT_FILENAME /data/www/shmujia.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711652035.2509
REQUEST_TIME 1711652035