[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:./themes/default/.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(':', ['site_title' => '...', 'seo_title' => '...', 'seo_keyword' => '...', ...], []) in View.php line 159
  3. at View->fetch(':', ['title' => null, 'menuIndex' => null, 'keywords' => null, ...], [], []) in Controller.php line 111
  4. at Controller->fetch(':', ['title' => null, 'menuIndex' => null, 'keywords' => null, ...]) in About.php line 110
  5. at About->index()
  6. at ReflectionMethod->invokeArgs(object(About), []) in App.php line 224
  7. at App::invokeMethod([object(About), 'index'], []) in App.php line 389
  8. at App::module('index/about/index', ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 130
  9. at App::run() in start.php line 18
  10. at require('/www/wwwroot/hzswzx/...') in index.php line 17

Environment Variables

GET Data

/about/index/id/44_html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_HOST
www.osucricket.com
HTTP_CONNECTION
keep-alive
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0); 360Spider(compatible; HaosouSpider; http://www.haosou.com/help/help_3_2.html)
PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at www.osucricket.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.osucricket.com
SERVER_ADDR
172.18.100.125
SERVER_PORT
80
REMOTE_ADDR
137.175.0.225
DOCUMENT_ROOT
/www/wwwroot/hzswzx
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/hzswzx
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/hzswzx/index.php
REMOTE_PORT
58877
REDIRECT_URL
/about/index/id/44.html
REDIRECT_QUERY_STRING
/about/index/id/44.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/about/index/id/44.html
REQUEST_URI
/about/index/id/44.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1523931974.6604
REQUEST_TIME
1523931974
PATH_INFO
/about/index/id/44.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/hzswzx/application/
THINK_VERSION
5.0.7
THINK_START_TIME
1523931974.6613
THINK_START_MEM
263944
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/hzswzx/thinkphp/
LIB_PATH
/www/wwwroot/hzswzx/thinkphp/library/
CORE_PATH
/www/wwwroot/hzswzx/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/hzswzx/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/hzswzx/
EXTEND_PATH
/www/wwwroot/hzswzx/extend/
VENDOR_PATH
/www/wwwroot/hzswzx/vendor/
RUNTIME_PATH
/www/wwwroot/hzswzx/runtime/
LOG_PATH
/www/wwwroot/hzswzx/runtime/log/
CACHE_PATH
/www/wwwroot/hzswzx/runtime/cache/
TEMP_PATH
/www/wwwroot/hzswzx/runtime/temp/
CONF_PATH
/www/wwwroot/hzswzx/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false