vic维多利亚官网|2022最新版

[8] ErrorException in Base.php line 18

Undefined index: HTTP_USER_AGENT

  1. {
  2. // 初始化
  3. public function __construct()
  4. {
  5. parent::__construct();
  6. $config = get_addon_config('cms');
  7. $waparray=array('android','iphone','ipad','mobile');
  8. foreach($waparray as $thisphone) {
  9. if(stripos($_SERVER['HTTP_USER_AGENT'],$thisphone)===false) {
  10. $mobile = false;}else {
  11. $mobile = true;
  12. }
  13. }
  14. // 加载自定义标签库
  15. $this->view->engine->config('taglib_pre_load', 'addons\cms\taglib\Cms');
  16. // 默认渲染栏目为空
  17. $this->view->assign('__CHANNEL__', null);

Call Stack

  1. in Base.php line 18
  2. at Error::appError(8, 'Undefined index: HTT...', '/www/wwwroot/scdytyz...', 18, ['config' => ['system_user_id' => '1', 'sitename' => '...', 'title' => '维多利亚网站vic', ...], 'waparray' => ['android', 'iphone', 'ipad', ...], 'thisphone' => 'android']) in Base.php line 18
  3. at Base->__construct(object(Request)) in Route.php line 59
  4. at Route->execute('cms', 'index', 'index')
  5. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'index', 'index']) in App.php line 343
  6. at App::invokeMethod(['\think\addons\Route', 'execute'], ['addon' => 'cms', 'controller' => 'index', 'action' => 'index']) in App.php line 470
  7. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'index', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/scdytyz...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

think_var
en
PHPSESSID
2ag8qtu3ohjj9ud8c0p3ticvf7
__yjs_duid
1_2f53cf19f6c513e84e58400de8ff295b1660768928383
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
think_var=en; PHPSESSID=2ag8qtu3ohjj9ud8c0p3ticvf7; __yjs_duid=1_2f53cf19f6c513e84e58400de8ff295b1660768928383
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.dytyzs.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
scdytyzs.com
SERVER_PORT
80
SERVER_ADDR
106.15.37.87
REMOTE_PORT
45374
REMOTE_ADDR
50.118.247.202
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/scdytyzs/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/scdytyzs/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1716702407.0822
REQUEST_TIME
1716702407
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/scdytyzs/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1716702407.0827
THINK_START_MEM
380008
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/scdytyzs/thinkphp/
LIB_PATH
/www/wwwroot/scdytyzs/thinkphp/library/
CORE_PATH
/www/wwwroot/scdytyzs/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/scdytyzs/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/scdytyzs/
EXTEND_PATH
/www/wwwroot/scdytyzs/extend/
VENDOR_PATH
/www/wwwroot/scdytyzs/vendor/
RUNTIME_PATH
/www/wwwroot/scdytyzs/runtime/
LOG_PATH
/www/wwwroot/scdytyzs/runtime/log/
CACHE_PATH
/www/wwwroot/scdytyzs/runtime/cache/
TEMP_PATH
/www/wwwroot/scdytyzs/runtime/temp/
CONF_PATH
/www/wwwroot/scdytyzs/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/scdytyzs/addons/
Baidu
sogou