[0] TemplateNotFoundException in Template.php line 1086

模板文件不存在:Theme/Home/green/Common/header.tpl

  1. }
  2. $template = $path . $template . '.' . ltrim($this->config['view_suffix'], '.');
  3. }
  4. if (is_file($template)) {
  5. // 记录模板文件的更新时间
  6. $this->includeFile[$template] = filemtime($template);
  7. return $template;
  8. } else {
  9. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  10. }
  11. }
  12. /**
  13. * 按标签生成正则
  14. * @access private
  15. * @param string $tagName 标签名
  16. * @return string
  17. */

Call Stack

  1. in Template.php line 1086
  2. at Template->parseTemplateFile('Common:header') in Template.php line 1046
  3. at Template->parseTemplateName('Common:header') in Template.php line 484
  4. at Template->think\{closure}('<!doctype html> <ht...') in Template.php line 500
  5. at Template->parseInclude('<!doctype html> <ht...') in Template.php line 381
  6. at Template->parse('<!doctype html> <ht...') in Template.php line 341
  7. at Template->compiler('<!doctype html> <ht...', '/home/wwwroot/sczhen...') in Template.php line 190
  8. at Template->fetch('Theme/Home/green/art...', ['modulename' => 'article', 'actionname' => 'show', 's' => '/Home/article/show.h...', ...], []) in Think.php line 84
  9. at Think->fetch('', ['modulename' => 'article', 'actionname' => 'show', 's' => '/Home/article/show.h...', ...], []) in View.php line 159
  10. at View->fetch('', [], []) in View.php line 36
  11. at View->output('') in Response.php line 305
  12. at Response->getContent() in Response.php line 94
  13. at Response->send() in start.php line 18
  14. at require('/home/wwwroot/sczhen...') in index.php line 21

Environment Variables

GET Data

id
332
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/home/wwwroot/sczhengda.com/index.php
QUERY_STRING
s=/Home/article/show.html&id=332
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/Home/article/show.html?id=332
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/home/wwwroot/sczhengda.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.2
REMOTE_ADDR
154.92.235.78
REMOTE_PORT
20000
SERVER_ADDR
211.149.203.3
SERVER_PORT
80
SERVER_NAME
sczhengda.com
REDIRECT_STATUS
200
PATH_INFO
/Home/article/show.html
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.sczhengda.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1596906438.1968
REQUEST_TIME
1596906438
Environment Variables
empty

ThinkPHP Constants

APP_NAME
ZhiMengCMS
WEB_PATH
/home/wwwroot/sczhengda.com
APP_NAMESPACE
ZhiMengApp
EXTEND_PATH
/home/wwwroot/sczhengda.com/ZhiMengApp/extend/
VENDOR_PATH
/home/wwwroot/sczhengda.com/Vendor/
LOG_PATH
/home/wwwroot/sczhengda.com/RunTime/log/
TEMP_PATH
/home/wwwroot/sczhengda.com/RunTime/temp/
HTML_PATH
/home/wwwroot/sczhengda.com/Html/
CACHE_PATH
/home/wwwroot/sczhengda.com/RunTime/cache/
DATA_PATH
/home/wwwroot/sczhengda.com/RunTime/field/
APP_PATH
/home/wwwroot/sczhengda.com/ZhiMengApp/
RUNTIME_PATH
/home/wwwroot/sczhengda.com/RunTime/
THINK_VERSION
5.0.7
THINK_START_TIME
1596906438.1982
THINK_START_MEM
266120
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/sczhengda.com/ZhiMengCore/thinkphp/
LIB_PATH
/home/wwwroot/sczhengda.com/ZhiMengCore/thinkphp/library/
CORE_PATH
/home/wwwroot/sczhengda.com/ZhiMengCore/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/sczhengda.com/ZhiMengCore/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/sczhengda.com/
CONF_PATH
/home/wwwroot/sczhengda.com/ZhiMengApp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
CONTROLLER_NAME
Article
ACTION_NAME
show