[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/app/public/../application/index/view/index/news.html

  1. */
  2. public function fetch($template, $data = [], $config = [])
  3. {
  4. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  5. // 获取模板文件名
  6. $template = $this->parseTemplate($template);
  7. }
  8. // 模板不存在 抛出异常
  9. if (!is_file($template)) {
  10. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  11. }
  12. // 记录视图信息
  13. App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
  14. $this->template->fetch($template, $data, $config);
  15. }
  16. /**
  17. * 渲染模板内容
  18. * @access public

Call Stack

  1. in Think.php line 82
  2. at Think->fetch('/app/public/../appli...', ['wid' => 0, 'zwid' => 0, 'pid' => 0], []) in View.php line 163
  3. at View->fetch('news', ['wid' => 0, 'zwid' => 0, 'pid' => 0], ['__ROOT__' => '/', '__URL__' => '/index/index', '__STATIC__' => '/static', ...]) in View.php line 36
  4. at View->output('news') in Response.php line 309
  5. at Response->getContent() in Response.php line 94
  6. at Response->send() in start.php line 19
  7. at require('/app/thinkphp/start....') in index.php line 25

Environment Variables

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

Server/Request Data

SERVER_PATH
API_PATH
http://localhost:81
USER
www-data
HOME
/var/cache/nginx
HTTP_X5_UUID
004f85b4af6bf4b8643a0d5c858ffac6
HTTP_X_SINFO
on
HTTP_X_FORWARDED_PROTO
https
HTTP_WL_PROXY_CLIENT_IP
44.212.94.2
HTTP_WEB_SERVER_TYPE
nginx
HTTP_X_CLIENT_IP
44.212.94.2
HTTP_X_TRUE_IP
44.212.94.2
HTTP_X_REAL_IP
44.212.94.2
HTTP_EAGLEEYE_RPCID
0.1
HTTP_ACCEPT
*/*
HTTP_EAGLEEYE_TRACEID
2760778617117227384298056e23f2
HTTP_X_FORWARDED_CLUSTER
waf,
HTTP_X_FORWARDED_FOR
44.212.94.2
HTTP_USER_AGENT
claudebot
HTTP_CONNECTION
close
HTTP_HOST
college.binzhouw.com
REDIRECT_STATUS
200
SERVER_NAME
_
SERVER_PORT
80
SERVER_ADDR
172.22.1.157
REMOTE_PORT
35328
REMOTE_ADDR
172.22.1.162
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.0
DOCUMENT_ROOT
/app/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/index/news.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//index/index/news.html
SCRIPT_FILENAME
/app/public/index.php
PATH_INFO
//index/index/news.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711722738.4353
REQUEST_TIME
1711722738
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/app/public/../application/
SERVER_PATH
ACTION_PATH
/admin
API_PATH
http://api-gov-test.binzhouw.com/webapi/
WMESAPI_PATH
http://api-wmes.binzhouw.com:8081/api/
BZW_PATH
binzhouw.com
ADMIN_ID
1
THINK_VERSION
5.0.24
THINK_START_TIME
1711722738.4354
THINK_START_MEM
400856
EXT
.php
DS
/
THINK_PATH
/app/thinkphp/
LIB_PATH
/app/thinkphp/library/
CORE_PATH
/app/thinkphp/library/think/
TRAIT_PATH
/app/thinkphp/library/traits/
ROOT_PATH
/app/
EXTEND_PATH
/app/extend/
VENDOR_PATH
/app/vendor/
RUNTIME_PATH
/app/runtime/
LOG_PATH
/app/runtime/log/
CACHE_PATH
/app/runtime/cache/
TEMP_PATH
/app/runtime/temp/
CONF_PATH
/app/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
MODULE_NAME
index
CONTROLLER_NAME
Index
ACTION_NAME
news