[8] ErrorException in Language.php line 37

未定义数组索引: HTTP_REFERER

  1. session('language_index',4);
  2. }elseif($id==5){
  3. session('language_index',5);
  4. }elseif($id==6){
  5. session('language_index',6);
  6. }elseif($id==7){
  7. session('language_index',7);
  8. }
  9. $url=$_SERVER['HTTP_REFERER'];
  10. header("Location:$url");
  11. exit;
  12. }

Call Stack

  1. in Language.php line 37
  2. at Error::appError(8, 'Undefined index: HTT...', '/www/wwwroot/winalit...', 37, ['id' => '7']) in Language.php line 37
  3. at Language->index()
  4. at ReflectionMethod->invokeArgs(object(Language), []) in App.php line 343
  5. at App::invokeMethod([object(Language), 'index'], []) in App.php line 611
  6. at App::module(['index', 'language', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'language', '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/winalit...') in index.php line 17

Environment Variables

GET Data

/index/language/index/id/7/
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "language_index": 7 }

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/index/language/index/id/7/
QUERY_STRING
/index/language/index/id/7/
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/index/language/index/id/7/
REDIRECT_URL
/index/language/index/id/7/
REMOTE_PORT
20000
SCRIPT_FILENAME
/www/wwwroot/winalite/index.php
SERVER_ADMIN
webmasterexample.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/winalite/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/winalite/
REMOTE_ADDR
113.212.67.22
SERVER_PORT
443
SERVER_ADDR
172.31.113.236
SERVER_NAME
www.winalite.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.winalite.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib:/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.winalite.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
proxy-nokeepalive
1
SSL_TLS_SNI
www.winalite.com
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_SSL_TLS_SNI
www.winalite.com
REDIRECT_HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1575981800.1901
REQUEST_TIME
1575981800
PATH_INFO
/index/language/index/id/7/
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/winalite/startapp/
THINK_VERSION
5.0.24
THINK_START_TIME
1575981800.1905
THINK_START_MEM
367272
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/winalite/startthink/
LIB_PATH
/www/wwwroot/winalite/startthink/library/
CORE_PATH
/www/wwwroot/winalite/startthink/library/think/
TRAIT_PATH
/www/wwwroot/winalite/startthink/library/traits/
ROOT_PATH
/www/wwwroot/winalite/
EXTEND_PATH
/www/wwwroot/winalite/extend/
VENDOR_PATH
/www/wwwroot/winalite/vendor/
RUNTIME_PATH
/www/wwwroot/winalite/runtime/
LOG_PATH
/www/wwwroot/winalite/runtime/log/
CACHE_PATH
/www/wwwroot/winalite/runtime/cache/
TEMP_PATH
/www/wwwroot/winalite/runtime/temp/
CONF_PATH
/www/wwwroot/winalite/startapp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false