[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/data/home/qyu7826920001/htdocs/application/index/view/news/gonggao.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('/data/home/qyu782692...', [], []) in View.php line 163
  3. at View->fetch('news/gonggao', [], ['__ROOT__' => '', '__URL__' => '/index/news', '__STATIC__' => '/public/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('news/gonggao') in News.php line 14
  5. at News->gonggao()
  6. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  7. at App::invokeMethod([object(News), 'gonggao'], []) in App.php line 611
  8. at App::module(['index', 'news', 'gonggao'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'gonggao']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/data/home/qyu782692...') in index.php line 17

Environment Variables

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

Server/Request Data

DOCUMENT_ROOT
/usr/home/qyu7826920001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_HOST
www.mrjxcl.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH
/bin:/usr/bin
PHPRC
/var/www/php72/hichina_ini/qyu7826920001
QUERY_STRING
REDIRECT_DOCUMENT_ROOT
/usr/home/qyu7826920001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
deflate, gzip
REDIRECT_HTTP_HOST
www.mrjxcl.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_PATH
/sbin:/usr/sbin:/bin:/usr/bin
REDIRECT_PATH_INFO
/news/gonggao.html
REDIRECT_PATH_TRANSLATED
redirect:/index.php/news/gonggao.html/gonggao.html
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR
154.209.146.94
REDIRECT_REMOTE_PORT
20001
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/index/news/gonggao.html
REDIRECT_SCRIPT_FILENAME
/usr/home/qyu7826920001/htdocs/index
REDIRECT_SCRIPT_NAME
/index
REDIRECT_SCRIPT_URI
http://www.mrjxcl.com/index/news/gonggao.html
REDIRECT_SCRIPT_URL
/index/news/gonggao.html
REDIRECT_SERVER_ADDR
172.18.58.168
REDIRECT_SERVER_ADMIN
webmaster@qyu7826920001.my3w.com
REDIRECT_SERVER_NAME
www.mrjxcl.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
YA4lp6wSOqgAAAJYKOgAAAAU
REDIRECT_URL
/index/news/gonggao.html
REMOTE_ADDR
154.209.146.94
REMOTE_PORT
20001
REQUEST_METHOD
GET
REQUEST_URI
/index/news/gonggao.html
SCRIPT_FILENAME
/usr/home/qyu7826920001/htdocs/index.php
SCRIPT_NAME
/index.php
SCRIPT_URI
http://www.mrjxcl.com/index/news/gonggao.html
SCRIPT_URL
/index/news/gonggao.html
SERVER_ADDR
172.18.58.168
SERVER_ADMIN
webmaster@qyu7826920001.my3w.com
SERVER_NAME
www.mrjxcl.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
YA4lp6wSOqgAAAJYKOgAAAAU
ORIG_PATH_INFO
/index/news/gonggao.html
ORIG_PATH_TRANSLATED
/usr/home/qyu7826920001/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1611539879.8095
REQUEST_TIME
1611539879
PATH_INFO
/index/news/gonggao.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/home/qyu7826920001/htdocs/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1611539879.8102
THINK_START_MEM
386992
EXT
.php
DS
/
THINK_PATH
/data/home/qyu7826920001/htdocs/thinkphp/
LIB_PATH
/data/home/qyu7826920001/htdocs/thinkphp/library/
CORE_PATH
/data/home/qyu7826920001/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/home/qyu7826920001/htdocs/thinkphp/library/traits/
ROOT_PATH
/data/home/qyu7826920001/htdocs/
EXTEND_PATH
/data/home/qyu7826920001/htdocs/extend/
VENDOR_PATH
/data/home/qyu7826920001/htdocs/vendor/
RUNTIME_PATH
/data/home/qyu7826920001/htdocs/runtime/
LOG_PATH
/data/home/qyu7826920001/htdocs/runtime/log/
CACHE_PATH
/data/home/qyu7826920001/htdocs/runtime/cache/
TEMP_PATH
/data/home/qyu7826920001/htdocs/runtime/temp/
CONF_PATH
/data/home/qyu7826920001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false