#0 [0]HttpException in Controller.php line 76

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

  1. ->setAction($this->actionName);
  2. }
  3. public function exec()
  4. {
  5. try {
  6. // 实例化控制器
  7. $instance = $this->controller($this->controller);
  8. } catch (ClassNotFoundException $e) {
  9. throw new HttpException(404, 'controller not exists:' . $e->getClass());
  10. }
  11. // 注册控制器中间件
  12. $this->registerControllerMiddleware($instance);
  13. return $this->app->middleware->pipeline('controller')
  14. ->send($this->request)
  15. ->then(function () use ($instance) {
  16. // 获取当前操作名

Call Stack

  1. in Controller.php line 76
  2. at Controller->exec() in Dispatch.php line 89
  3. at Dispatch->run() in Route.php line 772
  4. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  5. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  6. at Pipeline->then(object(Closure)) in Route.php line 773
  7. at Route->dispatch(object(Request), object(Closure)) in Http.php line 216
  8. at Http->dispatchToRoute(object(Request)) in Http.php line 206
  9. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  10. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 65
  11. at MultiApp->handle(object(Request), object(Closure))
  12. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  13. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  14. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  15. at SessionInit->handle(object(Request), object(Closure))
  16. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  17. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  18. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  19. at TraceDebug->handle(object(Request), object(Closure))
  20. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  21. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  22. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  23. at Pipeline->then(object(Closure)) in Http.php line 207
  24. at Http->runWithRequest(object(Request)) in Http.php line 170
  25. at Http->run() in index.php line 25

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_REDIRECT_UNIQUE_ID ZgXIcVGmxyzzOrZMbhTiHQAAAAY
REDIRECT_REDIRECT_PHPRC /home/qiyankcnpqpivy8awnikbckn/others
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZgXIcVGmxyzzOrZMbhTiHQAAAAY
REDIRECT_PHPRC /home/qiyankcnpqpivy8awnikbckn/others
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID ZgXIcVGmxyzzOrZMbhTiHQAAAAY
PHPRC /home/qiyankcnpqpivy8awnikbckn/others
HTTP_X_FORWARDED_FOR 52.91.0.68
HTTP_X_REAL_IP 52.91.0.68
HTTP_HOST www.qiyank.cn
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache Server at www.qiyank.cn Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.qiyank.cn
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 52.91.0.68
DOCUMENT_ROOT /home/qiyankcnpqpivy8awnikbckn/wwwroot/public
REQUEST_SCHEME http
CONTEXT_PREFIX /php-run-as-cgi
CONTEXT_DOCUMENT_ROOT /usr/php7.2/bin
SERVER_ADMIN webmaster@qiyankcn
SCRIPT_FILENAME /home/qiyankcnpqpivy8awnikbckn/wwwroot/public/index.php
REMOTE_PORT 50704
REDIRECT_URL /index.php/public/index/workshop/8.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /public/index/workshop/8.html
SCRIPT_NAME /index.php
PATH_INFO /public/index/workshop/8.html
PATH_TRANSLATED /home/qiyankcnpqpivy8awnikbckn/wwwroot/public/public/index/workshop/8.html
ORIG_PATH_INFO /index.php/public/index/workshop/8.html
ORIG_SCRIPT_NAME /php-run-as-cgi/php-cgi
ORIG_SCRIPT_FILENAME /usr/php7.2/bin/php-cgi
ORIG_PATH_TRANSLATED /home/qiyankcnpqpivy8awnikbckn/wwwroot/public/index.php/public/index/workshop/8.html
PHP_SELF /index.php/public/index/workshop/8.html
REQUEST_TIME_FLOAT 1711655025.8673
REQUEST_TIME 1711655025
0.058897s