#0 [8]ErrorException in Index.php line 57

Trying to access array offset on value of type null

                        
  1. $this->site_id = $this->app->db->name('digit_taobao_site')
  2. ->whereRaw("site_url = '{$site_url}' or exclusive_site_url = '{$site_url}'")
  3. ->value('id');
  4. // dump($this->site_id);exit;
  5. }
  6. public function index()
  7. {
  8. $this->site_info = $site_info = $this->app->db->name('digit_taobao_site')->where(['id'=>$this->site_id])->find();
  9. $uid = $site_info['uid'];
  10. /*
  11. $self_ids = $this->app->db->name('system_user')->where(['id'=>$uid])->value("self_cat");
  12. $integral_cats=$this->app->db->name('digit_integral_cat')->where(['status'=>1])
  13. ->whereOr("id",'in' ,$self_ids)->column('id');
  14. */
  15. $integral_cats = array_column(get_user_fw($uid),'id');
  16. $goods_list = $this->app->db->name('DigitSiteGoods')
  17. ->where(['site_id'=>$this->site_id,'catid'=>$integral_cats,'is_home'=>1])
  18. ->select()

Call Stack

  1. in Index.php line 57
  2. at Error->appError() in Index.php line 57
  3. at Index->index()
  4. at ReflectionMethod->invokeArgs() in Container.php line 343
  5. at Container->invokeReflectMethod() in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  7. at Pipeline->think\{closure}() in Pipeline.php line 66
  8. at Pipeline->then() in Controller.php line 113
  9. at Controller->exec() in Dispatch.php line 89
  10. at Dispatch->run() in Route.php line 772
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Library.php line 111
  13. at Library->think\admin\{closure}()
  14. at call_user_func() in Middleware.php line 142
  15. at Middleware->think\{closure}() in Pipeline.php line 85
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Route.php line 773
  18. at Route->dispatch() in Http.php line 216
  19. at Http->dispatchToRoute() in Http.php line 206
  20. at Http->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in Multiple.php line 72
  22. at Multiple->think\admin\multiple\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in Multiple.php line 73
  25. at Multiple->handle()
  26. at call_user_func() in Middleware.php line 142
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in LoadLangPack.php line 59
  29. at LoadLangPack->handle()
  30. at call_user_func() in Middleware.php line 142
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in SessionInit.php line 67
  33. at SessionInit->handle()
  34. at call_user_func() in Middleware.php line 142
  35. at Middleware->think\{closure}() in Pipeline.php line 85
  36. at Pipeline->think\{closure}() in Pipeline.php line 66
  37. at Pipeline->then() in Http.php line 207
  38. at Http->runWithRequest() in Http.php line 170
  39. at Http->run() in SystemService.php line 392
  40. at SystemService->doInit() in index.php line 23

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.checkrepeat.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME paper.nicezhushou.com
SERVER_PORT 80
SERVER_ADDR 172.24.207.184
REMOTE_PORT 42648
REMOTE_ADDR 44.201.64.238
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/paper_newb/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/paper_newb/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711665997.5169
REQUEST_TIME 1711665997