[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:application/index/view/singlepage/body_article_10006.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('application/index/vi...', ['site_arr' => ['id' => 1, 'name' => '...', 'switch' => '否', ...], 'nav_arr' => [['icon' => 'newspaper-o', 'name' => '行业新闻', 'column_model' => 'article', ...], ['icon' => 'puzzle-piece', 'name' => '信息化项目', 'column_model' => 'article', ...], ['icon' => 'server', 'name' => '微课程', 'column_model' => 'singlepage', ...], ...], 'nav_tree_arr' => [['icon' => 'newspaper-o', 'name' => '行业新闻', 'column_model' => 'article', ...], ['icon' => 'puzzle-piece', 'name' => '信息化项目', 'column_model' => 'article', ...], ['icon' => 'external-link-square', 'name' => '国际交流项目', 'column_model' => 'article', ...], ...], ...], []) in View.php line 160
  3. at View->fetch('application/index/vi...', [], []) in View.php line 36
  4. at View->output('application/index/vi...') in Response.php line 311
  5. at Response->getContent() in Response.php line 96
  6. at Response->send() in start.php line 18
  7. at require('D:\wwwroot\www.sxbwj...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "site": { "id": 1, "name": "\u3010\u5b98\u7f51\u3011\u9655\u897f\u535a\u4e3a\u6559\u80b2\u79d1\u6280\u6709\u9650\u516c\u53f8", "switch": "\u5426", "development_mode": "\u662f", "domain": "http:\/\/www.sxbwjykj.com\/", "logo": "public\/uploads\/logo.png", "statistical_code": "", "telphone": "029-88339538", "fax": "029-88339539", "address": "\u9655\u897f\u7701\u897f\u5b89\u5e02\u79d1\u6280\u897f\u8def\u7eff\u5730\u535a\u6d77\u5927\u53a6", "record": "\u9655ICP\u5907154775411\u53f7", "each_page_number": "10", "seo_meta": "", "seo_title": "\u4e13\u4e1a\u8f6f\u786c\u4ef6\u670d\u52a1\u4f9b\u5e94\u5546", "seo_keyword": "\u9655\u897f\u535a\u4e3a\u6559\u80b2\u79d1\u6280\u6709\u9650\u516c\u53f8\u5b98\u7f51", "seo_description": "\u9655\u897f\u535a\u4e3a\u6559\u80b2\u79d1\u6280\u6709\u9650\u516c\u53f8" } }

Server/Request Data

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;;D:\BtSoft\panel\script;D:\BtSoft\php\73;C:\ProgramData\ComposerSetup\bin;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
_FCGI_SHUTDOWN_EVENT_
3756
HTTP_CONNECTION
close
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php?s=/html/singlepage/38.html
QUERY_STRING
s=/html/singlepage/38.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
20001
SCRIPT_FILENAME
D:/wwwroot/www.sxbwjykj.com/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
D:/wwwroot/www.sxbwjykj.com
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
D:/wwwroot/www.sxbwjykj.com
REMOTE_ADDR
154.92.197.81
SERVER_PORT
80
SERVER_ADDR
172.16.9.230
SERVER_NAME
www.sxbwjykj.com
SERVER_SOFTWARE
Apache/2.4.39 (Win32) OpenSSL/1.0.2s mod_fcgid/2.3.9a
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.sxbwjykj.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1601515515.8656
REQUEST_TIME
1601515515
PATH_INFO
/html/singlepage/38.html
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
false
APP_PATH
D:\wwwroot\www.sxbwjykj.com/application/
BIND_MODULE
index
DOMAIN
http://www.sxbwjykj.com
RELATIVE_TPL_PATH
template/default
THINK_VERSION
5.0.12
THINK_START_TIME
1601515515.8666
THINK_START_MEM
233240
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\www.sxbwjykj.com\thinkphp\
LIB_PATH
D:\wwwroot\www.sxbwjykj.com\thinkphp\library\
CORE_PATH
D:\wwwroot\www.sxbwjykj.com\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\www.sxbwjykj.com\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\www.sxbwjykj.com\
EXTEND_PATH
D:\wwwroot\www.sxbwjykj.com\extend\
VENDOR_PATH
D:\wwwroot\www.sxbwjykj.com\vendor\
RUNTIME_PATH
D:\wwwroot\www.sxbwjykj.com\runtime\
LOG_PATH
D:\wwwroot\www.sxbwjykj.com\runtime\log\
CACHE_PATH
D:\wwwroot\www.sxbwjykj.com\runtime\cache\
TEMP_PATH
D:\wwwroot\www.sxbwjykj.com\runtime\temp\
CONF_PATH
D:\wwwroot\www.sxbwjykj.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
TPL_PATH
D:\wwwroot\www.sxbwjykj.com\template/default/