[2] ErrorException in Index.php line 47

file_get_contents(http://www.u2licai.com/addons/cms/index/index?ismobile=true): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

  1. }
  2. if(isset($_SERVER['HTTP_REFERER'])){
  3. if(stripos($_SERVER['HTTP_REFERER'],'baidu') !== false || stripos($_SERVER['HTTP_REFERER'],'sogou') !== false || stripos($_SERVER['HTTP_REFERER'],'sm') !== false || stripos($_SERVER['HTTP_REFERER'],'toutiao') !== false || stripos($_SERVER['HTTP_REFERER'],'so') !== false){
  4. $get_bool =true;
  5. }
  6. }
  7. //做个判断
  8. $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
  9. $urls = file_get_contents($http_type.$_SERVER['HTTP_HOST'].'/addons/cms/index/index?ismobile=true');
  10. $config = get_addon_config("nightcat");
  11. if($config['site_404']){
  12. if(!$get_bool){
  13. echo "404";
  14. exit;
  15. }
  16. }

Call Stack

  1. in Index.php line 47
  2. at Error::appError()
  3. at file_get_contents() in Index.php line 47
  4. at Index->index()
  5. at call_user_func_array() in Route.php line 78
  6. at Route->execute()
  7. at ReflectionMethod->invokeArgs() in App.php line 343
  8. at App::invokeMethod() in App.php line 470
  9. at App::exec() in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/fast.u2...') in index.php line 100

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_REFERER
http://www.yunbao66.com/sptiz/78716/58124908.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_CDN_REAL_IP
44.200.249.42
HTTP_X_CLIENT_SCHEME
http
HTTP_X_FORWARDED_FOR
44.200.249.42
HTTP_ALI_SWIFT_STAT_HOST
level2.www.u2licai.com
HTTP_ALI_SWIFT_LOG_HOST
www.u2licai.com
HTTP_EAGLEEYE_TRACEID
3da0c00f17116576845793753e
HTTP_VIA
cn6425.l1, kunlun8.cn6425, l2cn3160.l2, cache57.l2cn3160
HTTP_HOST
www.u2licai.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
fast.u2licai.com
SERVER_PORT
80
SERVER_ADDR
104.218.167.14
REMOTE_PORT
41134
REMOTE_ADDR
112.82.213.77
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/fast.u2licai.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/fast.u2licai.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711657685.6112
REQUEST_TIME
1711657685
Environment Variables
empty

ThinkPHP Constants

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