#0 [8]ErrorException in Column.php line 106

Trying to access array offset on value of type null

  1. }
  2. /**
  3. * 专栏详情
  4. */
  5. public function detail()
  6. {
  7. $column_id = $this->request->param('id');
  8. $column_info = db('column')->where(['id'=>$column_id])->find();
  9. $column_info['user_info'] = Users::getUserInfo($column_info['uid']);
  10. $focus = ColumnModel::checkFocus($column_id,$this->user_id);
  11. $page = $this->request->param('page');
  12. $sort = $this->request->param('sort','column');
  13. if(!$column_info['verify'] && $this->user_id!=$column_info['uid'])
  14. {
  15. $this->error('该专栏不存在或审核中,暂时无法访问');
  16. }
  17. //记录用户浏览记录

Call Stack

  1. in Column.php line 106
  2. at Error->appError() in Column.php line 106
  3. at Column->detail()
  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 AppInit.php line 91
  18. at AppInit->handle()
  19. at call_user_func() in Middleware.php line 142
  20. at Middleware->think\{closure}() in Pipeline.php line 85
  21. at Pipeline->think\{closure}() in SessionInit.php line 67
  22. at SessionInit->handle()
  23. at call_user_func() in Middleware.php line 142
  24. at Middleware->think\{closure}() in Pipeline.php line 85
  25. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  26. at LoadLangPack->handle()
  27. at call_user_func() in Middleware.php line 142
  28. at Middleware->think\{closure}() in Pipeline.php line 85
  29. at Pipeline->think\{closure}() in TraceDebug.php line 71
  30. at TraceDebug->handle()
  31. at call_user_func() in Middleware.php line 142
  32. at Middleware->think\{closure}() in Pipeline.php line 85
  33. at Pipeline->think\{closure}() in Pipeline.php line 66
  34. at Pipeline->then() in Http.php line 207
  35. at Http->runWithRequest() in Http.php line 170
  36. at Http->run() in index.php line 23

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
return_url Lw==
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST dm.wecenter.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME dm.wecenter.com
SERVER_PORT 443
SERVER_ADDR 103.44.248.122
REMOTE_PORT 48748
REMOTE_ADDR 54.226.126.38
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /data/wwwroot/demo/public
DOCUMENT_URI /index.php
REQUEST_URI /column/detail/21.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/column/detail/21.html
SCRIPT_FILENAME /data/wwwroot/demo/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711641038.1565
REQUEST_TIME 1711641038
0.065354s