[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/haoxiehui.net/addons/cms/view/hxh2023/special_hxh2021.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/haoxieh...', ['config' => ['system_user_id' => '0', 'sitename' => '好蟹汇', 'sitelogo' => '/uploads/20230329/f0...', ...], 'user' => null, 'site' => ['name' => '卡券SB2B2C', 'beian' => '', 'cdnurl' => '', ...], ...], []) in View.php line 163
  3. at View->fetch('/special_hxh2021') in Special.php line 96
  4. at Special->index()
  5. at call_user_func_array([object(Special), 'index'], []) in Route.php line 78
  6. at Route->execute('cms', 'special', 'index')
  7. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'special', 'index']) in App.php line 343
  8. at App::invokeMethod(['\think\addons\Route', 'execute'], ['s' => '/special/haoxiehui20...', 'diyname' => 'haoxiehui2021', 'addon' => 'cms', ...]) in App.php line 470
  9. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'special', '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/haoxieh...') in index.php line 23

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.haoxiehui.net
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/special/haoxiehui2021.html
REDIRECT_STATUS
200
SERVER_NAME
haoxiehui.net
SERVER_PORT
80
SERVER_ADDR
172.28.18.213
REMOTE_PORT
40138
REMOTE_ADDR
52.90.50.252
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/haoxiehui.net/public
DOCUMENT_URI
/index.php
REQUEST_URI
/special/haoxiehui2021.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/special/haoxiehui2021.html
SCRIPT_FILENAME
/www/wwwroot/haoxiehui.net/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711628264.8676
REQUEST_TIME
1711628264
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/haoxiehui.net/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711628264.868
THINK_START_MEM
367768
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/haoxiehui.net/thinkphp/
LIB_PATH
/www/wwwroot/haoxiehui.net/thinkphp/library/
CORE_PATH
/www/wwwroot/haoxiehui.net/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/haoxiehui.net/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/haoxiehui.net/
EXTEND_PATH
/www/wwwroot/haoxiehui.net/extend/
VENDOR_PATH
/www/wwwroot/haoxiehui.net/vendor/
RUNTIME_PATH
/www/wwwroot/haoxiehui.net/runtime/
LOG_PATH
/www/wwwroot/haoxiehui.net/runtime/log/
CACHE_PATH
/www/wwwroot/haoxiehui.net/runtime/cache/
TEMP_PATH
/www/wwwroot/haoxiehui.net/runtime/temp/
CONF_PATH
/www/wwwroot/haoxiehui.net/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
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
ADDON_PATH
/www/wwwroot/haoxiehui.net/addons/
PRIVATE_DOMAIN
false
COMPANY_URL
/web.html