365亚洲体育网入口官网

[8] ErrorException in Index.php line 74

Trying to access array offset on value of type null

  1. $list4=Db::name("detail")->where($where)->order("sort desc")->select();$this->assign('list4',$list4);$this->assign('amount4',count($list4));
  2. return $this->fetch('Index/skill');
  3. }
  4. //解决方案
  5. public function project()
  6. {
  7. /*tdk*/$tdk=tdk(4);$this->assign("tdk",$tdk);/*banner*/$banner=banner(4);$this->assign('banner',$banner);
  8. //页面
  9. $data=Db::name("project")->find(Request::param('id'));$this->assign('data',$data);
  10. $where=[["cid","eq",$data['cid']],["boss","eq",$data['boss']],["lead","eq","0"]];
  11. $list=Db::name("project")->where($where)->order("sort desc")->select();$this->assign('list',$list);
  12. $where=[["lead","eq",$data['id']]];$entry=Db::name("project")->where($where)->order("sort asc")->select();$this->assign('entry',$entry);
  13. $where=[["cid","eq","4"],["level3","eq",$data['id']],["level4","eq",$entry[0]['id']]];
  14. $list1=Db::name("detail")->where($where)->order("sort desc")->select();$this->assign('list1',$list1);$this->assign('amount1',count($list1));
  15. $where=[["cid","eq","4"],["level3","eq",$data['id']],["level4","eq",$entry[1]['id']]];
  16. $list2=Db::name("detail")->where($where)->order("sort desc")->select();$this->assign('list2',$list2);$this->assign('amount2',count($list2));
  17. $where=[["cid","eq","4"],["level3","eq",$data['id']],["level4","eq",$entry[2]['id']]];
  18. $list3=Db::name("detail")->where($where)->order("sort desc")->select();$this->assign('list3',$list3);$this->assign('amount3',count($list3));
  19. $where=[["cid","eq","4"],["level3","eq",$data['id']],["level4","eq",$entry[3]['id']]];

Call Stack

  1. in Index.php line 74
  2. at Error::appError() in Index.php line 74
  3. at Index->project()
  4. at ReflectionMethod->invokeArgs() in Container.php line 395
  5. at Container->invokeReflectMethod() in Module.php line 131
  6. at Module->think\route\dispatch\{closure}()
  7. at call_user_func_array() in Middleware.php line 185
  8. at Middleware->think\{closure}()
  9. at call_user_func() in Middleware.php line 130
  10. at Middleware->dispatch() in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}()
  14. at call_user_func_array() in Middleware.php line 185
  15. at Middleware->think\{closure}()
  16. at call_user_func() in Middleware.php line 130
  17. at Middleware->dispatch() in App.php line 435
  18. at App->run() in index.php line 12

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.xjmhjt.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME xinjiangone.hjyhy.com
SERVER_PORT 80
SERVER_ADDR 172.21.51.255
REMOTE_PORT 35518
REMOTE_ADDR 23.90.23.210
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/xinjiang/first
DOCUMENT_URI /index.php
REQUEST_URI /project/id/javacript:void(0)
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/project/id/javacript:void(0)
SCRIPT_FILENAME /www/wwwroot/xinjiang/first/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1779582159.7262
REQUEST_TIME 1779582159
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/xinjiang/first/application/