#0 [8]ErrorException in Term.php line 63

Trying to access array offset on value of type null

  1. if (is_numeric($term)) {
  2. $result = $this->getTermBy('id', $term, $term_group, $with);
  3. } else {
  4. $result = $this->getTermBy('name', $term, $term_group, $with);
  5. }
  6. //处理表头
  7. if ($result['parent']>0&&empty($result['header'])){
  8. $result['header']=$this->getTerm($result['parent'])['header'];
  9. }
  10. return $result;
  11. }
  12. public function getTermBy($field, $value, $term_group = '', $with = false)
  13. {
  14. $lang_id = vc_current_lang_id();

Call Stack

  1. in Term.php line 63
  2. at Error->appError() in Term.php line 63
  3. at Term->getTerm()
  4. at call_user_func_array() in Facade.php line 96
  5. at Facade::__callStatic() in function-view.php line 644
  6. at get_term_name() in slot_filter.php line 40
  7. at Php->{closure}()
  8. at array_reduce() in slot_filter.php line 42
  9. at include('/www/wwwroot/qu16428...') in main.php line 79
  10. at include('/www/wwwroot/qu16428...') in Php.php line 88
  11. at Php->fetch() in View.php line 90
  12. at View->think\{closure}() in View.php line 126
  13. at View->getContent() in View.php line 91
  14. at View->fetch()
  15. at call_user_func_array() in Facade.php line 96
  16. at Facade::__callStatic() in BaseComponent.php line 267
  17. at BaseComponent->content()
  18. at call_user_func_array() in Facade.php line 96
  19. at Facade::__callStatic() in DataView.php line 2
  20. at DataView::row() in DataView.php line 2
  21. at DataView::row() in DataView.php line 2
  22. at DataView::row() in DataView.php line 2
  23. at DataView::loop() in DataView.php line 2
  24. at DataView::row() in DataView.php line 2
  25. at DataView::row() in DataView.php line 2
  26. at DataView::row() in DataView.php line 2
  27. at DataView::do() in function-view.php line 227
  28. at vc_view() in Index.php line 307
  29. at Index->page()
  30. at ReflectionMethod->invokeArgs() in Container.php line 344
  31. at Container->invokeReflectMethod() in Controller.php line 110
  32. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  33. at Pipeline->think\{closure}() in Pipeline.php line 66
  34. at Pipeline->then() in Controller.php line 113
  35. at Controller->exec() in Dispatch.php line 90
  36. at Dispatch->run() in Route.php line 785
  37. at Route->think\{closure}() in Pipeline.php line 59
  38. at Pipeline->think\{closure}() in Pipeline.php line 66
  39. at Pipeline->then() in Route.php line 786
  40. at Route->dispatch() in Http.php line 216
  41. at Http->dispatchToRoute() in Http.php line 206
  42. at Http->think\{closure}() in Pipeline.php line 59
  43. at Pipeline->think\{closure}() in SessionInit.php line 67
  44. at SessionInit->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 LoadLangPack.php line 57
  48. at LoadLangPack->handle()
  49. at call_user_func() in Middleware.php line 142
  50. at Middleware->think\{closure}() in Pipeline.php line 85
  51. at Pipeline->think\{closure}() in TraceDebug.php line 71
  52. at TraceDebug->handle()
  53. at call_user_func() in Middleware.php line 142
  54. at Middleware->think\{closure}() in Pipeline.php line 85
  55. at Pipeline->think\{closure}() in Pipeline.php line 66
  56. at Pipeline->then() in Http.php line 207
  57. at Http->runWithRequest() in Http.php line 170
  58. at Http->run() in index.php line 11

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID c8b90f1ca1f0beda94e4ba5a3ef0096b
query-lang en
locale zh-cn
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_VIA CHN-ZJquzhou-AREACT3-CACHE18
HTTP_COOKIE PHPSESSID=c8b90f1ca1f0beda94e4ba5a3ef0096b; query-lang=en; locale=zh-cn
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.118 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_X_FORWARDED_FOR 173.44.244.146
HTTP_HOST www.raystar-tek.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME qu1642850847.cloud.coyuns.com.cn
SERVER_PORT 80
SERVER_ADDR 192.168.0.55
REMOTE_PORT
REMOTE_ADDR 173.44.244.146
SERVER_SOFTWARE nginx/1.19.8
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/qu1642850847.cloud.coyuns.com.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /en/product-2
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/en/product-2
SCRIPT_FILENAME /www/wwwroot/qu1642850847.cloud.coyuns.com.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1715134529.1256
REQUEST_TIME 1715134529
HTTPS ON