[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/ifengus.com/addons/cms/view/fenghuang/channel_hktv.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/ifengus...', ['config' => ['system_user_id' => '1', 'sitename' => '...', 'title' => '', ...], 'user' => null, 'site' => ['name' => '凤凰美洲', 'beian' => '', 'cdnurl' => '', ...], ...], []) in View.php line 163
  3. at View->fetch('/channel_hktv') in Channel.php line 191
  4. at Channel->index()
  5. at call_user_func_array([object(Channel), 'index'], []) in Route.php line 76
  6. at Route->execute('cms', 'channel', 'index')
  7. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channel', 'index']) in App.php line 343
  8. at App::invokeMethod(['\think\addons\Route', 'execute'], ['diyname' => 'hktvnew', 'addon' => 'cms', 'controller' => 'channel', ...]) in App.php line 470
  9. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channel', 'action' => 'index']], ['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/ifengus...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.ifengus.com
PATH_INFO
/c/hktvnew.html
REDIRECT_STATUS
200
SERVER_NAME
ifengus.com
SERVER_PORT
443
SERVER_ADDR
104.168.244.55
REMOTE_PORT
49138
REMOTE_ADDR
54.166.234.171
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/ifengus.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/c/hktvnew.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/c/hktvnew.html
SCRIPT_FILENAME
/www/wwwroot/ifengus.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710838920.2685
REQUEST_TIME
1710838920
Environment Variables
empty

ThinkPHP Constants

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