[2] ErrorException in News.php line 370

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

  1. $get_content = $this->get_remote_file_content('pb_book.txt',$site_path,'https://api.52dede.com/wp/voilations.php?act=title');
  2. $get_content = json_decode($get_content,true);
  3. $sigle_title = $title;
  4. if(count($get_content) >=1){
  5. //判断是否违规书籍,如果是的话就删除
  6. foreach($get_content as $pb_str){
  7. //判断违规书记是否存在屏蔽列表库
  8. if(strpos($sigle_title,$pb_str) !== false){
  9. if($model_id == 1){
  10. $Archive = new ArchivesModel();

Call Stack

  1. in News.php line 370
  2. at Error::appError()
  3. at count() in News.php line 370
  4. at News->delwarnbook() in News.php line 161
  5. at News->index()
  6. at call_user_func_array() in Route.php line 78
  7. at Route->execute()
  8. at ReflectionMethod->invokeArgs() in App.php line 343
  9. at App::invokeMethod() in App.php line 470
  10. at App::exec() in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/home/wwwroot/fast.d...') in index.php line 126

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_REFERER
https://www.dgsanli.com/4338.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.dgsanli.com
PATH_INFO
/news/4338.html
REDIRECT_STATUS
200
SERVER_NAME
fast.dgsanli.com
SERVER_PORT
443
SERVER_ADDR
23.224.23.234
REMOTE_PORT
42898
REMOTE_ADDR
34.230.84.106
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/home/wwwroot/fast.dgsanli.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/news/4338.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/news/4338.html
SCRIPT_FILENAME
/home/wwwroot/fast.dgsanli.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710820427.807
REQUEST_TIME
1710820427
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/fast.dgsanli.com/public/../application/
THINK_VERSION
5.0.25
THINK_START_TIME
1710820427.8075
THINK_START_MEM
424480
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/fast.dgsanli.com/thinkphp/
LIB_PATH
/home/wwwroot/fast.dgsanli.com/thinkphp/library/
CORE_PATH
/home/wwwroot/fast.dgsanli.com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/fast.dgsanli.com/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/fast.dgsanli.com/
EXTEND_PATH
/home/wwwroot/fast.dgsanli.com/extend/
VENDOR_PATH
/home/wwwroot/fast.dgsanli.com/vendor/
RUNTIME_PATH
/home/wwwroot/fast.dgsanli.com/runtime/
LOG_PATH
/home/wwwroot/fast.dgsanli.com/runtime/log/
CACHE_PATH
/home/wwwroot/fast.dgsanli.com/runtime/cache/
TEMP_PATH
/home/wwwroot/fast.dgsanli.com/runtime/temp/
CONF_PATH
/home/wwwroot/fast.dgsanli.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/home/wwwroot/fast.dgsanli.com/addons/