[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:themes/simpleboot3/portal/join_us.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('themes/simpleboot3/p...', ['site_info' => ['site_name' => '...', 'site_seo_title' => '...', 'site_seo_keywords' => '...', ...], 'page' => object(PortalPostModel), 'theme_vars' => ['footer_tellphone' => 'tel:400-6213-520', 'line_kefu' => '', 'line_wechat' => 'admin/20171030/e7fd7...', ...], ...], []) in View.php line 163
  3. at View->fetch('themes/simpleboot3/p...', ['site_info' => ['site_name' => '...', 'site_seo_title' => '...', 'site_seo_keywords' => '...', ...], 'page' => object(PortalPostModel), 'theme_vars' => ['footer_tellphone' => 'tel:400-6213-520', 'line_kefu' => '', 'line_wechat' => 'admin/20171030/e7fd7...', ...], ...], ['__ROOT__' => '', '__URL__' => '/portal/page', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('themes/simpleboot3/p...', [], [], []) in HomeBaseController.php line 88
  5. at HomeBaseController->fetch('themes/simpleboot3/p...') in PageController.php line 35
  6. at PageController->index()
  7. at ReflectionMethod->invokeArgs(object(PageController), []) in App.php line 343
  8. at App::invokeMethod([object(PageController), 'index'], []) in App.php line 611
  9. at App::module(['portal', 'Page', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['portal', 'Page', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in index.php line 40

Environment Variables

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

Server/Request Data

USER
php-fpm
HOME
/var/lib/php/fpm
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
bj.docpet.net
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_STATUS
200
SERVER_NAME
bj.docpet.net
SERVER_PORT
80
SERVER_ADDR
172.31.4.215
REMOTE_PORT
20001
REMOTE_ADDR
154.219.163.73
SERVER_SOFTWARE
nginx/1.16.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public
DOCUMENT_URI
/index.php
REQUEST_URI
/join.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=join.html
SCRIPT_FILENAME
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1573933567.6188
REQUEST_TIME
1573933567
PATH_INFO
join.html
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../
APP_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../app/
CMF_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../simplewind/cmf/
PLUGINS_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/plugins/
EXTEND_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../simplewind/extend/
VENDOR_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../simplewind/vendor/
RUNTIME_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../data/runtime/
THINKCMF_VERSION
5.0.170927
THINK_VERSION
5.0.24
THINK_START_TIME
1573933567.6197
THINK_START_MEM
395608
EXT
.php
DS
/
THINK_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/simplewind/thinkphp/
LIB_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/simplewind/thinkphp/library/
CORE_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/simplewind/thinkphp/library/think/
TRAIT_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/simplewind/thinkphp/library/traits/
ROOT_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/
LOG_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../data/runtime/log/
CACHE_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../data/runtime/cache/
TEMP_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../data/runtime/temp/
CONF_PATH
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/public/../app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/usr/share/nginx/docpetSubWebsite/bj.docpet.net/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1