[0] InvalidArgumentException in App.php line 431

方法参数错误:id

  1. new $className;
  2. }
  3. } elseif (1 == $type && !empty($vars)) {
  4. $result = array_shift($vars);
  5. } elseif (0 == $type && isset($vars[$name])) {
  6. $result = $vars[$name];
  7. } elseif ($param->isDefaultValueAvailable()) {
  8. $result = $param->getDefaultValue();
  9. } else {
  10. throw new \InvalidArgumentException('method param miss:' . $name);
  11. }
  12. return $result;
  13. }
  14. /**
  15. * 执行调用分发
  16. * @access protected
  17. * @param array $dispatch 调用信息

Call Stack

  1. in App.php line 431
  2. at App::getParamValue(object(ReflectionParameter), [], 0) in App.php line 385
  3. at App::bindParams(object(ReflectionMethod), []) in App.php line 339
  4. at App::invokeMethod([object(News), 'detail'], []) in App.php line 611
  5. at App::module(['index', 'news', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  6. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  7. at App::run() in start.php line 19
  8. at require('/home/wwwroot/hylt.t...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/home/wwwroot/hylt.twkj888.com/public/index.php
QUERY_STRING
s=//index/news/detail/id/
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/news/detail/id/
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/home/wwwroot/hylt.twkj888.com/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.0
REMOTE_ADDR
144.48.197.170
REMOTE_PORT
20001
SERVER_ADDR
172.26.76.210
SERVER_PORT
80
SERVER_NAME
hylthb.com
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.hylthb.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1574384887.479
REQUEST_TIME
1574384887
PATH_INFO
//index/news/detail/id/
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/hylt.twkj888.com/public/../application/
THINK_VERSION
5.0.23
THINK_START_TIME
1574384887.4796
THINK_START_MEM
259440
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/hylt.twkj888.com/thinkphp/
LIB_PATH
/home/wwwroot/hylt.twkj888.com/thinkphp/library/
CORE_PATH
/home/wwwroot/hylt.twkj888.com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/hylt.twkj888.com/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/hylt.twkj888.com/
EXTEND_PATH
/home/wwwroot/hylt.twkj888.com/extend/
VENDOR_PATH
/home/wwwroot/hylt.twkj888.com/vendor/
RUNTIME_PATH
/home/wwwroot/hylt.twkj888.com/runtime/
LOG_PATH
/home/wwwroot/hylt.twkj888.com/runtime/log/
CACHE_PATH
/home/wwwroot/hylt.twkj888.com/runtime/cache/
TEMP_PATH
/home/wwwroot/hylt.twkj888.com/runtime/temp/
CONF_PATH
/home/wwwroot/hylt.twkj888.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.1.3