[8] ErrorException in Base.php line 59

未定义数组索引: mobile

  1. $mobile = array();
  2. static $mobilebrowser_list ='Mobile|iPhone|Android|WAP|NetFront|JAVA|OperasMini|UCWEB|WindowssCE|Symbian|Series|webOS|SonyEricsson|Sony|BlackBerry|Cellphone|dopod|Nokia|samsung|PalmSource|Xphone|Xda|Smartphone|PIEPlus|MEIZU|MIDP|CLDC';
  3. //note 获取手机浏览器
  4. if(preg_match("/$mobilebrowser_list/i", $_SERVER['HTTP_USER_AGENT'], $mobile)) {
  5. return true;
  6. }else{
  7. if(preg_match('/(mozilla|chrome|safari|opera|m3gate|winwap|openwave)/i', $_SERVER['HTTP_USER_AGENT'])) {
  8. return false;
  9. }else{
  10. if($_GET['mobile'] === 'yes') {
  11. return true;
  12. }else{
  13. return false;
  14. }
  15. }
  16. }
  17. }
  18. }

Call Stack

  1. in Base.php line 59
  2. at Error::appError(8, 'Undefined index: mob...', '/usr/home/syu7599680...', 59, ['mobile' => [], 'mobilebrowser_list' => 'Mobile|iPhone|Androi...']) in Base.php line 59
  3. at Base->isMobile() in Base.php line 17
  4. at Base->__construct(object(Request)) in Route.php line 59
  5. at Route->execute('cms', 'index', 'index')
  6. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'index', 'index']) in App.php line 343
  7. at App::invokeMethod(['\think\addons\Route', 'execute'], ['case' => 'archive', 'act' => 'list', 'catid' => '23', ...]) in App.php line 470
  8. 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
  9. at App::run() in start.php line 19
  10. at require('/usr/home/syu7599680...') in index.php line 33

Environment Variables

GET Data

case
archive
act
list
catid
23
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/syu7599680001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_HOST
www.10fyun.com
HTTP_USER_AGENT
claudebot
PATH
/bin
PHPRC
/var/www/php56/hichina_ini/syu7599680001
QUERY_STRING
case=archive&act=list&catid=23
REDIRECT_STATUS
200
REMOTE_ADDR
3.237.186.170
REMOTE_PORT
41436
REQUEST_METHOD
GET
REQUEST_URI
/index.php?case=archive&act=list&catid=23
SCRIPT_FILENAME
/usr/home/syu7599680001/htdocs/index.php
SCRIPT_NAME
/index.php
SCRIPT_URI
http://www.10fyun.com/index.php
SCRIPT_URL
/index.php
SERVER_ADDR
10.29.122.128
SERVER_ADMIN
webmaster@syu7599680001.my3w.com
SERVER_NAME
www.10fyun.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
ZgWnjwodeoAADvel@asAAAAU
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711646607.7214
REQUEST_TIME
1711646607
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/syu7599680001/htdocs/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711646607.7223
THINK_START_MEM
219536
EXT
.php
DS
/
THINK_PATH
/usr/home/syu7599680001/htdocs/thinkphp/
LIB_PATH
/usr/home/syu7599680001/htdocs/thinkphp/library/
CORE_PATH
/usr/home/syu7599680001/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/syu7599680001/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/syu7599680001/htdocs/
EXTEND_PATH
/usr/home/syu7599680001/htdocs/extend/
VENDOR_PATH
/usr/home/syu7599680001/htdocs/vendor/
RUNTIME_PATH
/usr/home/syu7599680001/htdocs/runtime/
LOG_PATH
/usr/home/syu7599680001/htdocs/runtime/log/
CACHE_PATH
/usr/home/syu7599680001/htdocs/runtime/cache/
TEMP_PATH
/usr/home/syu7599680001/htdocs/runtime/temp/
CONF_PATH
/usr/home/syu7599680001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PHP_INT_MIN
-9223372036854775808
ADDON_PATH
/usr/home/syu7599680001/htdocs/addons/