[8] ErrorException in config.php line 36

Undefined index: HTTP_USER_AGENT

  1. );
  2. }
  3. }
  4. function isMobiles(){
  5. $userAgent = $_SERVER['HTTP_USER_AGENT'];
  6. if(strpos($userAgent,"iPhone") || strpos($userAgent,"iPad") || strpos($userAgent,"iPod") || strpos($userAgent,"Android")){
  7. return true;
  8. }
  9. // 如果有HTTP_X_WAP_PROFILE则一定是移动设备
  10. if (isset ($_SERVER['HTTP_X_WAP_PROFILE']))
  11. {
  12. return true;
  13. }

Call Stack

  1. in config.php line 36
  2. at Error::appError(8, 'Undefined index: HTT...', '/www/wwwroot/laifosh...', 36, []) in config.php line 36
  3. at isMobiles() in config.php line 6
  4. at include('/www/wwwroot/laifosh...') in config.php line 12
  5. at include('/www/wwwroot/laifosh...') in Config.php line 80
  6. at Config::load('/www/wwwroot/laifosh...') in App.php line 249
  7. at App::init() in App.php line 182
  8. at App::initCommon() in App.php line 82
  9. at App::run() in index.php line 65

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
33490
SCRIPT_FILENAME
/www/wwwroot/laifoshi.com/index.php
SERVER_ADMIN
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/laifoshi.com/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/laifoshi.com/
REMOTE_ADDR
36.99.94.188
SERVER_PORT
443
SERVER_ADDR
172.18.155.222
SERVER_NAME
www.raffles-edu.cn
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.raffles-edu.cn Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
www.raffles-edu.cn
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
H2_STREAM_TAG
788-1
H2_STREAM_ID
1
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SSL_TLS_SNI
www.raffles-edu.cn
HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1715148006.4143
REQUEST_TIME
1715148006
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
false
CMF_ROOT
/www/wwwroot/laifoshi.com/
APP_PATH
/www/wwwroot/laifoshi.com/app/
UPLOAD_PATH
/www/wwwroot/laifoshi.com/upload/
CMF_PATH
/www/wwwroot/laifoshi.com/simplewind/cmf/
PLUGINS_PATH
/www/wwwroot/laifoshi.com/plugins/
EXTEND_PATH
/www/wwwroot/laifoshi.com/simplewind/extend/
VENDOR_PATH
/www/wwwroot/laifoshi.com/simplewind/vendor/
RUNTIME_PATH
/www/wwwroot/laifoshi.com/data/runtime/
THINKCMF_VERSION
5.0.170927
SO
is_top DESC,list_order DESC,published_time DESC,post_id DESC
GSO
is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC
TMPLSO
order:is_top DESC,list_order DESC,published_time DESC,post_id DESC;
TMPLGSO
order:is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC;
WEB_ROOT
/www/wwwroot/laifoshi.com/
THINK_VERSION
5.0.24
THINK_START_TIME
1715148006.4147
THINK_START_MEM
420448
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/laifoshi.com/simplewind/thinkphp/
LIB_PATH
/www/wwwroot/laifoshi.com/simplewind/thinkphp/library/
CORE_PATH
/www/wwwroot/laifoshi.com/simplewind/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/laifoshi.com/simplewind/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/laifoshi.com/
LOG_PATH
/www/wwwroot/laifoshi.com/data/runtime/log/
CACHE_PATH
/www/wwwroot/laifoshi.com/data/runtime/cache/
TEMP_PATH
/www/wwwroot/laifoshi.com/data/runtime/temp/
CONF_PATH
/www/wwwroot/laifoshi.com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/laifoshi.com/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1