正规葡京

[2] ErrorException in Index.php line 311

count(): Parameter must be an array or an object that implements Countable

  1. $xinwen_list = $this->db->table('xinwendongtai')->where(['status'=>1])->image(['image']);
  2. }else{
  3. $xinwen_list = $this->db->table('xinwendongtai')->like('tags',$tags,$page,'12',['image']);
  4. }
  5. }else{
  6. $xinwen_list = $this->db->table('xinwendongtai')->where(['catid'=>$listid,'status'=>1])->image(['image']);
  7. }
  8. //相关新闻
  9. $xinwen_xinagguan = $this->db->table('xinwendongtai')->where(['flag'=>3,'status'=>1])->limit(2,'id','desc','image');
  10. $xinwen_count = count($xinwen_list);
  11. $this->assign('tags',$tags);
  12. $this->assign('listid',$listid);
  13. $this->assign('xinwen_count',$xinwen_count);
  14. $this->assign('tags_list',$tags_list);
  15. $this->assign('xinwen_list',$xinwen_list);
  16. $this->assign('xinwen_xinagguan',$xinwen_xinagguan);
  17. $this->assign('xinwendongtai',$xinwendongtai[0]);
  18. $this->assign('quanbuxinwen',$quanbuxinwen);

Call Stack

  1. in Index.php line 311
  2. at Error::appError(2, 'count(): Parameter m...', '/www/wwwroot/trumane...', 311, ['listid' => 1, 'tags' => '广东', 'page' => 1, ...])
  3. at count(false) in Index.php line 311
  4. at Index->xinwendongtai()
  5. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  6. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['tags' => '广东']) in Module.php line 131
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request)) in App.php line 435
  19. at App->run() in index.php line 33

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID ulhcaetchhh3gcopa3fdplgfsn
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=ulhcaetchhh3gcopa3fdplgfsn
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.trumanedu.cn
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME trumanedu.cn
SERVER_PORT 80
SERVER_ADDR 172.31.127.166
REMOTE_PORT 43844
REMOTE_ADDR 50.117.114.202
SERVER_SOFTWARE nginx/1.17.8
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/trumanedu.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /index/index/xinwendongtai/tags/%E5%B9%BF%E4%B8%9C.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/index/xinwendongtai/tags/%E5%B9%BF%E4%B8%9C.html
SCRIPT_FILENAME /www/wwwroot/trumanedu.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1627157712.2671
REQUEST_TIME 1627157712
Environment Variablesempty
ThinkPHP Constants
IF_PUBLIC true
ROOT_PATH /www/wwwroot/trumanedu.cn/public/../
APP_PATH /www/wwwroot/trumanedu.cn/public/../application/
ADDON_PATH /www/wwwroot/trumanedu.cn/public/../addons/
ROOT_URL /
TEMPLATE_PATH /www/wwwroot/trumanedu.cn/public/../public/templates/
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256
Baidu
sogou