[0] TemplateNotFoundException in Template.php line 1074

模板文件不存在:../application/seven/view/common/siteheader.html

  1. }
  2. $template = realpath($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 1074
  2. at Template->parseTemplateFile('../application/seven...') in Template.php line 1034
  3. at Template->parseTemplateName('../application/seven...') in Template.php line 476
  4. at Template->think\{closure}('<!DOCTYPE html> <!--...') in Template.php line 492
  5. at Template->parseInclude('<!DOCTYPE html> <!--...') in Template.php line 373
  6. at Template->parse('<!DOCTYPE html> <!--...') in Template.php line 333
  7. at Template->compiler('<!DOCTYPE html> <!--...', '/data/www/hnwl.cjrh....') in Template.php line 182
  8. at Template->fetch('/data/www/hnwl.cjrh....', ['config' => ['system_user_id' => '1', 'sitename' => '...', 'title' => '...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '', 'cdnurl' => '', ...], ...], []) in Think.php line 86
  9. at Think->fetch('/index', ['config' => ['system_user_id' => '1', 'sitename' => '...', 'title' => '...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '', 'cdnurl' => '', ...], ...], []) in View.php line 163
  10. at View->fetch('/index') in Index.php line 20
  11. at Index->index()
  12. at call_user_func_array([object(Index), 'index'], []) in Route.php line 76
  13. at Route->execute('cms', 'index', 'index')
  14. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'index', 'index']) in App.php line 343
  15. at App::invokeMethod(['\think\addons\Route', 'execute'], ['/cms' => '', 'addon' => 'cms', 'controller' => 'index', ...]) in App.php line 470
  16. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'index', 'action' => 'index']], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  17. at App::run() in start.php line 19
  18. at require('/data/www/hnwl.cjrh....') in index.php line 39

Environment Variables

GET Data

/cms
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_SCRIPT_URL
/cms
REDIRECT_SCRIPT_URI
http://hnwl.cjrh.cfnet.org.cn/cms
REDIRECT_STATUS
200
SCRIPT_URL
/cms
SCRIPT_URI
http://hnwl.cjrh.cfnet.org.cn/cms
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
hnwl.cjrh.cfnet.org.cn
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/alidata/server/httpd-2.4.43/lib
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.43 (Unix) OpenSSL/1.0.2k-fips PHP/5.5.38
SERVER_NAME
hnwl.cjrh.cfnet.org.cn
SERVER_ADDR
10.31.149.18
SERVER_PORT
80
REMOTE_ADDR
3.236.111.234
DOCUMENT_ROOT
/data/www/hnwl.cjrh.cfnet.org.cn/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/data/www/hnwl.cjrh.cfnet.org.cn/public
SERVER_ADMIN
you@example.com
SCRIPT_FILENAME
/data/www/hnwl.cjrh.cfnet.org.cn/public/index.php
REMOTE_PORT
36392
REDIRECT_URL
/cms
REDIRECT_QUERY_STRING
/cms
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/cms
REQUEST_URI
/cms
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710846335.83
REQUEST_TIME
1710846335
PATH_INFO
/cms
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/public/../application/
DOMAIN_CHILD
THINK_VERSION
5.0.24
THINK_START_TIME
1710846335.8315
THINK_START_MEM
263728
EXT
.php
DS
/
THINK_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/thinkphp/
LIB_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/thinkphp/library/
CORE_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/thinkphp/library/think/
TRAIT_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/thinkphp/library/traits/
ROOT_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/
EXTEND_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/extend/
VENDOR_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/vendor/
RUNTIME_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/runtime/
LOG_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/runtime/log/
CACHE_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/runtime/cache/
TEMP_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/runtime/temp/
CONF_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
RANDOM_COMPAT_READ_BUFFER
8
PHP_INT_MIN
-9223372036854775808
ADDON_PATH
/data/www/hnwl.cjrh.cfnet.org.cn/addons/