#0 [1]HttpException in Controller.php line 108

控制器不存在:app\controller\IndexController

  1. }
  2. // 检查分组绑定
  3. $prefix = $this->rule->getOption('prefix');
  4. if (!str_starts_with($route, $prefix)) {
  5. $route = $prefix . $route;
  6. }
  7. $this->parseDispatch($route);
  8. $instance = $this->controller($this->controller);
  9. } else {
  10. throw new HttpException(404, 'controller not exists:' . $e->getClass());
  11. }
  12. }
  13. return $this->responseWithMiddlewarePipeline($instance, $this->actionName);
  14. }
  15. /**
  16. * 实例化访问控制器
  17. * @access public

Call Stack

  1. in Controller.php line 108
  2. at Controller->exec() in Dispatch.php line 48
  3. at Dispatch->run() in Route.php line 717
  4. at Route->think\{closure}() in Pipeline.php line 59
  5. at Pipeline->think\{closure}() in Pipeline.php line 66
  6. at Pipeline->then() in Route.php line 716
  7. at Route->dispatch() in Http.php line 208
  8. at Http->dispatchToRoute() in Http.php line 198
  9. at Http->think\{closure}() in Pipeline.php line 59
  10. at Pipeline->think\{closure}() in MultiApp.php line 45
  11. at MultiApp->handle()
  12. at call_user_func() in Middleware.php line 134
  13. at Middleware->think\{closure}() in Pipeline.php line 85
  14. at Pipeline->think\{closure}() in Pipeline.php line 66
  15. at Pipeline->then() in Http.php line 197
  16. at Http->runWithRequest() in Http.php line 162
  17. at Http->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
HOSTNAME php82
PHP_INI_DIR /usr/local/etc/php
SHLVL 2
HOME /home/www-data
PHP_LDFLAGS -Wl,-O1 -pie
PHP_CFLAGS -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_VERSION 8.2.28
GPG_KEYS 39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PHP_CPPFLAGS -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_ASC_URL https://www.php.net/distributions/php-8.2.28.tar.xz.asc
PHP_URL https://www.php.net/distributions/php-8.2.28.tar.xz
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPS autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PWD /www/wwwroot
PHP_SHA256 af8c9153153a7f489153b7a74f2f29a5ee36f5cb2c6c6929c98411a577e89c91
TZ Asia/Shanghai
USER www-data
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_HOST api.beta.szzk.cn
REDIRECT_STATUS 200
SERVER_NAME api.beta.szzk.cn
SERVER_PORT 443
SERVER_ADDR 172.18.0.9
REMOTE_PORT 43940
REMOTE_ADDR 216.73.216.149
SERVER_SOFTWARE nginx/1.23.3
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/api.beta.szzk.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/api.beta.szzk.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1766342535.7372
REQUEST_TIME 1766342535