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

控制器不存在:app\index\controller\Contact

                        
  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 Library.php line 111
  6. at Library->think\admin\{closure}(object(Request), object(Closure))
  7. at call_user_func(object(Closure), object(Request), object(Closure)) in Middleware.php line 142
  8. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  9. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  10. at Pipeline->then(object(Closure)) in Route.php line 773
  11. at Route->dispatch(object(Request), object(Closure)) in Http.php line 216
  12. at Http->dispatchToRoute(object(Request)) in Http.php line 206
  13. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  14. at Pipeline->think\{closure}(object(Request)) in Multiple.php line 71
  15. at Multiple->think\admin\multiple\{closure}(object(Request)) in Pipeline.php line 59
  16. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  17. at Pipeline->then(object(Closure)) in Multiple.php line 72
  18. at Multiple->handle(object(Request), object(Closure))
  19. at call_user_func([object(Multiple), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  20. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  21. at Pipeline->think\{closure}(object(Request)) in LoadLangPack.php line 59
  22. at LoadLangPack->handle(object(Request), object(Closure))
  23. at call_user_func([object(LoadLangPack), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  24. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  25. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  26. at SessionInit->handle(object(Request), object(Closure))
  27. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  28. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  29. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  30. at Pipeline->then(object(Closure)) in Http.php line 207
  31. at Http->runWithRequest(object(Request)) in Http.php line 170
  32. at Http->run() in SystemService.php line 336
  33. at SystemService->doInit() in index.php line 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.ahyc168.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
www.ahyc168.com
SERVER_PORT
80
SERVER_ADDR
172.16.107.161
REMOTE_PORT
20000
REMOTE_ADDR
160.121.190.231
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/ahyc_official/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index.php?s=/contact/index.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/contact/index.html
SCRIPT_FILENAME
/www/wwwroot/ahyc_official/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1634987231.8724
REQUEST_TIME
1634987231