#0 [8]ErrorException in Cms.php line 127

Trying to access array offset on value of type null

  1. * 获取列表页面TDK
  2. * @param $info 内容
  3. * @param $cate 栏目
  4. * @param $system 系统
  5. * @return array
  6. */
  7. public function getListTdk($cate, $system)
  8. {
  9. $result = [];
  10. $result['title'] = $cate['title'] ?: $cate['cate_name']; // 标题
  11. $result['keywords'] = $cate['keywords'] ?: $system['key']; // 关键词
  12. $result['description'] = $cate['description'] ?: $system['des']; // 描述
  13. return $result;
  14. }
  15. /**
  16. * 获取列表页面模版
  17. * @param $info 内容
  18. * @param $cate 栏目

Call Stack

  1. in Cms.php line 127
  2. at Error->appError() in Cms.php line 127
  3. at Cms->getListTdk()
  4. at call_user_func_array() in Facade.php line 96
  5. at Facade::__callStatic() in Error.php line 69
  6. at Error->index()
  7. at ReflectionMethod->invokeArgs() in Container.php line 343
  8. at Container->invokeReflectMethod() in Controller.php line 110
  9. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  10. at Pipeline->think\{closure}() in Pipeline.php line 66
  11. at Pipeline->then() in Controller.php line 113
  12. at Controller->exec() in Dispatch.php line 89
  13. at Dispatch->run() in Route.php line 772
  14. at Route->think\{closure}() in Pipeline.php line 59
  15. at Pipeline->think\{closure}() in Pipeline.php line 66
  16. at Pipeline->then() in Route.php line 773
  17. at Route->dispatch() in Http.php line 216
  18. at Http->dispatchToRoute() in Http.php line 206
  19. at Http->think\{closure}() in Pipeline.php line 59
  20. at Pipeline->think\{closure}() in MultiApp.php line 71
  21. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  22. at Pipeline->think\{closure}() in Pipeline.php line 66
  23. at Pipeline->then() in MultiApp.php line 72
  24. at MultiApp->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 SessionInit.php line 67
  28. at SessionInit->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 TraceDebug.php line 71
  32. at TraceDebug->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 Pipeline.php line 66
  36. at Pipeline->then() in Http.php line 207
  37. at Http->runWithRequest() in Http.php line 170
  38. at Http->run() in index.php line 25

Environment Variables

GET Data
cate 16
page 6
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
PATH_TRANSLATED /www/wwwroot/SIYUCMS/public//index/Article/index.html
ORIG_SCRIPT_FILENAME /www/wwwroot/SIYUCMS/public/index.php//index/Article/index.html
HTTP_HOST ldhly.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
SERVER_NAME siyu.ldhly.com
SERVER_PORT 80
SERVER_ADDR 172.17.168.88
REMOTE_PORT 38298
REMOTE_ADDR 54.172.162.78
SERVER_SOFTWARE nginx/1.17.10
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/SIYUCMS/public
DOCUMENT_URI /index.php//index/Article/index.html
REQUEST_URI /index/Article/index.html?cate=16&page=6
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING cate=16&page=6
SCRIPT_NAME /index.php//index/Article/index.html
SCRIPT_FILENAME /www/wwwroot/SIYUCMS/public/index.php
PATH_INFO //index/Article/index.html
FCGI_ROLE RESPONDER
PHP_SELF /index.php//index/Article/index.html//index/Article/index.html
REQUEST_TIME_FLOAT 1711723797.3401
REQUEST_TIME 1711723797