[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/91brain/theme/Home/default/plan/home.tpl

  1. public function fetch($template, $data = [], $config = [])
  2. {
  3. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  4. // 获取模板文件名
  5. $template = $this->parseTemplate($template);
  6. }
  7. // 模板不存在 抛出异常
  8. if (!is_file($template)) {
  9. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  10. }
  11. // 记录视图信息
  12. Container::get('app')
  13. ->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');
  14. $this->template->fetch($template, $data, $config);
  15. }

Call Stack

  1. in Think.php line 82
  2. at Think->fetch('/www/wwwroot/91brain...', ['site_name' => '...', 'site_url' => 'http://www.91brain.c...', 'site_title' => '...', ...], []) in View.php line 175
  3. at View->fetch('', ['site_name' => '...', 'site_url' => 'http://www.91brain.c...', 'site_title' => '...', ...]) in View.php line 38
  4. at View->output('') in Response.php line 376
  5. at Response->getContent() in Response.php line 121
  6. at Response->send() in index.php line 13

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.91brain.cn
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH_INFO
/plan/home.html
REDIRECT_STATUS
200
SERVER_NAME
91brain.cn
SERVER_PORT
80
SERVER_ADDR
172.16.0.4
REMOTE_PORT
20001
REMOTE_ADDR
154.80.129.150
SERVER_SOFTWARE
nginx/1.15.9
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/91brain
DOCUMENT_URI
/index.php
REQUEST_URI
/plan/home.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/plan/home.html
SCRIPT_FILENAME
/www/wwwroot/91brain/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1561574577.1323
REQUEST_TIME
1561574577
ALL_HTTP
Environment Variablesempty
ThinkPHP Constants
WEB_PATH
/www/wwwroot/91brain
APP_PATH
/www/wwwroot/91brain/zmapp/
QINIU_FUNCTIONS_VERSION
7.2.3
MODULE
home
CONTROLLER
Plan
ACTION
home
DATA_PATH
/www/wwwroot/91brain/runtime/cache/
TEMP_PATH
/www/wwwroot/91brain/runtime/temp/
FIELD_PATH
/www/wwwroot/91brain/runtime/field/
HTML_PATH
/www/wwwroot/91brain/Html/
LOG_PATH
/www/wwwroot/91brain/runtime/log/
ZMCMS_VERSION
ZmCMS V2.01