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

Trying to access array offset on value of type null

  1. } else {
  2. $where['id'] = intval($dir);
  3. }
  4. /*根据栏目id查询页面*/
  5. $column = Column::where($where)->find();
  6. View::assign('column', $column);
  7. if(empty($column['image'])){
  8. $wherec['lang'] = $lang;
  9. $wherec['status'] = 1;
  10. $wherec['model_id'] = $column['model_id'];
  11. $wherec['parent_id'] = 0;
  12. $column_p = Column::where($wherec)->find();
  13. $column['image'] = empty($column['image']) ? $column_p['image'] : $column['image'];
  14. $column['sub_title'] = empty($column['sub_title']) ? $column_p['sub_title'] : $column['sub_title'];
  15. $column['description'] = empty($column['description']) ? $column_p['description'] : $column['description'];
  16. $column['out_link'] = empty($column['out_link']) ? $column_p['out_link'] : $column['out_link'];
  17. $column['seo_title'] = empty($column['seo_title']) ? $column_p['seo_title'] : $column['seo_title'];
  18. $column['phone_pic'] = empty($column['phone_pic']) ? $column_p['phone_pic'] : $column['phone_pic'];
  19. }

Call Stack

  1. in Lists.php line 62
  2. at Error->appError() in Lists.php line 62
  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 Sitemap.php line 142
  20. at Sitemap->handle()
  21. at call_user_func() in Middleware.php line 142
  22. at Middleware->think\{closure}() in Pipeline.php line 85
  23. at Pipeline->think\{closure}() in SessionInit.php line 67
  24. at SessionInit->handle()
  25. at call_user_func() in Middleware.php line 142
  26. at Middleware->think\{closure}() in Pipeline.php line 85
  27. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  28. at LoadLangPack->handle()
  29. at call_user_func() in Middleware.php line 142
  30. at Middleware->think\{closure}() in Pipeline.php line 85
  31. at Pipeline->think\{closure}() in CheckUrl.php line 56
  32. at CheckUrl->handle()
  33. at call_user_func() in Middleware.php line 142
  34. at Middleware->think\{closure}() in Pipeline.php line 85
  35. at Pipeline->think\{closure}() in CheckWhiteIp.php line 53
  36. at CheckWhiteIp->handle()
  37. at call_user_func() in Middleware.php line 142
  38. at Middleware->think\{closure}() in Pipeline.php line 85
  39. at Pipeline->think\{closure}() in CheckIp.php line 53
  40. at CheckIp->handle()
  41. at call_user_func() in Middleware.php line 142
  42. at Middleware->think\{closure}() in Pipeline.php line 85
  43. at Pipeline->think\{closure}() in Pipeline.php line 66
  44. at Pipeline->then() in MultiApp.php line 72
  45. at MultiApp->handle()
  46. at call_user_func() in Middleware.php line 142
  47. at Middleware->think\{closure}() in Pipeline.php line 85
  48. at Pipeline->think\{closure}() in SessionInit.php line 67
  49. at SessionInit->handle()
  50. at call_user_func() in Middleware.php line 142
  51. at Middleware->think\{closure}() in Pipeline.php line 85
  52. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  53. at LoadLangPack->handle()
  54. at call_user_func() in Middleware.php line 142
  55. at Middleware->think\{closure}() in Pipeline.php line 85
  56. at Pipeline->think\{closure}() in CheckUrl.php line 60
  57. at CheckUrl->handle()
  58. at call_user_func() in Middleware.php line 142
  59. at Middleware->think\{closure}() in Pipeline.php line 85
  60. at Pipeline->think\{closure}() in Pipeline.php line 66
  61. at Pipeline->then() in Http.php line 207
  62. at Http->runWithRequest() in Http.php line 170
  63. at Http->run() in index.php line 35

Environment Variables

GET Dataempty
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_REFERER http://www.pallet-sh.com/en/
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.pallet-sh.com
REDIRECT_STATUS 200
SERVER_NAME www.pallet-sh.com
SERVER_PORT 443
SERVER_ADDR 121.46.197.205
REMOTE_PORT 39016
REMOTE_ADDR 44.220.245.254
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /data/www/pallet-sh.com/public
DOCUMENT_URI /index.php
REQUEST_URI /en/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/en/
SCRIPT_FILENAME /data/www/pallet-sh.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710843701.475
REQUEST_TIME 1710843701