[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/usr/home/qxu1099420025/htdocs/addons/cms/view/default/.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('/usr/home/qxu1099420...', ['config' => ['system_user_id' => '0', 'sitename' => '...', 'sitelogo' => '/assets/addons/cms/i...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '', 'cdnurl' => '', ...], ...], []) in View.php line 163
  3. at View->fetch('/') in Channel.php line 162
  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' => 'blogroll', '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('/usr/home/qxu1099420...') in index.php line 39

Environment Variables

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

Server/Request Data

DOCUMENT_ROOT
/usr/home/qxu1099420025/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_CONNECTION
close
HTTP_HOST
www.whhaitian.com.cn
HTTP_REMOTE_HOST
104.140.17.122
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_FORWARDED_FOR
104.140.17.122
HTTP_X_FORWARDED_PROTO
http
HTTP_X_REAL_IP
104.140.17.122
PATH
/bin
PHPRC
/var/www/php72/hichina_ini/qxu1099420025
QUERY_STRING
REDIRECT_DOCUMENT_ROOT
/usr/home/qxu1099420025/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
gzip
REDIRECT_HTTP_CONNECTION
close
REDIRECT_HTTP_HOST
www.whhaitian.com.cn
REDIRECT_HTTP_REMOTE_HOST
104.140.17.122
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
REDIRECT_HTTP_X_FORWARDED_FOR
104.140.17.122
REDIRECT_HTTP_X_FORWARDED_PROTO
http
REDIRECT_HTTP_X_REAL_IP
104.140.17.122
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR
10.19.5.66
REDIRECT_REMOTE_PORT
44568
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/blogroll.html
REDIRECT_SCRIPT_FILENAME
/usr/home/qxu1099420025/htdocs/blogroll.html
REDIRECT_SCRIPT_NAME
/blogroll.html
REDIRECT_SERVER_ADDR
10.17.222.130
REDIRECT_SERVER_ADMIN
webmaster@qxu1099420025.my3w.com
REDIRECT_SERVER_NAME
www.whhaitian.com.cn
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.0
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_TZ
Asia/Shanghai
REDIRECT_UNIQUE_ID
Z0HRfwoR3oIAJkn7UTEAAAAF
REDIRECT_URL
/blogroll.html
REMOTE_ADDR
10.19.5.66
REMOTE_PORT
44568
REQUEST_METHOD
GET
REQUEST_URI
/blogroll.html
SCRIPT_FILENAME
/usr/home/qxu1099420025/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.17.222.130
SERVER_ADMIN
webmaster@qxu1099420025.my3w.com
SERVER_NAME
www.whhaitian.com.cn
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.0
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
Z0HRfwoR3oIAJkn7UTEAAAAF
ORIG_PATH_INFO
/blogroll.html
ORIG_PATH_TRANSLATED
/usr/home/qxu1099420025/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1732366719.6907
REQUEST_TIME
1732366719
PATH_INFO
/blogroll.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
./application/
THINK_VERSION
5.0.24
THINK_START_TIME
1732366719.6914
THINK_START_MEM
387368
EXT
.php
DS
/
THINK_PATH
/usr/home/qxu1099420025/htdocs/thinkphp/
LIB_PATH
/usr/home/qxu1099420025/htdocs/thinkphp/library/
CORE_PATH
/usr/home/qxu1099420025/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/qxu1099420025/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/qxu1099420025/htdocs/
EXTEND_PATH
/usr/home/qxu1099420025/htdocs/extend/
VENDOR_PATH
/usr/home/qxu1099420025/htdocs/vendor/
RUNTIME_PATH
/usr/home/qxu1099420025/htdocs/runtime/
LOG_PATH
/usr/home/qxu1099420025/htdocs/runtime/log/
CACHE_PATH
/usr/home/qxu1099420025/htdocs/runtime/cache/
TEMP_PATH
/usr/home/qxu1099420025/htdocs/runtime/temp/
CONF_PATH
./application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
U_IDNA_PROHIBITED_ERROR
66560
U_IDNA_ERROR_START
66560
U_IDNA_UNASSIGNED_ERROR
66561
U_IDNA_CHECK_BIDI_ERROR
66562
U_IDNA_STD3_ASCII_RULES_ERROR
66563
U_IDNA_ACE_PREFIX_ERROR
66564
U_IDNA_VERIFICATION_ERROR
66565
U_IDNA_LABEL_TOO_LONG_ERROR
66566
U_IDNA_ZERO_LENGTH_LABEL_ERROR
66567
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR
66568
U_IDNA_ERROR_LIMIT
66569
U_STRINGPREP_PROHIBITED_ERROR
66560
U_STRINGPREP_UNASSIGNED_ERROR
66561
U_STRINGPREP_CHECK_BIDI_ERROR
66562
IDNA_DEFAULT
0
IDNA_ALLOW_UNASSIGNED
1
IDNA_USE_STD3_RULES
2
IDNA_CHECK_BIDI
4
IDNA_CHECK_CONTEXTJ
8
IDNA_NONTRANSITIONAL_TO_ASCII
16
IDNA_NONTRANSITIONAL_TO_UNICODE
32
INTL_IDNA_VARIANT_2003
0
INTL_IDNA_VARIANT_UTS46
1
IDNA_ERROR_EMPTY_LABEL
1
IDNA_ERROR_LABEL_TOO_LONG
2
IDNA_ERROR_DOMAIN_NAME_TOO_LONG
4
IDNA_ERROR_LEADING_HYPHEN
8
IDNA_ERROR_TRAILING_HYPHEN
16
IDNA_ERROR_HYPHEN_3_4
32
IDNA_ERROR_LEADING_COMBINING_MARK
64
IDNA_ERROR_DISALLOWED
128
IDNA_ERROR_PUNYCODE
256
IDNA_ERROR_LABEL_HAS_DOT
512
IDNA_ERROR_INVALID_ACE_LABEL
1024
IDNA_ERROR_BIDI
2048
IDNA_ERROR_CONTEXTJ
4096
ADDON_PATH
/usr/home/qxu1099420025/htdocs/addons/