[8] ErrorException in Route.php line 1282

未定义数组索引: path

  1. private static function parseUrlPath($url)
  2. {
  3. // 分隔符替换 确保路由定义使用统一的分隔符
  4. $url = str_replace('|', '/', $url);
  5. $url = trim($url, '/');
  6. $var = [];
  7. if (false !== strpos($url, '?')) {
  8. // [模块/控制器/操作?]参数1=值1&参数2=值2...
  9. $info = parse_url($url);
  10. $path = explode('/', $info['path']);
  11. parse_str($info['query'], $var);
  12. } elseif (strpos($url, '/')) {
  13. // [模块/控制器/操作]
  14. $path = explode('/', $url);
  15. } else {
  16. $path = [$url];
  17. }
  18. return [$path, $var];
  19. }

Call Stack

  1. in Route.php line 1282
  2. at Error::appError(8, 'Undefined index: pat...', '/data/home/qxu178086...', 1282, ['url' => '?o=40031202&jv=', 'var' => [], 'info' => ['query' => 'o=40031202&jv=']]) in Route.php line 1282
  3. at Route::parseUrlPath('?o=40031202&jv=') in Route.php line 1215
  4. at Route::parseUrl('?o=40031202&jv=', '/', false) in App.php line 575
  5. at App::routeCheck(object(Request), ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 106
  6. at App::run() in start.php line 18
  7. at require('/data/home/qxu178086...') in index.php line 21

Exception Datas

Error Context
url ?o=40031202&jv=
var []
info { "query": "o=40031202&jv=" }

Environment Variables

GET Data

o
40031202
jv
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/qxu1780860427/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_HOST
www.sdhuamian.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH
/bin:/usr/bin
PHPRC
/var/www/php55/hichina_ini/qxu1780860427
QUERY_STRING
o=40031202&jv=
REDIRECT_STATUS
200
REMOTE_ADDR
154.93.195.53
REMOTE_PORT
20000
REQUEST_METHOD
GET
REQUEST_URI
/?o=40031202&jv=
SCRIPT_FILENAME
/usr/home/qxu1780860427/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
139.129.150.248
SERVER_ADMIN
webmaster@qxu1780860427.my3w.com
SERVER_NAME
www.sdhuamian.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
Xe8IsgofVFsAACKctKwAAAAc
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1575946418.0947
REQUEST_TIME
1575946418
PATH_INFO
/?o=40031202&jv=
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/home/qxu1780860427/htdocs/./application/
RUNTIME_PATH
/data/home/qxu1780860427/htdocs/./runtime/
APP_DEBUG
true
THINK_VERSION
5.0.10
THINK_START_TIME
1575946418.0952
THINK_START_MEM
242504
EXT
.php
DS
/
THINK_PATH
/data/home/qxu1780860427/htdocs/thinkphp/
LIB_PATH
/data/home/qxu1780860427/htdocs/thinkphp/library/
CORE_PATH
/data/home/qxu1780860427/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/home/qxu1780860427/htdocs/thinkphp/library/traits/
ROOT_PATH
/data/home/qxu1780860427/htdocs/
EXTEND_PATH
/data/home/qxu1780860427/htdocs/extend/
VENDOR_PATH
/data/home/qxu1780860427/htdocs/vendor/
LOG_PATH
/data/home/qxu1780860427/htdocs/./runtime/log/
CACHE_PATH
/data/home/qxu1780860427/htdocs/./runtime/cache/
TEMP_PATH
/data/home/qxu1780860427/htdocs/./runtime/temp/
CONF_PATH
/data/home/qxu1780860427/htdocs/./application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false