[0] TemplateNotFoundException in Template.php line 1074

模板文件不存在:

  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(false) in Template.php line 1034
  3. at Template->parseTemplateName('Public:nav') in Template.php line 476
  4. at Template->think\{closure}('<!DOCTYPE html> <ht...') in Template.php line 492
  5. at Template->parseInclude('<!DOCTYPE html> <ht...') in Template.php line 373
  6. at Template->parse('<!DOCTYPE html> <ht...') in Template.php line 333
  7. at Template->compiler('<!DOCTYPE html> <ht...', '/home/lygyjx/domains...') in Template.php line 182
  8. at Template->fetch('../zmcapps/index/vie...', ['bodycode' => ' <a target="_blank" ...', 'bdqiao' => ['id' => 1, 'name' => 'bdqiao', 'title' => '百度商桥', ...], 'ts' => 1, ...], []) in Think.php line 86
  9. at Think->fetch('../zmcapps/index/vie...', ['bodycode' => ' <a target="_blank" ...', 'bdqiao' => ['id' => 1, 'name' => 'bdqiao', 'title' => '百度商桥', ...], 'ts' => 1, ...], []) in View.php line 163
  10. at View->fetch() in Message.php line 1
  11. at Message->index()
  12. at ReflectionMethod->invokeArgs(object(Message), []) in App.php line 343
  13. at App::invokeMethod([object(Message), 'index'], []) in App.php line 611
  14. at App::module(['index', 'message', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  15. at App::exec(['type' => 'module', 'module' => ['index', 'message', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  16. at App::run() in start.php line 19
  17. at require('/home/lygyjx/domains...') in index.php line 18

Environment Variables

GET Data

/message_html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
lygyjx
HOME
/home/lygyjx
SCRIPT_NAME
/index.php
REQUEST_URI
/message.html
QUERY_STRING
/message.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/message.html
REDIRECT_URL
/message.html
REMOTE_PORT
58756
SCRIPT_FILENAME
/home/lygyjx/domains/lygyjx.com/public_html/public/index.php
SERVER_ADMIN
webmaster@lygyjx.com
CONTEXT_DOCUMENT_ROOT
/home/lygyjx/domains/lygyjx.com/public_html/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/home/lygyjx/domains/lygyjx.com/public_html/public
REMOTE_ADDR
34.226.141.207
SERVER_PORT
80
SERVER_ADDR
192.168.0.5
SERVER_NAME
lygyjx.com
SERVER_SOFTWARE
Apache/2
SERVER_SIGNATURE
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
lygyjx.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
gongan_url
http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=
icp_url
https://beian.miit.gov.cn/#/Integrated/index
UNIQUE_ID
ZgVKLk0HmDmlrmySMiXhUQAAABA
REDIRECT_STATUS
200
REDIRECT_gongan_url
http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=
REDIRECT_icp_url
https://beian.miit.gov.cn/#/Integrated/index
REDIRECT_UNIQUE_ID
ZgVKLk0HmDmlrmySMiXhUQAAABA
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711622702.0914
REQUEST_TIME
1711622702
PATH_INFO
/message.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/lygyjx/domains/lygyjx.com/public_html/public/../zmcapps/
THINK_VERSION
5.0.24
THINK_START_TIME
1711622702.0918
THINK_START_MEM
403816
EXT
.php
DS
/
THINK_PATH
/home/lygyjx/domains/lygyjx.com/public_html/thinkphp/
LIB_PATH
/home/lygyjx/domains/lygyjx.com/public_html/thinkphp/library/
CORE_PATH
/home/lygyjx/domains/lygyjx.com/public_html/thinkphp/library/think/
TRAIT_PATH
/home/lygyjx/domains/lygyjx.com/public_html/thinkphp/library/traits/
ROOT_PATH
/home/lygyjx/domains/lygyjx.com/public_html/
EXTEND_PATH
/home/lygyjx/domains/lygyjx.com/public_html/extend/
VENDOR_PATH
/home/lygyjx/domains/lygyjx.com/public_html/vendor/
RUNTIME_PATH
/home/lygyjx/domains/lygyjx.com/public_html/runtime/
LOG_PATH
/home/lygyjx/domains/lygyjx.com/public_html/runtime/log/
CACHE_PATH
/home/lygyjx/domains/lygyjx.com/public_html/runtime/cache/
TEMP_PATH
/home/lygyjx/domains/lygyjx.com/public_html/runtime/temp/
CONF_PATH
/home/lygyjx/domains/lygyjx.com/public_html/public/../zmcapps/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/home/lygyjx/domains/lygyjx.com/public_html/addons/