#0 [8]ErrorException in common.php line 74

Trying to access array offset on value of type null

  1. $goodstype = PublicService::typePackRow(['id' => $catid], 'name,id,parent_id');
  2. $html = '';
  3. if ($catid == 0) {
  4. $html = '<a href="/">首页</a>' . $html;
  5. return $html;
  6. } else {
  7. if ($index == 1) {
  8. $html = $ext . '<span>' . $goodstype['name'] . '</span>' . $html;
  9. } else {
  10. $html = $ext . '<a href="/lpdz/' . $goodstype['id'] . '">' . $goodstype['name'] . '</a>' . $html;
  11. }
  12. $index++;
  13. $html = dcatpos($goodstype['parent_id'], $ext, $index) . $html;
  14. }
  15. return $html;
  16. }
  17. // 这是系统自动生成的公共文件
  18. /**

Call Stack

  1. in common.php line 74
  2. at Error->appError() in common.php line 74
  3. at dcatpos() in common.php line 77
  4. at dcatpos() in 611f0075d12fe85a4c77199fe3e73d41.php line 212
  5. at include('/www/wwwroot/jzjgift...') in File.php line 59
  6. at File->read() in Template.php line 255
  7. at Template->fetch() in Think.php line 149
  8. at Think->fetch() in View.php line 90
  9. at View->think\{closure}() in View.php line 126
  10. at View->getContent() in View.php line 91
  11. at View->fetch()
  12. at call_user_func_array() in Facade.php line 96
  13. at Facade::__callStatic() in Index.php line 828
  14. at Index->detail()
  15. at ReflectionMethod->invokeArgs() in Container.php line 343
  16. at Container->invokeReflectMethod() in Controller.php line 110
  17. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  18. at Pipeline->think\{closure}() in Pipeline.php line 66
  19. at Pipeline->then() in Controller.php line 113
  20. at Controller->exec() in Dispatch.php line 89
  21. at Dispatch->run() in Route.php line 772
  22. at Route->think\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in Route.php line 773
  25. at Route->dispatch() in Http.php line 216
  26. at Http->dispatchToRoute() in Http.php line 206
  27. at Http->think\{closure}() in Pipeline.php line 59
  28. at Pipeline->think\{closure}() in MultiApp.php line 71
  29. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  30. at Pipeline->think\{closure}() in Pipeline.php line 66
  31. at Pipeline->then() in MultiApp.php line 72
  32. at MultiApp->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 SessionInit.php line 67
  36. at SessionInit->handle()
  37. at call_user_func() in Middleware.php line 142
  38. at Middleware->think\{closure}() in Pipeline.php line 85
  39. at Pipeline->think\{closure}() in CheckRequestCache.php line 94
  40. at CheckRequestCache->handle()
  41. at call_user_func() in Middleware.php line 142
  42. at Middleware->think\{closure}() in Pipeline.php line 85
  43. at Pipeline->think\{closure}() in TraceDebug.php line 71
  44. at TraceDebug->handle()
  45. at call_user_func() in Middleware.php line 142
  46. at Middleware->think\{closure}() in Pipeline.php line 85
  47. at Pipeline->think\{closure}() in Pipeline.php line 66
  48. at Pipeline->then() in Http.php line 207
  49. at Http->runWithRequest() in Http.php line 170
  50. at Http->run() in index.php line 32

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST jzjgift.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME jzjgift.com
SERVER_PORT 443
SERVER_ADDR 172.17.57.163
REMOTE_PORT 48194
REMOTE_ADDR 52.91.255.225
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/jzjgift.com/public
DOCUMENT_URI /index.php
REQUEST_URI /detail/816/20081
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/detail/816/20081
SCRIPT_FILENAME /www/wwwroot/jzjgift.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711663709.0608
REQUEST_TIME 1711663709
0.316499s