[0] HttpException in App.php line 593

方法不存在:app\index\controller\News->index()

  1. if (is_callable([$instance, $action])) {
  2. // 执行操作方法
  3. $call = [$instance, $action];
  4. } elseif (is_callable([$instance, '_empty'])) {
  5. // 空操作
  6. $call = [$instance, '_empty'];
  7. $vars = [$actionName];
  8. } else {
  9. // 操作不存在
  10. throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
  11. }
  12. Hook::listen('action_begin', $call);
  13. return self::invokeMethod($call, $vars);
  14. }
  15. /**
  16. * URL路由检测(根据PATH_INFO)

Call Stack

  1. in App.php line 593
  2. at App::module(['index', 'News', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  3. at App::exec(['type' => 'module', 'module' => 'index/News/index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  4. at App::run() in start.php line 19
  5. at require('/etc/nginx/html/thin...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

lang
en
Session
empty

Server/Request Data

USER
www-data
HOME
/var/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.hollyren.com
REDIRECT_STATUS
200
SERVER_NAME
www.hollyren.com
SERVER_PORT
443
SERVER_ADDR
172.21.185.150
REMOTE_PORT
45250
REMOTE_ADDR
34.230.84.106
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/etc/nginx/html/public
DOCUMENT_URI
/index.php
REQUEST_URI
/news.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/news.html
SCRIPT_FILENAME
/etc/nginx/html/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710835495.2034
REQUEST_TIME
1710835495
PATH_INFO
/news.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/etc/nginx/html/public/../application/
THINK_VERSION
5.0.15
THINK_START_TIME
1710835495.2034
THINK_START_MEM
356216
EXT
.php
DS
/
THINK_PATH
/etc/nginx/html/thinkphp/
LIB_PATH
/etc/nginx/html/thinkphp/library/
CORE_PATH
/etc/nginx/html/thinkphp/library/think/
TRAIT_PATH
/etc/nginx/html/thinkphp/library/traits/
ROOT_PATH
/etc/nginx/html/
EXTEND_PATH
/etc/nginx/html/extend/
VENDOR_PATH
/etc/nginx/html/vendor/
RUNTIME_PATH
/etc/nginx/html/runtime/
LOG_PATH
/etc/nginx/html/runtime/log/
CACHE_PATH
/etc/nginx/html/runtime/cache/
TEMP_PATH
/etc/nginx/html/runtime/temp/
CONF_PATH
/etc/nginx/html/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/etc/nginx/html/addons/