[0] HttpException in Module.php line 126

方法不存在:app\home\controller\Index->参数应该是数组,而非NULL()

  1. : $this->request->param();
  2. $vars = array_merge($vars, $this->param);
  3. } elseif (is_callable([$instance, '_empty'])) {
  4. // 空操作
  5. $call = [$instance, '_empty'];
  6. $vars = [$this->actionName];
  7. $reflect = new ReflectionMethod($instance, '_empty');
  8. } else {
  9. // 操作不存在
  10. throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
  11. }
  12. $this->app['hook']->listen('action_begin', $call);
  13. $data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
  14. return $this->autoResponse($data);
  15. });

Call Stack

  1. in Module.php line 126
  2. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  3. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  4. at Middleware->think\{closure}(object(Request))
  5. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  6. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  7. at Module->exec() in Dispatch.php line 168
  8. at Dispatch->run() in App.php line 432
  9. at App->think\{closure}(object(Request), object(Closure), null)
  10. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  11. at Middleware->think\{closure}(object(Request))
  12. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  13. at Middleware->dispatch(object(Request)) in App.php line 435
  14. at App->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID phn2hgujh9gf81mr6nb241o0tb
ASP_NET_SessionId wo3zuyhfzxx5c3qgn0f1y32q
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=phn2hgujh9gf81mr6nb241o0tb; ASP.NET_SessionId=wo3zuyhfzxx5c3qgn0f1y32q
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.ynzyjk.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME ynzyjk.com
SERVER_PORT 80
SERVER_ADDR 103.47.82.200
REMOTE_PORT 49608
REMOTE_ADDR 45.39.227.18
SERVER_SOFTWARE nginx/1.16.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/ynzyjk.com/public
DOCUMENT_URI /index.php
REQUEST_URI /index/%E5%8F%82%E6%95%B0%E5%BA%94%E8%AF%A5%E6%98%AF%E6%95%B0%E7%BB%84%EF%BC%8C%E8%80%8C%E9%9D%9ENULL
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/%E5%8F%82%E6%95%B0%E5%BA%94%E8%AF%A5%E6%98%AF%E6%95%B0%E7%BB%84%EF%BC%8C%E8%80%8C%E9%9D%9ENULL
SCRIPT_FILENAME /www/wwwroot/ynzyjk.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1638943796.438
REQUEST_TIME 1638943796
Environment Variablesempty
ThinkPHP Constants
DS /
ROOT_PATH /www/wwwroot/ynzyjk.com/
APP_PATH /www/wwwroot/ynzyjk.com/app/
WWW_ROOT /www/wwwroot/ynzyjk.com/public/
WOO_PATH /www/wwwroot/ynzyjk.com/woo/
ADDONS_PATH /www/wwwroot/ynzyjk.com/addons/
APP_CACHE_DIR /www/wwwroot/ynzyjk.com/data/cache/
SMARTY_DIR /www/wwwroot/ynzyjk.com/include/smarty-3.1.27/libs/
SMARTY_SYSPLUGINS_DIR /www/wwwroot/ynzyjk.com/include/smarty-3.1.27/libs/sysplugins/
SMARTY_PLUGINS_DIR /www/wwwroot/ynzyjk.com/include/smarty-3.1.27/libs/plugins/
SMARTY_MBSTRING true
SMARTY_RESOURCE_CHAR_SET UTF-8
SMARTY_RESOURCE_DATE_FORMAT %b %e, %Y
SMARTY_SPL_AUTOLOAD 0
0.065010s
Baidu
sogou