[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:/home/wwwroot/jt111com/public/../application/index/view/craft/index.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 80
  2. at Think->fetch('/home/wwwroot/jt111c...', ['title' => '...', 'keywords' => '...', 'description' => '凭借着23年积淀...'], []) in View.php line 163
  3. at View->fetch('index', ['title' => '...', 'keywords' => '...', 'description' => '凭借着23年积淀...'], ['__ROOT__' => '', '__URL__' => '/index/craft', '__STATIC__' => '/static', ...]) in View.php line 36
  4. at View->output('index') in Response.php line 311
  5. at Response->getContent() in Response.php line 96
  6. at Response->send() in start.php line 19
  7. at require('/home/wwwroot/jt111c...') in index.php line 19

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.jt111.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_STATUS
200
SERVER_NAME
www.jt111.com
SERVER_PORT
443
SERVER_ADDR
172.19.161.77
REMOTE_PORT
20007
REMOTE_ADDR
154.221.114.40
SERVER_SOFTWARE
nginx/1.14.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/wwwroot/jt111com/public
DOCUMENT_URI
/index.php//index/craft/index.html
REQUEST_URI
/index/craft/index.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/home/wwwroot/jt111com/public/index.php
PATH_TRANSLATED
/home/wwwroot/jt111com/public//index/craft/index.html
PATH_INFO
//index/craft/index.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php//index/craft/index.html
REQUEST_TIME_FLOAT
1571867854.2671
REQUEST_TIME
1571867854
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/jt111com/public/../application/
THINK_VERSION
5.0.16
THINK_START_TIME
1571867854.2674
THINK_START_MEM
378200
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/jt111com/thinkphp/
LIB_PATH
/home/wwwroot/jt111com/thinkphp/library/
CORE_PATH
/home/wwwroot/jt111com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/jt111com/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/jt111com/
EXTEND_PATH
/home/wwwroot/jt111com/extend/
VENDOR_PATH
/home/wwwroot/jt111com/vendor/
RUNTIME_PATH
/home/wwwroot/jt111com/runtime/
LOG_PATH
/home/wwwroot/jt111com/runtime/log/
CACHE_PATH
/home/wwwroot/jt111com/runtime/cache/
TEMP_PATH
/home/wwwroot/jt111com/runtime/temp/
CONF_PATH
/home/wwwroot/jt111com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
__ROOT__
MODULE_NAME
index
CONTROLLER_NAME
Craft
ACTION_NAME
index
IS_POST
false
IS_GET
true