ju11九州网站首页-ju11net九州网页

#0 [8]ErrorException in WebCommon.php line 39

Trying to access array offset on value of type null

  1. }
  2. //指定栏目信息以及二级与三级栏目
  3. public function getCate($id,$page=1){
  4. if(!empty(config('app.cateJump')[$id])){$id=config('app.cateJump')[$id];}
  5. $cate=Db::table($this->prefix.'_category')->where('status','>',0)->find($id);
  6. if(empty($cate)){$this->error(config('app.lang')['empty'],'',0);}
  7. //考虑应用中可能同时要列表与内容所以只要有body_id都取BODY内容
  8. if(!empty($cate['body_id'])){
  9. $body=Db::table($this->prefix.'_body')->find($cate['body_id']);
  10. $cate['body']=htmlspecialchars_decode($body['body']);
  11. }else{
  12. $cate['body']='';
  13. }
  14. if(!empty($cate['description'])){
  15. $cate['description']=preg_replace('/\r\n|\\n/', '
    ', $cate['description']);
  16. }
  17. if(!empty($cate['confs_id'])){$cate['confs']=$this->getConfsById($cate['confs_id']);}
  18. $cate['cate']=$this->getCateData('getTop',$id);
  19. if(empty($cate['litpic'])){

Call Stack

  1. in WebCommon.php line 39
  2. at Error->appError() in WebCommon.php line 39
  3. at WebCommon->getCate() in Index.php line 47
  4. at Index->cate()
  5. at ReflectionMethod->invokeArgs() in Container.php line 344
  6. at Container->invokeReflectMethod() in Controller.php line 110
  7. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  8. at Pipeline->think\{closure}() in Pipeline.php line 66
  9. at Pipeline->then() in Controller.php line 113
  10. at Controller->exec() in Dispatch.php line 80
  11. at Dispatch->run() in Route.php line 793
  12. at Route->think\{closure}() in Pipeline.php line 59
  13. at Pipeline->think\{closure}() in Pipeline.php line 66
  14. at Pipeline->then() in Route.php line 794
  15. at Route->dispatch() in Http.php line 216
  16. at Http->dispatchToRoute() in Http.php line 206
  17. at Http->think\{closure}() in Pipeline.php line 59
  18. at Pipeline->think\{closure}() in MultiApp.php line 51
  19. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  20. at Pipeline->think\{closure}() in Pipeline.php line 66
  21. at Pipeline->then() in MultiApp.php line 52
  22. at MultiApp->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 SessionInit.php line 67
  26. at SessionInit->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 9

Environment Variables

GET Data
en/hope-63_html
POST Dataempty
Filesempty
Cookies
PHPSESSID 0c0adcb90e18a63ca119adc552f167b3
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /en/hope-63.html
QUERY_STRING en/hope-63.html
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING en/hope-63.html
REDIRECT_URL /en/hope-63.html
REMOTE_PORT 42758
SCRIPT_FILENAME /www/wwwroot/bestcarrier/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/bestcarrier/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/bestcarrier/public
REMOTE_ADDR 170.130.200.174
SERVER_PORT 80
SERVER_ADDR 172.19.137.82
SERVER_NAME best-carrier.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
Apache Server at best-carrier.com Port 80
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_COOKIE PHPSESSID=0c0adcb90e18a63ca119adc552f167b3
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST best-carrier.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1734784760.644
REQUEST_TIME 1734784760
0.094721s