[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:../template/index/app/wmcc/detail.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('../template/index/ap...', ['lang_index' => '内容', 'uid' => '28555', 'wid' => null, ...], []) in View.php line 163
  3. at View->fetch('app/wmcc/detail', ['lang_index' => '内容', 'uid' => '28555', 'wid' => null, ...], ['__ROOT__' => '', '__URL__' => '/index/app', '__STATIC__' => '/static', ...]) in View.php line 36
  4. at View->output('app/wmcc/detail') 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 35

Environment Variables

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

Server/Request Data

app_host
www.binzhouw.com
api_host
http://api-bzw
api_wmes_path
http://wmes1:81/api/
api_path
http://api-bzw/api/
redishost
r-8vbdd5toe00wammv1b.redis.zhangbei.rds.aliyuncs.com
memcachedhost
m-8vbfe08c2f129b44.memcache.zhangbei.rds.aliyuncs.com
SESSION_DOMAIN
.binzhouw.com
app_debug
false
USER
www-data
HOME
/var/cache/nginx
HTTP_X5_UUID
4e9b58d0e31b70d5250a9e2c58e17d57
HTTP_X_SINFO
on
HTTP_WL_PROXY_CLIENT_IP
3.91.8.23
HTTP_WEB_SERVER_TYPE
nginx
HTTP_X_CLIENT_IP
3.91.8.23
HTTP_X_TRUE_IP
3.91.8.23
HTTP_EAGLEEYE_RPCID
0.1
HTTP_ACCEPT
*/*
HTTP_EAGLEEYE_TRACEID
2760777b17116563485088535efd95
HTTP_X_FORWARDED_CLUSTER
waf,
HTTP_X_FORWARDED_FOR
3.91.8.23
HTTP_USER_AGENT
claudebot
HTTP_X_FORWARDED_PROTO
https
HTTP_REMOTE_HOST
39.96.119.123
HTTP_X_REAL_IP
39.96.119.123
HTTP_CONNECTION
close
HTTP_HOST
www.binzhouw.com
REDIRECT_STATUS
200
SERVER_NAME
_
SERVER_PORT
80
SERVER_ADDR
172.20.2.230
REMOTE_PORT
57098
REMOTE_ADDR
172.20.2.237
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
/app/detail/28555/124950.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//app/detail/28555/124950.html
SCRIPT_FILENAME
/app/public/index.php
PATH_INFO
//app/detail/28555/124950.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711656348.5479
REQUEST_TIME
1711656348
Environment Variables
empty

ThinkPHP Constants

API_PATH_OLD
http://api2.binzhouw.com/api.php?app=api&mod=AppNumberPC&act=
API_PATH
http://api-bzw/api/
API_HOST
http://api-bzw
BZW_PATH
binzhouw.com
BZWHTTP_PATH
http://www.binzhouw.com
SESSION_NAME
bzruid
SESSION_IM
imtoken
JS_BASE
/static/
APP_PATH
/app/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711656348.548
THINK_START_MEM
401752
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
API_CACHE_DATA_REDIS_NAME
hash:api:data
API_STATUS_REDIS_NAME
api:status
API_STATUS_EXPIRE
60
MODULE_NAME
index
CONTROLLER_NAME
App
ACTION_NAME
detail