[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:./template/index\viewspace.html

  1. public function fetch($template, $data = [], $config = [])
  2. {
  3. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  4. // 获取模板文件名
  5. $template = $this->parseTemplate($template);
  6. }
  7. // 模板不存在 抛出异常
  8. if (!is_file($template)) {
  9. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  10. }
  11. // 记录视图信息
  12. $this->app
  13. ->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');
  14. $this->template->fetch($template, $data, $config);
  15. }

Call Stack

  1. in Think.php line 86
  2. at Think->fetch('viewspace', [], []) in View.php line 189
  3. at View->fetch('viewspace', [], []) in Controller.php line 161
  4. at Controller->fetch('viewspace') in Index.php line 25
  5. at Index->showPage() in Index.php line 22
  6. at Index->_empty()
  7. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  8. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['viewspace']) in Module.php line 132
  9. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  10. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  11. at Middleware->think\{closure}(object(Request))
  12. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  13. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  14. at Module->exec() in Dispatch.php line 168
  15. at Dispatch->run() in App.php line 432
  16. at App->think\{closure}(object(Request), object(Closure), null)
  17. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  18. at Middleware->think\{closure}(object(Request))
  19. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  20. at Middleware->dispatch(object(Request)) in App.php line 435
  21. at App->run() in index.php line 27

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-f0a0708e-42a8-4a96-accb-6d611adb3f47
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\ZHost_n39_v2.0_m1_x86_r0_3\ZHost_n39_v2.0_m1_x86_r0_3.config
APP_POOL_ID ZHost_n39_v2.0_m1_x86_r0_3
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME WIN-MM1EH3U0ND5
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 8
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\ZKEYS\server\MySQL\mysql\5.7\bin;C:\Program Files (x86)\Microsoft SQL Server;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;D:\ZKEYS\server\PHP\php\5.2;D:\ZKEYS\server\PHP\php\5.3;D:\ZKEYS\server\PHP\php\5.4;D:\ZKEYS\server\PHP\php\5.5;D:\ZKEYS\server\PHP\php\5.6;D:\ZKEYS\server\PHP\php\7.0;D:\ZKEYS\server\PHP\php\7.1;D:\ZKEYS\server\PHP\php\7.2;D:\ZKEYS\server\PHP\php\7.3;D:\ZKEYS\server\PHP\php\7.4;D:\ZKEYS\server\PHP\php\8.0;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_ARCHITEW6432 AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 3a09
ProgramData C:\ProgramData
ProgramFiles C:\Program Files (x86)
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 WIN-MM1EH3U0ND5$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/viewspace-411.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/10.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME mijiyu.com
SCRIPT_NAME /index.php
SCRIPT_FILENAME D:\ZKEYS\www\host107563\wwwroot\index.php
REQUEST_URI /viewspace-411.html
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 53086
REMOTE_HOST 34.234.83.135
REMOTE_ADDR 34.234.83.135
QUERY_STRING
PATH_TRANSLATED D:\ZKEYS\www\host107563\wwwroot\index.php\viewspace-411.html
PATH_INFO /viewspace-411.html
LOGON_USER
LOCAL_ADDR 112.121.161.51
INSTANCE_META_PATH /LM/W3SVC/79337637
INSTANCE_NAME HOST107563
INSTANCE_ID 79337637
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT D:\ZKEYS\www\host107563\wwwroot
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH D:\ZKEYS\www\host107563\wwwroot\
APPL_MD_PATH /LM/W3SVC/79337637/ROOT
IIS_UrlRewriteModule 7,1,1993,2336
WEBSOCKET_VERSION 13
UNENCODED_URL /viewspace-411.html
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /viewspace-411.html
HTTP_USER_AGENT claudebot
HTTP_HOST mijiyu.com
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/viewspace-411.html
REQUEST_TIME_FLOAT 1711663740.9305
REQUEST_TIME 1711663740
Environment Variablesempty
ThinkPHP Constants
APP_PATH D:\ZKEYS\www\host107563\wwwroot/application/
WEB_TYPE index
BaseUrl
TepFile viewspace