[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:./template//index/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 82
  2. at Think->fetch('./template//index/in...', ['site' => null, 'mate_title' => '', 'mate_keywords' => '', ...], []) in View.php line 164
  3. at View->fetch('', ['site' => null, 'mate_title' => '', 'mate_keywords' => '', ...], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch() in Index.php line 24
  5. at Index->index()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  7. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  8. at App::module(['index', null, null], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...], true) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', null, null]], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/data/user/htdocs/fr...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
th19a8o7lag4ie0h1nh70iu6p2
Session
empty

Server/Request Data

USER
nobody
HOME
/
HTTP_COOKIE
PHPSESSID=th19a8o7lag4ie0h1nh70iu6p2
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_CONNECTION
close
HTTP_X_FORWARDED_PROTO
http
HTTP_REMOTE_HOST
107.158.201.46
HTTP_X_FORWARDED_FOR
107.158.201.46
HTTP_X_REAL_IP
107.158.201.46
HTTP_HOST
www.moeller-sz.com
REDIRECT_STATUS
200
SERVER_NAME
wh-nbhk7d5gap6gmogyntz.my3w.com
SERVER_PORT
80
SERVER_ADDR
10.0.35.252
REMOTE_PORT
REMOTE_ADDR
107.158.201.46
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.0
DOCUMENT_ROOT
/data/user/htdocs
DOCUMENT_URI
/index.php
REQUEST_URI
/index.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//index.html
PATH_INFO
//index.html
SCRIPT_FILENAME
/data/user/htdocs/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1713427155.3099
REQUEST_TIME
1713427155
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/user/htdocs/application/
BASE_PATH
RUNTIME_PATH
/data/user/htdocs/data/
THINK_VERSION
5.0.23
THINK_START_TIME
1713427155.31
THINK_START_MEM
351336
EXT
.php
DS
/
THINK_PATH
/data/user/htdocs/framework/
LIB_PATH
/data/user/htdocs/framework/library/
CORE_PATH
/data/user/htdocs/framework/library/think/
TRAIT_PATH
/data/user/htdocs/framework/library/traits/
ROOT_PATH
/data/user/htdocs/
EXTEND_PATH
/data/user/htdocs/extend/
VENDOR_PATH
/data/user/htdocs/vendor/
LOG_PATH
/data/user/htdocs/data/log/
CACHE_PATH
/data/user/htdocs/data/cache/
TEMP_PATH
/data/user/htdocs/data/temp/
CONF_PATH
/data/user/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
SENTCMS_VERSION
3.6.201803
SENT_ADDON_PATH
/data/user/htdocs/application/../addons/
XML 地图