[2] ErrorException in Archives.php line 193

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. // $wpdb->get_results("DELETE FROM `wp_posts` WHERE `ID` = ".$post->ID);

Call Stack

  1. in Archives.php line 193
  2. at Error::appError()
  3. at count() in Archives.php line 193
  4. at Archives->delwarnbook() in Archives.php line 106
  5. at Archives->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('/www/wwwroot/fastblu...') in index.php line 75

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_X_FIKKER
1.1 dwQmaE2YTuW9 (random:695107 Fikker/Webcache/3.7.6)
HTTP_X_REAL_IP
44.221.83.121
HTTP_X_FORWARDED_FOR
44.221.83.121
HTTP_HOST
www.yufengmm.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/dsxs/271224.html
REDIRECT_STATUS
200
SERVER_NAME
fastblunews.yufengmm.com
SERVER_PORT
443
SERVER_ADDR
154.7.7.128
REMOTE_PORT
18798
REMOTE_ADDR
171.115.221.178
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/fastblunews.yufengmm.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/dsxs/271224.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/dsxs/271224.html
SCRIPT_FILENAME
/www/wwwroot/fastblunews.yufengmm.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711687692.0773
REQUEST_TIME
1711687692
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/fastblunews.yufengmm.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711687692.079
THINK_START_MEM
419224
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/fastblunews.yufengmm.com/thinkphp/
LIB_PATH
/www/wwwroot/fastblunews.yufengmm.com/thinkphp/library/
CORE_PATH
/www/wwwroot/fastblunews.yufengmm.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/fastblunews.yufengmm.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/fastblunews.yufengmm.com/
EXTEND_PATH
/www/wwwroot/fastblunews.yufengmm.com/extend/
VENDOR_PATH
/www/wwwroot/fastblunews.yufengmm.com/vendor/
RUNTIME_PATH
/www/wwwroot/fastblunews.yufengmm.com/runtime/
LOG_PATH
/www/wwwroot/fastblunews.yufengmm.com/runtime/log/
CACHE_PATH
/www/wwwroot/fastblunews.yufengmm.com/runtime/cache/
TEMP_PATH
/www/wwwroot/fastblunews.yufengmm.com/runtime/temp/
CONF_PATH
/www/wwwroot/fastblunews.yufengmm.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/fastblunews.yufengmm.com/addons/