[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:D:\wwwroot\hyqt.s2.hbgskj.cn\addons\cms\view\default\show_product.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('/show_product', ['config' => ['theme' => 'default', 'default_archives_img' => '/assets/addons/cms/i...', 'default_channel_img' => '/images/about-topbg....', ...], 'user' => null, 'site' => ['name' => '...', 'web_title' => '...', 'cdnurl' => '', ...], ...], []) in View.php line 163
  3. at View->fetch('/show_product') in Archives.php line 83
  4. at Archives->index()
  5. at call_user_func_array([object(Archives), 'index'], []) in Route.php line 76
  6. at Route->execute('cms', 'archives', 'index')
  7. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'archives', 'index']) in App.php line 343
  8. at App::invokeMethod(['\think\addons\Route', 'execute'], ['diyname' => '524', 'addon' => 'cms', 'controller' => 'archives', ...]) in App.php line 470
  9. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'archives', 'action' => 'index']], ['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('D:\wwwroot\hyqt.s2.h...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
5nk7ij5m9foq9m4quqnldbhc63
Session
empty

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
BT_PANEL
D:\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
D:\BtSoft
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
iZ24fom6ftbegjZ
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
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\WindowsPowerShell\v1.0\;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PHP_FCGI_MAX_REQUESTS
200
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
iZ24fom6ftbegjZ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
windows_tracing_flags
3
windows_tracing_logfile
C:\BVTBin\Tests\installpackage\csilogfile.log
HTTP_COOKIE
PHPSESSID=5nk7ij5m9foq9m4quqnldbhc63
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.hbhy-gas.com
HTTP_USER_AGENT
Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.6668.89 Mobile Safari/537.36 (compatible; GoogleOther)
REDIRECT_STATUS
200
SERVER_NAME
hyqt.s2.hbgskj.cn
SERVER_PORT
443
SERVER_ADDR
172.19.42.235
REMOTE_PORT
37746
REMOTE_ADDR
107.158.232.98
SERVER_SOFTWARE
nginx/1.22.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
D:/wwwroot/hyqt.s2.hbgskj.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
//new/524.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/new/524.html
PATH_INFO
/new/524.html
SCRIPT_FILENAME
D:/wwwroot/hyqt.s2.hbgskj.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1728175202.4573
REQUEST_TIME
1728175202
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1728175202.4583
THINK_START_MEM
263888
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\thinkphp\
LIB_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\thinkphp\library\
CORE_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\
EXTEND_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\extend\
VENDOR_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\vendor\
RUNTIME_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\runtime\
LOG_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\runtime\log\
CACHE_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\runtime\cache\
TEMP_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\runtime\temp\
CONF_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
PHP_INT_MIN
-2147483648
ADDON_PATH
D:\wwwroot\hyqt.s2.hbgskj.cn\addons\