[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/home/wwwroot/www.jutui.org/public/html/news/4829.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('/home/wwwroot/www.ju...', ['SEO' => ['web_title' => '...', 'web_description' => '...', 'web_site_cnzz' => '<script> var _hmt = ...', ...], 'art_footer' => object(Collection), 'navMenu' => [['name' => '首页', 'href' => '/', 'target' => '_blank', ...], ['name' => '巨推服务', 'href' => '/service', 'target' => '', ...], ['name' => '经典案例', 'href' => '/case', 'target' => '_blank', ...], ...], ...], []) in View.php line 163
  3. at View->fetch('/home/wwwroot/www.ju...', ['SEO' => ['web_title' => '...', 'web_description' => '...', 'web_site_cnzz' => '<script> var _hmt = ...', ...], 'art_footer' => object(Collection), 'navMenu' => [['name' => '首页', 'href' => '/', 'target' => '_blank', ...], ['name' => '巨推服务', 'href' => '/service', 'target' => '', ...], ['name' => '经典案例', 'href' => '/case', 'target' => '_blank', ...], ...], ...], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('/home/wwwroot/www.ju...') in Index.php line 162
  5. at Index->news()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  7. at App::invokeMethod([object(Index), 'news'], []) in App.php line 611
  8. at App::module([null, 'index', 'news'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => [null, 'index', 'news'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 20
  11. at require('/home/wwwroot/www.ju...') in index.php line 64

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

last_access
1711652739
ci
1

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.jutui.org
PATH_INFO
/news/4829.html
REDIRECT_STATUS
200
SERVER_NAME
www.jutui.org
SERVER_PORT
443
SERVER_ADDR
211.149.225.168
REMOTE_PORT
37838
REMOTE_ADDR
44.210.107.64
SERVER_SOFTWARE
nginx/1.8.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/home/wwwroot/www.jutui.org/public
DOCUMENT_URI
/index.php
REQUEST_URI
/news/4829.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/news/4829.html
SCRIPT_FILENAME
/home/wwwroot/www.jutui.org/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711652739.1408
REQUEST_TIME
1711652739
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/www.jutui.org/public/../application/
CONF_PATH
/home/wwwroot/www.jutui.org/public/../config/
THINK_VERSION
5.0.24
THINK_START_TIME
1711652739.141
THINK_START_MEM
393720
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/www.jutui.org/thinkphp/
LIB_PATH
/home/wwwroot/www.jutui.org/thinkphp/library/
CORE_PATH
/home/wwwroot/www.jutui.org/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/www.jutui.org/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/www.jutui.org/
EXTEND_PATH
/home/wwwroot/www.jutui.org/extend/
VENDOR_PATH
/home/wwwroot/www.jutui.org/vendor/
RUNTIME_PATH
/home/wwwroot/www.jutui.org/runtime/
LOG_PATH
/home/wwwroot/www.jutui.org/runtime/log/
CACHE_PATH
/home/wwwroot/www.jutui.org/runtime/cache/
TEMP_PATH
/home/wwwroot/www.jutui.org/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false