[8] ErrorException in Url.php line 197

未定义变量: path

  1. // [模块/控制器/操作]
  2. $path = explode('/', $url);
  3. } elseif (false !== strpos($url, '=')) {
  4. // 参数1=值1&参数2=值2...
  5. parse_str($url, $var);
  6. } else {
  7. $path = [$url];
  8. }
  9. return [$path, $var];
  10. }
  11. }

Call Stack

  1. in Url.php line 197
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/www.hbp...', 197, ['url' => 'vfd=7', 'var' => ['vfd' => '7']]) in Url.php line 197
  3. at Url->parseUrlPath('vfd=7') in Url.php line 47
  4. at Url->parseUrl('vfd=7') in Url.php line 24
  5. at Url->run() in App.php line 377
  6. at App->think\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 100
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 66
  10. at Middleware->dispatch(object(Request)) in App.php line 398
  11. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.hbpuji.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH_INFO
/vfd=7
REDIRECT_STATUS
200
SERVER_NAME
www.hbpuji.com
SERVER_PORT
80
SERVER_ADDR
192.168.0.4
REMOTE_PORT
20000
REMOTE_ADDR
154.92.176.107
SERVER_SOFTWARE
nginx/1.15.10
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.hbpuji.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/vfd=7
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/vfd=7
SCRIPT_FILENAME
/www/wwwroot/www.hbpuji.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1596749580.8907
REQUEST_TIME
1596749580
Environment Variablesempty
ThinkPHP Constants
PATH
/www/wwwroot/www.hbpuji.com/public