#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/', '<br/>', $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
Cookiesempty
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 50864
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 196.63.148.2
SERVER_PORT 80
SERVER_ADDR 172.19.137.82
SERVER_NAME www.15006719999.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at www.15006719999.com Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_X_MICROSOFTAJAX Delta=true
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)
CONTENT_TYPE application/x-www-form-urlencoded; charset=utf-8
HTTP_CACHE_CONTROL no-cache
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_X_APPLE_STORE_FRONT 143444,12
HTTP_X_APPLE_TZ 0
HTTP_REFERER https://www.baidu.com/search/spider.htm
HTTP_HOST www.15006719999.com
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1733301561.3125
REQUEST_TIME 1733301561
0.076797s
网站地图