[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:E:\wwwroot\www.hms.com.cn\application\index\view\lists\.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('lists/', ['classuri' => 'index/index', 'model' => object(Data), 'advModel' => object(Adv), ...], []) in View.php line 189
  3. at View->fetch('lists/', [], []) in Controller.php line 136
  4. at Controller->fetch('lists/') in Index.php line 464
  5. at Index->lists()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 373
  7. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), []) in Module.php line 129
  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 188
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 133
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 134
  13. at Module->exec() in Dispatch.php line 167
  14. at Dispatch->run() in App.php line 433
  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 188
  17. at Middleware->think\{closure}(object(Request)) in Auth.php line 51
  18. at Auth->handle(object(Request), object(Closure), null)
  19. at call_user_func_array([object(Auth), 'handle'], [object(Request), object(Closure), null]) in Middleware.php line 188
  20. at Middleware->think\{closure}(object(Request))
  21. at call_user_func(object(Closure), object(Request)) in Middleware.php line 133
  22. at Middleware->dispatch(object(Request)) in App.php line 436
  23. at App->run() in index.php line 27

Environment Variables

GET Data
cid 10
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
BT_PANEL E:\BtSoft\panel
BT_PYTHON C:\Program Files\python
BT_SETUP E:\BtSoft
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME WINDOWS-FQEUCGQ
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 8
OS Windows_NT
Path C:\Program Files\HP\NCU;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script;;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\Program Files\python;C:\Program Files\python\Scripts;;E:\BtSoft\panel\script;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 4f01
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath 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 WINDOWS-FQEUCGQ$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
windows_tracing_flags 3
windows_tracing_logfile C:\BVTBin\Tests\installpackage\csilogfile.log
HTTP_HOST www.hms.com.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
SERVER_NAME www.hms.com.cn
SERVER_PORT 80
SERVER_ADDR 43.228.77.92
REMOTE_PORT 52628
REMOTE_ADDR 18.213.110.162
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT E:/wwwroot/www.hms.com.cn
DOCUMENT_URI /index.php
REQUEST_URI /index/index/lists.html?cid=10
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/index/lists.html&cid=10
PATH_INFO
SCRIPT_NAME /index.php
SCRIPT_FILENAME E:/wwwroot/www.hms.com.cn/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711675118.6164
REQUEST_TIME 1711675118
Environment Variablesempty
ThinkPHP Constants
WEB_DOMAIN http://www.hms.com.cn
QINIU_FUNCTIONS_VERSION 7.2.5