澳门尼威斯人网站8311欢迎您(China)后入-App Store

#0 [0]Error in NewsController.php line 77

Call to a member function toArray() on null

  1. public function list()
  2. {
  3. $type = $this->request->param('type',0,'intval');
  4. $this->assign('type', $type);
  5. $NavMenuModel = new NavMenuModel();
  6. $pro_nav_list = $NavMenuModel->order('list_order','asc')->where(['nav_id'=>1,'parent_id'=>5,'status'=>1])->field('name,href,highlight,target')->select()->toArray();
  7. $this->assign('pro_nav_list', $pro_nav_list);
  8. $NavMenuModel = new NavMenuModel();
  9. $pro_nav_one = $NavMenuModel->where(['nav_id'=>1,'status'=>1,'parent_id'=>5,'highlight'=>$type])->field('name,des,href,name_en,target,highlight')->find()->toArray();
  10. $this->assign('pro_nav_one', $pro_nav_one);
  11. if($type==3){
  12. $check_list = PortalArticleModel::where(['is_published'=>1,'article_type'=>3])->order(['is_top'=>'DESC','list_order'=>'ASC','create_time'=>'DESC'])->field('id,article_type,title,desc,create_time,thumbnail')->paginate(6);
  13. foreach($check_list as $k=>$v){
  14. $check_list[$k]['year'] = date('Y',$v['create_time']);
  15. $check_list[$k]['md'] = date('m-d',$v['create_time']);
  16. }

Call Stack

  1. in NewsController.php line 77
  2. at NewsController->list()
  3. at ReflectionMethod->invokeArgs(object(NewsController), []) in Container.php line 344
  4. at Container->invokeReflectMethod(object(NewsController), object(ReflectionMethod), ['depart_id' => '1']) in Controller.php line 146
  5. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  6. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  7. at Pipeline->then(object(Closure)) in Controller.php line 149
  8. at Controller->exec() in Dispatch.php line 90
  9. at Dispatch->run() in Route.php line 772
  10. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  11. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  12. at Pipeline->then(object(Closure)) in Route.php line 773
  13. at Route->dispatch(object(Request), object(Closure)) in Http.php line 217
  14. at Http->dispatchToRoute(object(Request)) in Http.php line 207
  15. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  16. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  17. at SessionInit->handle(object(Request), object(Closure))
  18. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  19. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  20. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  21. at TraceDebug->handle(object(Request), object(Closure))
  22. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  23. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  24. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  25. at Pipeline->then(object(Closure)) in Http.php line 208
  26. at Http->runWithRequest(object(Request)) in Http.php line 171
  27. at Http->run() in index.php line 32

Environment Variables

GET Data
depart_id 1
POST Dataempty
Filesempty
Cookies
PHPSESSID 930c3998036ce9cf81f3a08b20cd57ce
Session
last_time 1692962586
Server/Request Data
USER nobody
HOME /
HTTP_COOKIE PHPSESSID=930c3998036ce9cf81f3a08b20cd57ce
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.fengyuanhuaxue.com
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
REDIRECT_STATUS 200
SERVER_NAME www.fengyuanhuaxue.com
SERVER_PORT 443
SERVER_ADDR 10.19.242.31
REMOTE_PORT 57478
REMOTE_ADDR 107.158.194.2
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/user/htdocs/public
DOCUMENT_URI /index.php
REQUEST_URI //portal/news/list.html?depart_id=1
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//portal/news/list.html&depart_id=1
PATH_INFO
SCRIPT_FILENAME /data/user/htdocs/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1692962610.6691
REQUEST_TIME 1692962610
0.037823s
XML 地图