[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:./template/default/index\list.htm

  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('./template/default/i...', ['current_site' => object(SiteModel), 'member' => null, 'menus' => object(Collection), ...], []) in View.php line 189
  3. at View->fetch(null, ['current_site' => object(SiteModel), 'member' => null, 'menus' => object(Collection), ...], []) in Controller.php line 161
  4. at Controller->fetch(null) in Index.php line 156
  5. at Index->list('javascript')
  6. at ReflectionMethod->invokeArgs(object(Index), ['javascript']) in Container.php line 395
  7. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => 'javascript', 'convert' => false]) in Module.php line 132
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 435
  20. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
mike_home_lang zh
Sessionempty
Server/Request Data
PHPRC C:\php71\
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_ID ASPNET_(i)_4_(8)_POOL
CommonProgramFiles C:\Program Files\Common Files
COMPUTERNAME WIN-NLRTEOW2ILZ
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
OS Windows_NT
Path C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\php5;C:\Program Files\WinRAR;C:\Windows\System32\inetsrv;C:\salt
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 45 Stepping 7, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 2d07
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;c:\Program Files\Microsoft Security Client\MpProvider\
PUBLIC C:\Users\Public
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Windows\TEMP
TMP C:\Windows\TEMP
USERDOMAIN WORKGROUP
USERNAME WIN-NLRTEOW2ILZ$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/list/javascript
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/7.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME www.chenxianglan.com
SCRIPT_NAME /index.php
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 40896
REMOTE_HOST 23.82.78.69
REMOTE_ADDR 23.82.78.69
QUERY_STRING
PATH_TRANSLATED D:\wwwroot\ch\wwwroot\index.php\list\javascript
PATH_INFO /list/javascript
LOGON_USER
LOCAL_ADDR 122.114.75.226
INSTANCE_META_PATH /LM/W3SVC/78
INSTANCE_ID 78
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
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:\wwwroot\ch\wwwroot\
APPL_MD_PATH /LM/W3SVC/78/ROOT
IIS_UrlRewriteModule 7.1.0761.0
UNENCODED_URL /list/javascript
IIS_WasUrlRewritten 1
SCRIPT_FILENAME D:\wwwroot\ch\wwwroot\index.php
REQUEST_URI /list/javascript
DOCUMENT_ROOT D:\wwwroot\ch\wwwroot
HTTP_X_ORIGINAL_URL /list/javascript
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2146.0 Safari/537.36
HTTP_HOST www.chenxianglan.com
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/list/javascript
REQUEST_TIME_FLOAT 1603142583.9541
REQUEST_TIME 1603142583
Environment Variablesempty
ThinkPHP Constantsempty