[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/www.yg1st.com/public/../application/index/view/templates/application_law.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 82
  2. at Think->fetch('/www/wwwroot/www.yg1...', ['title' => '法律顾问 -「勇...', 'des' => '...', 'keywords' => '...', ...], []) in View.php line 163
  3. at View->fetch('', ['title' => '法律顾问 -「勇...', 'des' => '...', 'keywords' => '...', ...], ['__ROOT__' => '', '__URL__' => '/index/templates', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch() in Templates.php line 454
  5. at Templates->application_law()
  6. at ReflectionMethod->invokeArgs(object(Templates), []) in App.php line 343
  7. at App::invokeMethod([object(Templates), 'application_law'], []) in App.php line 611
  8. at App::module(['index', 'templates', 'application_law'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'templates', 'application_law'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/www.yg1...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

application_law_access
1
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/application_law.html
QUERY_STRING
s=/application_law.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=/application_law.html
REDIRECT_URL
/application_law.html
REMOTE_PORT
45143
SCRIPT_FILENAME
/www/wwwroot/www.yg1st.com/public/index.php
SERVER_ADMIN
webmasterexample.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.yg1st.com/public/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/www.yg1st.com/public/
REMOTE_ADDR
101.69.218.82
SERVER_PORT
443
SERVER_ADDR
172.16.128.49
SERVER_NAME
www.yg1st.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.yg1st.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
HTTP_ALI_SWIFT_5XX_NO_RETRY
on
HTTP_ALI_TPROXY_UREQUEST_TIMEOUT
30
HTTP_ACCEPT
*/*
HTTP_ALI_CDN_REAL_IP
118.178.95.145
HTTP_X_CLIENT_SCHEME
https
HTTP_X_FORWARDED_FOR
118.178.95.145
HTTP_ALI_SWIFT_STAT_HOST
level2.www.yg1st.com
HTTP_ALI_SWIFT_LOG_HOST
www.yg1st.com
HTTP_EAGLEEYE_TRACEID
7ae4079916570809565133999e
HTTP_VIA
cn3468.l1, kunlun1.cn3468, l2cn3047.l2, cache62.l2cn3047
HTTP_HOST
www.yg1st.com
proxy-nokeepalive
1
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1657080956.8021
REQUEST_TIME
1657080956
PATH_INFO
/application_law.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.yg1st.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1657080956.8024
THINK_START_MEM
404536
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.yg1st.com/thinkphp/
LIB_PATH
/www/wwwroot/www.yg1st.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.yg1st.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.yg1st.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.yg1st.com/
EXTEND_PATH
/www/wwwroot/www.yg1st.com/extend/
VENDOR_PATH
/www/wwwroot/www.yg1st.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.yg1st.com/runtime/
LOG_PATH
/www/wwwroot/www.yg1st.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.yg1st.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.yg1st.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.yg1st.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/www.yg1st.com/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/www.yg1st.com/addons/