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

方法不存在:app\controller\NewsController->6Action()

  1. $this->request->setAction($actionName);
  2. } catch (ReflectionException $e) {
  3. $reflect = new ReflectionMethod($instance, '__call');
  4. $vars = [$action, $vars];
  5. $this->request->setAction($action);
  6. }
  7. } else {
  8. // 操作不存在
  9. throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
  10. }
  11. $data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
  12. return $this->autoResponse($data);
  13. });
  14. }
  15. protected function parseActions($actions)

Call Stack

  1. in Controller.php line 107
  2. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  3. at Pipeline->think\{closure}() in Pipeline.php line 66
  4. at Pipeline->then() in Controller.php line 113
  5. at Controller->exec() in Dispatch.php line 90
  6. at Dispatch->run() in Route.php line 772
  7. at Route->think\{closure}() in Pipeline.php line 59
  8. at Pipeline->think\{closure}() in Pipeline.php line 66
  9. at Pipeline->then() in Route.php line 773
  10. at Route->dispatch() in Http.php line 216
  11. at Http->dispatchToRoute() in Http.php line 206
  12. at Http->think\{closure}() in Pipeline.php line 59
  13. at Pipeline->think\{closure}() in SessionInit.php line 67
  14. at SessionInit->handle()
  15. at call_user_func() in Middleware.php line 142
  16. at Middleware->think\{closure}() in Pipeline.php line 85
  17. at Pipeline->think\{closure}() in TraceDebug.php line 71
  18. at TraceDebug->handle()
  19. at call_user_func() in Middleware.php line 142
  20. at Middleware->think\{closure}() in Pipeline.php line 85
  21. at Pipeline->think\{closure}() in Pipeline.php line 66
  22. at Pipeline->then() in Http.php line 207
  23. at Http->runWithRequest() in Http.php line 170
  24. at Http->run() in index.php line 28

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID cb5a5a96107769f65bf5a5543d0bbb43
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=cb5a5a96107769f65bf5a5543d0bbb43
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.hangar.com.cn
HTTP_USER_AGENT Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME hangar.com.cn
SERVER_PORT 80
SERVER_ADDR 10.10.10.10
REMOTE_PORT 53550
REMOTE_ADDR 45.43.236.234
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/hangar.com.cn/think/public
DOCUMENT_URI /index.php
REQUEST_URI /news/6/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//news/6/
SCRIPT_FILENAME /www/wwwroot/hangar.com.cn/think/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1708572212.1274
REQUEST_TIME 1708572212
0.112969s