[0] HttpException in Url.php line 64

控制器不存在:404

  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-z][\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('errpage|404') in Url.php line 23
  3. at Url->init() in Config.php line 27
  4. at Config->run()
  5. at ReflectionMethod->invokeArgs(object(Config), []) in Container.php line 376
  6. at Container->invokeMethod(['app\common\behavior\...', 'run'], [null]) in Container.php line 415
  7. at Container->invoke(['app\common\behavior\...', 'run'], [null]) in Hook.php line 208
  8. at Hook->execTag('app\common\behavior\...', 'app_dispatch', null) in Hook.php line 149
  9. at Hook->listen('app_dispatch') in App.php line 395
  10. at App->run() in index.php line 34

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_PATH_INFO errpage/404.html
REDIRECT_STATUS 200
HTTP_HOST m.zhizhuapp.com
HTTP_REFERER http://www.zhizhuapp.com/zhengzhuang.htm
HTTP_X_REAL_IP 44.204.94.166
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME m.zhizhuapp.com
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 44.204.94.166
DOCUMENT_ROOT /www/web/MYCT/public_html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /www/web/MYCT/public_html
SERVER_ADMIN you@example.com
SCRIPT_FILENAME /www/web/MYCT/public_html/index.php
REMOTE_PORT 40990
REDIRECT_URL /errpage/404.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /errpage/404.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711630298.74
REQUEST_TIME 1711630298
Environment Variablesempty
ThinkPHP Constants
ADMIN_FILE myct.php
HTMLPURIFIER_PREFIX /www/web/MYCT/vendor/ezyang/htmlpurifier/library