PA视讯

#0 [8]ErrorException in Map.php line 92

Trying to access array offset on value of type null

  1. * 公益详情页
  2. * @code String
  3. */
  4. public function view()
  5. {
  6. $id = Request::param('id', 0);
  7. $theNews = Db::name($this->table)->where('id', $id)->where('status', 1)->where('deleted', 0)->find();
  8. $theCate = Db::name('data_welfare_region')->where('id', $theNews['cate'])->where('status', 1)->where('deleted', 0)->find();
  9. $this->assign('theNews',$theNews);
  10. $this->assign('title',$theNews["name"].'-'.$theCate["name"].'-公益地图-PA视讯集团');
  11. $this->assign('keywords',$theNews["name"]);
  12. $this->assign('description',$theNews["remark"]);
  13. $this->assign('theCate',$theCate);
  14. //上下篇
  15. // $preNews = Db::table($this->table)->where('id','<', $theNews["id"])->where('status', 1)->where('deleted', 0)->order('id desc')->find();
  16. // $nextNews = Db::table($this->table)->where('id','>', $theNews["id"])->where('status', 1)->where('deleted', 0)->order('id asc')->find();
  17. // $this->assign('preNews',$preNews);
  18. // $this->assign('nextNews',$nextNews);

Call Stack

  1. in Map.php line 92
  2. at Error->appError() in Map.php line 92
  3. at Map->view()
  4. at ReflectionMethod->invokeArgs() in Container.php line 343
  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 89
  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 Library.php line 122
  13. at Library->think\admin\{closure}()
  14. at call_user_func() in Middleware.php line 142
  15. at Middleware->think\{closure}() in Pipeline.php line 85
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Route.php line 773
  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 Multiple.php line 72
  22. at Multiple->think\admin\multiple\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in Multiple.php line 73
  25. at Multiple->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 59
  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 SessionInit.php line 67
  33. at SessionInit->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 SystemService.php line 392
  40. at SystemService->doInit() in index.php line 24

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID f7b89239d9c3c7de5c45edea28fc1ab0
lang zh-cn
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=f7b89239d9c3c7de5c45edea28fc1ab0; lang=zh-cn
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH_INFO
HTTP_HOST www.gz-sanli.com
REDIRECT_STATUS 200
SERVER_NAME gz-sanli.com
SERVER_PORT 80
SERVER_ADDR 172.16.0.3
REMOTE_PORT 44340
REMOTE_ADDR 107.158.255.34
SERVER_SOFTWARE nginx/1.30.6
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/gz-sanli.com/public
DOCUMENT_URI /index.php
REQUEST_URI /map/detail/21
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/map/detail/21
SCRIPT_FILENAME /www/wwwroot/gz-sanli.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1795917957.1949
REQUEST_TIME 1795917957