[0] HttpException in Module.phphtml line 97

控制器不存在:app\home\controller\Nclass

  1. $this->app['hook']->listen('module_init');
  2. try {
  3. // 实例化控制器
  4. $instance = $this->app->controller($this->controller,
  5. $this->rule->getConfig('url_controller_layer'),
  6. $this->rule->getConfig('controller_suffix'),
  7. $this->rule->getConfig('empty_controller'));
  8. } catch (ClassNotFoundException $e) {
  9. throw new HttpException(404, 'controller not exists:' . $e->getClass());
  10. }
  11. $this->app['middleware']->controller(function (Request $request, $next) use ($instance) {
  12. // 获取当前操作名
  13. $action = $this->actionName . $this->rule->getConfig('action_suffix');
  14. if (is_callable([$instance, $action])) {
  15. // 执行操作方法
  16. $call = [$instance, $action];

Call Stack

  1. in Module.phphtml line 97
  2. at Module->exec() in Dispatch.phphtml line 168
  3. at Dispatch->run() in App.phphtml line 432
  4. at App->think\{closure}(object(Request), object(Closure), null)
  5. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.phphtml line 185
  6. at Middleware->think\{closure}(object(Request))
  7. at call_user_func(object(Closure), object(Request)) in Middleware.phphtml line 130
  8. at Middleware->dispatch(object(Request)) in App.phphtml line 435
  9. at App->run() in index.phphtml line 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
DOCUMENT_ROOT /usr/home/hyu8117740001/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_HOST www.hnenghj.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
PATH /bin:/usr/bin
PHPRC /var/www/php56/hichina_ini/hyu8117740001
QUERY_STRING
REDIRECT_DOCUMENT_ROOT /usr/home/hyu8117740001/htdocs
REDIRECT_GATEWAY_INTERFACE CGI/1.1
REDIRECT_HTTP_ACCEPT */*
REDIRECT_HTTP_HOST www.hnenghj.com
REDIRECT_HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
REDIRECT_PATH /sbin:/usr/sbin:/bin:/usr/bin
REDIRECT_PATH_INFO NClass/15.html
REDIRECT_PATH_TRANSLATED redirect:/index.phphtml
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR 154.210.176.66
REDIRECT_REMOTE_PORT 33969
REDIRECT_REQUEST_METHOD GET
REDIRECT_REQUEST_URI /NClass/15.html
REDIRECT_SCRIPT_FILENAME /usr/home/hyu8117740001/htdocs/NClass
REDIRECT_SCRIPT_NAME /NClass
REDIRECT_SCRIPT_URI //www.hnenghj.com/NClass/15.html
REDIRECT_SCRIPT_URL /NClass/15.html
REDIRECT_SERVER_ADDR 172.20.121.146
REDIRECT_SERVER_ADMIN webmaster@hyu8117740001.my3w.com
REDIRECT_SERVER_NAME www.hnenghj.com
REDIRECT_SERVER_PORT 80
REDIRECT_SERVER_PROTOCOL HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE Apache
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID YBFJs6wUeZIAADMINCkAAAAK
REDIRECT_URL /NClass/15.html
REMOTE_ADDR 154.210.176.66
REMOTE_PORT 33969
REQUEST_METHOD GET
REQUEST_URI /NClass/15.html
SCRIPT_FILENAME /usr/home/hyu8117740001/htdocs/index.phphtml
SCRIPT_NAME /index.phphtml
SCRIPT_URI //www.hnenghj.com/NClass/15.html
SCRIPT_URL /NClass/15.html
SERVER_ADDR 172.20.121.146
SERVER_ADMIN webmaster@hyu8117740001.my3w.com
SERVER_NAME www.hnenghj.com
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
UNIQUE_ID YBFJs6wUeZIAADMINCkAAAAK
PHP_SELF /index.phphtml
REQUEST_TIME_FLOAT 1611745715.5985
REQUEST_TIME 1611745715
Environment Variablesempty
ThinkPHP Constants
APP_PATH /data/home/hyu8117740001/htdocs/app/