[0] HttpException in Url.php line 64

控制器不存在:参数应该是数组,而非NULL

  1. if ($this->param['auto_search']) {
  2. $controller = $this->autoFindController($module, $path);
  3. } else {
  4. // 解析控制器
  5. $controller = !empty($path) ? array_shift($path) : null;
  6. }
  7. if ($controller && !preg_match('/^[A-Za-z0-9][\w|\.]*$/', $controller)) {
  8. throw new HttpException(404, 'controller not exists:' . $controller);
  9. }
  10. // 解析操作
  11. $action = !empty($path) ? array_shift($path) : null;
  12. // 解析额外参数
  13. if ($path) {
  14. if ($this->rule->getConfig('url_param_type')) {
  15. $var += $path;

Call Stack

  1. in Url.php line 64
  2. at Url->parseUrl('home/参数应该是...') in Url.php line 23
  3. at Url->init() in App.php line 402
  4. at App->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID phn2hgujh9gf81mr6nb241o0tb
ASP_NET_SessionId wo3zuyhfzxx5c3qgn0f1y32q
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=phn2hgujh9gf81mr6nb241o0tb; ASP.NET_SessionId=wo3zuyhfzxx5c3qgn0f1y32q
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.ynzyjk.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME ynzyjk.com
SERVER_PORT 80
SERVER_ADDR 103.47.82.200
REMOTE_PORT 35826
REMOTE_ADDR 45.39.227.18
SERVER_SOFTWARE nginx/1.16.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/ynzyjk.com/public
DOCUMENT_URI /index.php
REQUEST_URI /%E5%8F%82%E6%95%B0%E5%BA%94%E8%AF%A5%E6%98%AF%E6%95%B0%E7%BB%84%EF%BC%8C%E8%80%8C%E9%9D%9ENULL
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/%E5%8F%82%E6%95%B0%E5%BA%94%E8%AF%A5%E6%98%AF%E6%95%B0%E7%BB%84%EF%BC%8C%E8%80%8C%E9%9D%9ENULL
SCRIPT_FILENAME /www/wwwroot/ynzyjk.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1636636539.1146
REQUEST_TIME 1636636539
Environment Variablesempty
ThinkPHP Constants
DS /
ROOT_PATH /www/wwwroot/ynzyjk.com/
APP_PATH /www/wwwroot/ynzyjk.com/app/
WWW_ROOT /www/wwwroot/ynzyjk.com/public/
WOO_PATH /www/wwwroot/ynzyjk.com/woo/
ADDONS_PATH /www/wwwroot/ynzyjk.com/addons/
APP_CACHE_DIR /www/wwwroot/ynzyjk.com/data/cache/
0.068290s
Baidu
sogou