[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 64

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 dwZ9AyUCyaW6 (random:436260 CDN/Fly/3.8.3)
HTTP_X_REAL_IP
44.192.93.109
HTTP_X_FORWARDED_FOR
44.192.93.109
HTTP_HOST
www.shengcaijin.com
HTTP_REFERER
https://www.shengcaijin.com/1050.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/xiaoshuo/1050.html
REDIRECT_STATUS
200
SERVER_NAME
fastbluenews.shengcaijin.com
SERVER_PORT
443
SERVER_ADDR
59.63.188.176
REMOTE_PORT
REMOTE_ADDR
44.192.93.109
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/fastbluenews.shengcaijin.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/xiaoshuo/1050.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/xiaoshuo/1050.html
SCRIPT_FILENAME
/www/wwwroot/fastbluenews.shengcaijin.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711687236.6261
REQUEST_TIME
1711687236
Environment Variables
empty

ThinkPHP Constants

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