[0] TemplateNotFoundException in Think.php line 78

模板文件不存在:/www/wwwroot/peigenhr.com/app/index/view/../../../template/.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 78
  2. at Think->fetch('/www/wwwroot/peigenh...', ['data' => ['class' => null, 'top_class' => null, 'data' => null]], []) in View.php line 127
  3. at View->fetch('../../../template/', ['data' => ['class' => null, 'top_class' => null, 'data' => null]], []) in View.php line 36
  4. at View->output('../../../template/') in Response.php line 286
  5. at Response->getContent() in Response.php line 97
  6. at Response->send() in start.php line 19
  7. at require('/www/wwwroot/peigenh...') in index.php line 17

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=259200
HTTP_X_FORWARDED_FOR 10.3.57.239
HTTP_VIA 1.1 squid-proxy-5b96dc6d46-8jcjb (squid/6.13)
HTTP_HOST peigenhr.com
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
PATH_INFO /lists/48.html
REDIRECT_STATUS 200
SERVER_NAME peigenhr.com
SERVER_PORT 80
SERVER_ADDR 172.30.132.133
REMOTE_PORT 34829
REMOTE_ADDR 216.73.217.173
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/peigenhr.com
DOCUMENT_URI /index.php
REQUEST_URI /lists/48.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/lists/48.html
SCRIPT_FILENAME /www/wwwroot/peigenhr.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1784458626.529
REQUEST_TIME 1784458626
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/peigenhr.com/app/
THINK_VERSION 5.0.0
THINK_START_TIME 1784458626.5293
THINK_START_MEM 367224
EXT .php
DS /
THINK_PATH /www/wwwroot/peigenhr.com/thinkphp/
LIB_PATH /www/wwwroot/peigenhr.com/thinkphp/library/
CORE_PATH /www/wwwroot/peigenhr.com/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/peigenhr.com/thinkphp/library/traits/
ROOT_PATH /www/wwwroot/peigenhr.com/
EXTEND_PATH /www/wwwroot/peigenhr.com/extend/
VENDOR_PATH /www/wwwroot/peigenhr.com/vendor/
RUNTIME_PATH /www/wwwroot/peigenhr.com/runtime/
LOG_PATH /www/wwwroot/peigenhr.com/runtime/log/
CACHE_PATH /www/wwwroot/peigenhr.com/runtime/cache/
TEMP_PATH /www/wwwroot/peigenhr.com/runtime/temp/
CONF_PATH /www/wwwroot/peigenhr.com/app/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
url /lists/48.html
ref Resource
ent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
url8 http://peigenhr.com
road /lists/48.html
regs @baiduspider|yisou|360|Sogou@i
area false