[8] ErrorException in common.php line 76

Undefined index: HTTP_ACCEPT_LANGUAGE

  1. }
  2. }
  3. return array_values($ar);
  4. }
  5. // 获取当前请求的 User-Agent: 头部的内容。
  6. $_SERVER['HTTP_USER_AGENT']; // 当前返回结果:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
  7. // 获取当前请求的 Accept-Language: 头部的内容。
  8. $_SERVER['HTTP_ACCEPT_LANGUAGE']; // 当前返回结果:zh-CN,zh;q=0.8
  9. // 利用正则表达式匹配以上字符串,用户的浏览器操作系统信息。
  10. /**
  11. * 获得访客操作系统
  12. */
  13. function get_os()
  14. {
  15. if (!empty($_SERVER['HTTP_USER_AGENT'])) {

Call Stack

  1. in common.php line 76
  2. at Error::appError(8, 'Undefined index: HTT...', '/www/wwwroot/www1.cb...', 76, ['module' => '', 'config' => ['app_host' => '', 'app_debug' => false, 'app_trace' => false, ...], 'filename' => '/www/wwwroot/www1.cb...', ...]) in common.php line 76
  3. at include('/www/wwwroot/www1.cb...') in App.php line 280
  4. at App::init() in App.php line 182
  5. at App::initCommon() in App.php line 82
  6. at App::run() in index.php line 43

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/www1.cbvac.com/public/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/www1.cbvac.com/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.15.10
REMOTE_ADDR
156.237.159.79
REMOTE_PORT
20003
SERVER_ADDR
172.17.216.159
SERVER_PORT
80
SERVER_NAME
www1.cbvac.com
REDIRECT_STATUS
200
PATH_INFO
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.cbvac.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1569068655.5366
REQUEST_TIME
1569068655
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/www/wwwroot/www1.cbvac.com/public/../
APP_PATH
/www/wwwroot/www1.cbvac.com/public/../app/
CMF_PATH
/www/wwwroot/www1.cbvac.com/public/../simplewind/cmf/
WEB_ROOT
/www/wwwroot/www1.cbvac.com/public/
PLUGINS_PATH
/www/wwwroot/www1.cbvac.com/public/plugins/
EXTEND_PATH
/www/wwwroot/www1.cbvac.com/public/../simplewind/extend/
VENDOR_PATH
/www/wwwroot/www1.cbvac.com/public/../simplewind/vendor/
RUNTIME_PATH
/www/wwwroot/www1.cbvac.com/public/../data/runtime/
THINKCMF_VERSION
5.0.190111
THINK_VERSION
5.0.24
THINK_START_TIME
1569068655.5372
THINK_START_MEM
262744
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www1.cbvac.com/simplewind/thinkphp/
LIB_PATH
/www/wwwroot/www1.cbvac.com/simplewind/thinkphp/library/
CORE_PATH
/www/wwwroot/www1.cbvac.com/simplewind/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www1.cbvac.com/simplewind/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www1.cbvac.com/
LOG_PATH
/www/wwwroot/www1.cbvac.com/public/../data/runtime/log/
CACHE_PATH
/www/wwwroot/www1.cbvac.com/public/../data/runtime/cache/
TEMP_PATH
/www/wwwroot/www1.cbvac.com/public/../data/runtime/temp/
CONF_PATH
/www/wwwroot/www1.cbvac.com/public/../app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/www1.cbvac.com/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.7