[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/data/home/qyu7038890001/htdocs/application/portal/view/contact/contact.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('', ['setting' => ['telephone' => '0531-86963008', 'title' => '...', 'author' => 'ZhangZhiwei', ...], 'static_path' => '/public/static/', 'common_path' => '/public/static/commo...', ...], []) in View.php line 163
  3. at View->fetch('', [], [], []) in Controller.php line 120
  4. at Controller->fetch() in Contact.php line 15
  5. at Contact->contact()
  6. at ReflectionMethod->invokeArgs(object(Contact), []) in App.php line 196
  7. at App::invokeMethod([object(Contact), 'contact'], []) in App.php line 412
  8. at App::module([null, 'contact', 'contact'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 295
  9. at App::exec(['type' => 'module', 'module' => [null, 'contact', 'contact'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  10. at App::run() in start.php line 19
  11. at require('/data/home/qyu703889...') in index.php line 15

Environment Variables

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

Server/Request Data

DOCUMENT_ROOT
/usr/home/qyu7038890001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_HOST
www.yyygf.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/php56/hichina_ini/qyu7038890001
QUERY_STRING
s=contact/index.html
REDIRECT_DOCUMENT_ROOT
/usr/home/qyu7038890001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
deflate, gzip
REDIRECT_HTTP_HOST
www.yyygf.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_PATH
/bin:/bin/sbin/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/sbin
REDIRECT_PATH_INFO
/index.html
REDIRECT_PATH_TRANSLATED
redirect:/index.php
REDIRECT_QUERY_STRING
s=contact/index.html
REDIRECT_REMOTE_ADDR
154.210.121.73
REDIRECT_REMOTE_PORT
20001
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/contact/index.html
REDIRECT_SCRIPT_FILENAME
/usr/home/qyu7038890001/htdocs/contact
REDIRECT_SCRIPT_NAME
/contact
REDIRECT_SERVER_ADDR
172.17.69.95
REDIRECT_SERVER_ADMIN
webmaster@qyu7038890001.my3w.com
REDIRECT_SERVER_NAME
www.yyygf.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
X5towawRRV8AACjlWmMAAAAJ
REDIRECT_URL
/contact/index.html
REMOTE_ADDR
154.210.121.73
REMOTE_PORT
20001
REQUEST_METHOD
GET
REQUEST_URI
/contact/index.html
SCRIPT_FILENAME
/usr/home/qyu7038890001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
172.17.69.95
SERVER_ADMIN
webmaster@qyu7038890001.my3w.com
SERVER_NAME
www.yyygf.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
X5towawRRV8AACjlWmMAAAAJ
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1604020417.3939
REQUEST_TIME
1604020417
PATH_INFO
contact/index.html
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
IS_PUBLIC
false
ROOT_PATH
/data/home/qyu7038890001/htdocs/
PUBLIC_NAME
public
APP_PATH
/data/home/qyu7038890001/htdocs/application/
WEJOY_PATH
/data/home/qyu7038890001/htdocs/zhmx/
EXTEND_PATH
/data/home/qyu7038890001/htdocs/zhmx/extend/
VENDOR_PATH
/data/home/qyu7038890001/htdocs/zhmx/vendor/
THINK_VERSION
5.0.24
THINK_START_TIME
1604020417.3953
THINK_START_MEM
240472
EXT
.php
DS
/
THINK_PATH
/data/home/qyu7038890001/htdocs/zhmx/thinkphp/
LIB_PATH
/data/home/qyu7038890001/htdocs/zhmx/thinkphp/library/
CORE_PATH
/data/home/qyu7038890001/htdocs/zhmx/thinkphp/library/think/
TRAIT_PATH
/data/home/qyu7038890001/htdocs/zhmx/thinkphp/library/traits/
RUNTIME_PATH
/data/home/qyu7038890001/htdocs/runtime/
LOG_PATH
/data/home/qyu7038890001/htdocs/runtime/log/
CACHE_PATH
/data/home/qyu7038890001/htdocs/runtime/cache/
TEMP_PATH
/data/home/qyu7038890001/htdocs/runtime/temp/
CONF_PATH
/data/home/qyu7038890001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false