[2] ErrorException in Bot.php line 20

file_get_contents(http://www.seo33.com.cn/addons/cms/index/index): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

  1. $rs = Request::instance();
  2. $url = $rs->domain();
  3. if (file_exists($cacheDir . '/' . $cacheFileName) && (time() - filemtime($cacheDir . '/' . $cacheFileName)) < 600) {
  4. // 缓存文件存在且未超过10分钟,直接读取缓存文件内容
  5. $cachedData = file_get_contents($cacheDir . '/' . $cacheFileName);
  6. return $cachedData;
  7. } else {
  8. $index_content = $url . '/addons/cms/index/index';
  9. $index_content = file_get_contents($index_content);
  10. // 缓存文件不存在或超过10分钟,重新生成缓存并存储
  11. $dataToCache = $index_content;
  12. // 存储数据到缓存文件
  13. file_put_contents($cacheDir . '/' . $cacheFileName, $dataToCache);
  14. return $dataToCache;
  15. }
  16. }

Call Stack

  1. in Bot.php line 20
  2. at Error::appError()
  3. at file_get_contents() in Bot.php line 20
  4. at Bot::get_cms_index() in Index.php line 186
  5. at Index->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/seo33.c...') in index.php line 22

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.seo33.com.cn
HTTP_REFERER
http://www.seo33.com.cn/dongwu/200380/
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
seo33.com.cn
SERVER_PORT
80
SERVER_ADDR
154.7.7.193
REMOTE_PORT
51606
REMOTE_ADDR
54.144.233.198
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/seo33.com.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/seo33.com.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711644186.5116
REQUEST_TIME
1711644186
Environment Variables
empty

ThinkPHP Constants

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