[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/data/user/htdocs/addons/cms/view/web/outlink.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('/data/user/htdocs/ad...', ['config' => ['system_user_id' => '0', 'sitename' => '...', 'sitelogo' => '/uploads/20211013/31...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '...', 'cdnurl' => '/public', ...], ...], []) in View.php line 163
  3. at View->fetch('/outlink', ['config' => ['system_user_id' => '0', 'sitename' => '...', 'sitelogo' => '/uploads/20211013/31...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '...', 'cdnurl' => '/public', ...], ...]) in Go.php line 33
  4. at Go->index()
  5. at call_user_func_array([object(Go), 'index'], []) in Route.php line 76
  6. at Route->execute('cms', 'go', 'index')
  7. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'go', 'index']) in App.php line 343
  8. at App::invokeMethod(['\think\addons\Route', 'execute'], ['url' => 'http://www.cailvtong...', 'addon' => 'cms', 'controller' => 'go', ...]) in App.php line 470
  9. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => []], ['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('/data/user/htdocs/th...') in index.php line 23

Environment Variables

GET Data

url
http://www.cailvtong.cn/lchxl/128.html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
nobody
HOME
/
HTTP_HOST
cailvtong.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
SERVER_NAME
wh-nh2un5qgnb2elib4cal.my3w.com
SERVER_PORT
80
SERVER_ADDR
172.21.39.133
REMOTE_PORT
53492
REMOTE_ADDR
18.207.98.249
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data/user/htdocs
DOCUMENT_URI
/index.php
REQUEST_URI
/addons/cms/go/index.html?url=http%3A%2F%2Fwww.cailvtong.cn%2Flchxl%2F128.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/addons/cms/go/index.html&url=http%3A%2F%2Fwww.cailvtong.cn%2Flchxl%2F128.html
PATH_INFO
/addons/cms/go/index.html
SCRIPT_FILENAME
/data/user/htdocs/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711713298.2158
REQUEST_TIME
1711713298
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/user/htdocs/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711713298.2159
THINK_START_MEM
348360
EXT
.php
DS
/
THINK_PATH
/data/user/htdocs/thinkphp/
LIB_PATH
/data/user/htdocs/thinkphp/library/
CORE_PATH
/data/user/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/user/htdocs/thinkphp/library/traits/
ROOT_PATH
/data/user/htdocs/
EXTEND_PATH
/data/user/htdocs/extend/
VENDOR_PATH
/data/user/htdocs/vendor/
RUNTIME_PATH
/data/user/htdocs/runtime/
LOG_PATH
/data/user/htdocs/runtime/log/
CACHE_PATH
/data/user/htdocs/runtime/cache/
TEMP_PATH
/data/user/htdocs/runtime/temp/
CONF_PATH
/data/user/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PHP_FLOAT_DIG
15
PHP_FLOAT_EPSILON
2.2204460492503E-16
PHP_FLOAT_MIN
2.2250738585072E-308
PHP_FLOAT_MAX
1.7976931348623E+308
PHP_OS_FAMILY
Linux
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
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/data/user/htdocs/addons/