[8] ErrorException in XFile.php line 25

未定义数组索引: HTTP_USER_AGENT

  1. public function __construct($siteid = '',$path = '',$types = '')
  2. {
  3. $this->file_path = config('FILE_CACHE_PATH');
  4. $this->file_ext = config('file_ext');
  5. $this->siteid = $siteid;
  6. $this->types = $types;
  7. $this->cached_name = '';
  8. $this->user_agent = $_SERVER['HTTP_USER_AGENT'];
  9. if(!file_exists($this->file_path)){
  10. exit('缓存目录不存在.');
  11. }
  12. // 搜狗蜘蛛
  13. if (preg_match("/.*(sogou|sogou|sogo).*/i", $this->user_agent)){
  14. $this->spider_types = 1;

Call Stack

  1. in XFile.php line 25
  2. at Error::appError(8, 'Undefined index: HTT...', '/data/reproxy/extend...', 25, ['siteid' => 'BmZDNJep', 'path' => 'hotic2017', 'types' => 'caipiao']) in XFile.php line 25
  3. at XFile->__construct('BmZDNJep', 'hotic2017', 'caipiao') in XCache.php line 9
  4. at XCache::Chenk('BmZDNJep', 'hotic2017', 'hotic2017', 'caipiao') in Index.php line 37
  5. at Index->plus('caipiao', 'BmZDNJep', 'hotic2017')
  6. at ReflectionMethod->invokeArgs(object(Index), ['caipiao', 'BmZDNJep', 'hotic2017']) in App.php line 343
  7. at App::invokeMethod([object(Index), 'plus'], []) in App.php line 611
  8. at App::module([null, null, 'plus'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => [null, null, 'plus'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/data/reproxy/thinkp...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

_vstime
1562030276
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/data/reproxy/public/index.php
QUERY_STRING
s=/caipiao/BmZDNJep/hotic2017/
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/caipiao/BmZDNJep/hotic2017/
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/data/reproxy/public
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.15.9
REMOTE_ADDR
121.12.119.6
REMOTE_PORT
8336
SERVER_ADDR
103.218.0.247
SERVER_PORT
80
SERVER_NAME
wwwww.reproxy.top
REDIRECT_STATUS
200
PATH_INFO
/caipiao/BmZDNJep/hotic2017/
HTTP_CONNECTION
Keep-Alive
HTTP_ACCEPT
*/*
HTTP_COOKIE
_vstime=1562030276
HTTP_HOST
www.reproxy.top
HTTP_MAX_FORWARDS
10
HTTP_REFERER
HTTP_X_ORIGINAL_URL
/hotic2017/
HTTP_X_REWRITE_URL
/hotic2017/
HTTP_X_FORWARDED_FOR
154.206.52.26:63529
HTTP_X_ARR_LOG_ID
56450a21-95c6-49e1-a9d5-010a0c5807c2
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1562030258.1021
REQUEST_TIME
1562030258
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/reproxy/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1562030258.1026
THINK_START_MEM
263104
EXT
.php
DS
/
THINK_PATH
/data/reproxy/thinkphp/
LIB_PATH
/data/reproxy/thinkphp/library/
CORE_PATH
/data/reproxy/thinkphp/library/think/
TRAIT_PATH
/data/reproxy/thinkphp/library/traits/
ROOT_PATH
/data/reproxy/
EXTEND_PATH
/data/reproxy/extend/
VENDOR_PATH
/data/reproxy/vendor/
RUNTIME_PATH
/data/reproxy/runtime/
LOG_PATH
/data/reproxy/runtime/log/
CACHE_PATH
/data/reproxy/runtime/cache/
TEMP_PATH
/data/reproxy/runtime/temp/
CONF_PATH
/data/reproxy/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false