[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:C:\wwwroot\fangshi_qzhav5\web\/Template/home/lists\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('C:\wwwroot\fangshi_q...', ['site' => ['id' => 1, 'site_name' => 'zh', 'title' => '方石科技', ...], 'id' => '11', 'ci' => null], []) in View.php line 163
  3. at View->fetch(null, ['site' => ['id' => 1, 'site_name' => 'zh', 'title' => '方石科技', ...], 'id' => '11', 'ci' => null], ['__ROOT__' => '', '__URL__' => '/index/lists', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch(null) in Lists.php line 40
  5. at Lists->index()
  6. at ReflectionMethod->invokeArgs(object(Lists), []) in App.php line 343
  7. at App::invokeMethod([object(Lists), 'index'], []) in App.php line 611
  8. at App::module(['index', 'Lists', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'Lists', 'index'], 'convert' => false], ['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('C:\wwwroot\fangshi_q...') in index.php line 27

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "lang": 1 }

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-83a65bc0-4fe6-4f32-b1e9-aace49fa46b5
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\fangshi\fangshi.config
APP_POOL_ID
fangshi
ClassPath
.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
iZn2drcnxse72yZ
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
2
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;%CATALINA_HOME%\bin;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 106 Stepping 6, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
6a06
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
iZn2drcnxse72yZ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/list/11.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
1
SERVER_PORT
443
SERVER_NAME
www.fangshitech.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
C:\wwwroot\fangshi_qzhav5\web\index.php
REQUEST_URI
/list/11.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
33266
REMOTE_HOST
54.208.238.160
REMOTE_ADDR
54.208.238.160
QUERY_STRING
PATH_TRANSLATED
C:\wwwroot\fangshi_qzhav5\web\index.php\list\11.html
PATH_INFO
/list/11.html
LOGON_USER
LOCAL_ADDR
172.18.83.186
INSTANCE_META_PATH
/LM/W3SVC/6001
INSTANCE_NAME
FANGSHI
INSTANCE_ID
6001
HTTPS_SERVER_SUBJECT
CN=www.fangshitech.com
HTTPS_SERVER_ISSUER
C=US, O=Let's Encrypt, CN=R3
HTTPS_SECRETKEYSIZE
3072
HTTPS_KEYSIZE
256
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
C:\wwwroot\fangshi_qzhav5\web
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
C:\wwwroot\fangshi_qzhav5\web\
APPL_MD_PATH
/LM/W3SVC/6001/ROOT
IIS_UrlRewriteModule
7.1.0871.0
UNENCODED_URL
/list/11.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/list/11.html
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.fangshitech.com
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
HTTP_CONNECTION
close
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/list/11.html
REQUEST_TIME_FLOAT
1711647199.2477
REQUEST_TIME
1711647199
Environment Variables
empty

ThinkPHP Constants

APP_PATH
C:\wwwroot\fangshi_qzhav5\web/application/
WXPAY_PATH
C:\wwwroot\fangshi_qzhav5\web/vendor
THINK_VERSION
5.0.24
THINK_START_TIME
1711647199.2482
THINK_START_MEM
367552
EXT
.php
DS
\
THINK_PATH
C:\wwwroot\fangshi_qzhav5\web\thinkphp\
LIB_PATH
C:\wwwroot\fangshi_qzhav5\web\thinkphp\library\
CORE_PATH
C:\wwwroot\fangshi_qzhav5\web\thinkphp\library\think\
TRAIT_PATH
C:\wwwroot\fangshi_qzhav5\web\thinkphp\library\traits\
ROOT_PATH
C:\wwwroot\fangshi_qzhav5\web\
EXTEND_PATH
C:\wwwroot\fangshi_qzhav5\web\extend\
VENDOR_PATH
C:\wwwroot\fangshi_qzhav5\web\vendor\
RUNTIME_PATH
C:\wwwroot\fangshi_qzhav5\web\runtime\
LOG_PATH
C:\wwwroot\fangshi_qzhav5\web\runtime\log\
CACHE_PATH
C:\wwwroot\fangshi_qzhav5\web\runtime\cache\
TEMP_PATH
C:\wwwroot\fangshi_qzhav5\web\runtime\temp\
CONF_PATH
C:\wwwroot\fangshi_qzhav5\web/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true