[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:C:\wwwroot\www.coolermaster.com.cn\public/../apps/home\view\index\login.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('C:\wwwroot\www.coole...', ['url' => '/login/', 'site_language' => 'zh', 'menu_header' => [['id' => 1, 'pid' => 0, 'title' => '首页', ...], ['id' => 2, 'pid' => 0, 'title' => '产品', ...], ['id' => 3, 'pid' => 0, 'title' => '支持', ...], ...], ...], []) in View.php line 159
  3. at View->fetch('index/login', ['url' => '/login/', 'site_language' => 'zh', 'menu_header' => [['id' => 1, 'pid' => 0, 'title' => '首页', ...], ['id' => 2, 'pid' => 0, 'title' => '产品', ...], ['id' => 3, 'pid' => 0, 'title' => '支持', ...], ...], ...], []) in View.php line 36
  4. at View->output('index/login') in Response.php line 305
  5. at Response->getContent() in Response.php line 94
  6. at Response->send() in start.php line 17
  7. at require('C:\wwwroot\www.coole...') in index.php line 18

Environment Variables

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

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
BT_PANEL
C:\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
C:\BtSoft
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
CoolerMaster001
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
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\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PHP_FCGI_MAX_REQUESTS
3000
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5507
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
UNRAR_LIB_PATH
C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN
WORKGROUP
USERNAME
CoolerMaster001$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
HTTP_HOST
coolermaster.com.cn
HTTP_REFERER
http://coolermaster.com.cn/login/
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
SERVER_NAME
www.coolermaster.com.cn
SERVER_PORT
443
SERVER_ADDR
172.19.12.76
REMOTE_PORT
45334
REMOTE_ADDR
52.205.218.160
SERVER_SOFTWARE
nginx/1.21.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
c:/wwwroot/www.coolermaster.com.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/login/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/login/
PATH_INFO
/login/
SCRIPT_FILENAME
c:/wwwroot/www.coolermaster.com.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710844527.0609
REQUEST_TIME
1710844527
Environment Variables
empty

ThinkPHP Constants

APP_PATH
C:\wwwroot\www.coolermaster.com.cn\public/../apps/
THINK_VERSION
5.0.7
THINK_START_TIME
1710844527.0629
THINK_START_MEM
367424
EXT
.php
DS
\
THINK_PATH
C:\wwwroot\www.coolermaster.com.cn\thinkphp\
LIB_PATH
C:\wwwroot\www.coolermaster.com.cn\thinkphp\library\
CORE_PATH
C:\wwwroot\www.coolermaster.com.cn\thinkphp\library\think\
TRAIT_PATH
C:\wwwroot\www.coolermaster.com.cn\thinkphp\library\traits\
ROOT_PATH
C:\wwwroot\www.coolermaster.com.cn\
EXTEND_PATH
C:\wwwroot\www.coolermaster.com.cn\extend\
VENDOR_PATH
C:\wwwroot\www.coolermaster.com.cn\vendor\
RUNTIME_PATH
C:\wwwroot\www.coolermaster.com.cn\runtime\
LOG_PATH
C:\wwwroot\www.coolermaster.com.cn\runtime\log\
CACHE_PATH
C:\wwwroot\www.coolermaster.com.cn\runtime\cache\
TEMP_PATH
C:\wwwroot\www.coolermaster.com.cn\runtime\temp\
CONF_PATH
C:\wwwroot\www.coolermaster.com.cn\public/../apps/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
QINIU_FUNCTIONS_VERSION
7.1.3