[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:/www/wwwroot/www.010huwai.com/public/../application/home/view/action/index.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 80
  2. at Think->fetch('/www/wwwroot/www.010...', [], []) in View.php line 159
  3. at View->fetch('', [], []) in View.php line 36
  4. at View->output('') in Response.php line 305
  5. at Response->getContent() in Response.php line 94
  6. at Response->send() in start.php line 18
  7. at require('/www/wwwroot/www.010...') in index.php line 17

Environment Variables

GET Data
ej_id 67
id 17
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.010huwai.com
HTTP_ALI_CDN_EDSF_LEVEL 1
HTTP_X_DA_CLIENT_SCHEME https
HTTP_ALI_CDN_ADAPTIVE_PORTS 80,443
HTTP_ALI_SWIFT_ORIGIN_HOST www.010huwai.com
HTTP_ALI_CDN_APPVIEW_NAME cdn-tengine
HTTP_REFERER http://www.010huwai.com/index.php/Home/Action/index.html?ej_id=67&&id=17
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_ALI_SWIFT_FORCE_TTL_CODE 400=0
HTTP_ALI_CDN_REAL_IP 34.236.152.203
HTTP_X_CLIENT_SCHEME https
HTTP_X_FORWARDED_FOR 34.236.152.203
HTTP_ALI_SWIFT_STAT_HOST www.010huwai.com
HTTP_ALI_SWIFT_LOG_HOST www.010huwai.com
HTTP_ALI_PROXY_IS_FREE 0
HTTP_ALI_PROXY_IS_HOT 0
HTTP_EAGLEEYE_TRACEID 3da0c00d17108492844487468e
HTTP_VIA cn6425.l1, kunlun1.cn6425, l2cn3135.l2, cache23.l2cn3135
PATH_INFO /Home/Action/index.html
REDIRECT_STATUS 200
SERVER_NAME www.010huwai.com
SERVER_PORT 443
SERVER_ADDR 47.93.116.149
REMOTE_PORT 36626
REMOTE_ADDR 120.220.212.30
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.010huwai.com/public
DOCUMENT_URI /index.php/Home/Action/index.html
REQUEST_URI /index.php/Home/Action/index.html?ej_id=67&&id=17
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING ej_id=67&&id=17
SCRIPT_FILENAME /www/wwwroot/www.010huwai.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/Home/Action/index.html
REQUEST_TIME_FLOAT 1710849285.231
REQUEST_TIME 1710849285
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.010huwai.com/public/../application/
ENTR_PATH
THINK_VERSION 5.0.5
THINK_START_TIME 1710849285.2315
THINK_START_MEM 404448
EXT .php
DS /
THINK_PATH /www/wwwroot/www.010huwai.com/thinkphp/
LIB_PATH /www/wwwroot/www.010huwai.com/thinkphp/library/
CORE_PATH /www/wwwroot/www.010huwai.com/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/www.010huwai.com/thinkphp/library/traits/
ROOT_PATH /www/wwwroot/www.010huwai.com/
EXTEND_PATH /www/wwwroot/www.010huwai.com/extend/
VENDOR_PATH /www/wwwroot/www.010huwai.com/vendor/
RUNTIME_PATH /www/wwwroot/www.010huwai.com/runtime/
LOG_PATH /www/wwwroot/www.010huwai.com/runtime/log/
CACHE_PATH /www/wwwroot/www.010huwai.com/runtime/cache/
TEMP_PATH /www/wwwroot/www.010huwai.com/runtime/temp/
CONF_PATH /www/wwwroot/www.010huwai.com/public/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false