[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:template/default\image_list.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('default\image_list', ['media' => object(Site), 'keywordslist' => ['南浔古镇', '太湖', '京杭大运河', ...], 'navlist' => [['id' => 1, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 17, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 49, 'nav_id' => 1, 'parent_id' => 0, ...], ...], ...], []) in View.php line 159
  3. at View->fetch('default\image_list', [], [], []) in Controller.php line 111
  4. at Controller->fetch('default\image_list', [], [], []) in Site.php line 55
  5. at Site->siteFetch('image_list') in Image.php line 39
  6. at Image->index()
  7. at ReflectionMethod->invokeArgs(object(Image), []) in App.php line 196
  8. at App::invokeMethod([object(Image), 'index'], []) in App.php line 408
  9. at App::module(['home', 'image', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 295
  10. at App::exec(['type' => 'module', 'module' => ['home', 'image', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  11. at App::run() in start.php line 18
  12. at require('E:\webs\yancheng\thi...') in index.php line 26

Environment Variables

GET Data

/home/image/index_html
POST Data
empty
Files
empty

Cookies

think_var
zh-cn
Session
empty

Server/Request Data

PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\Administrator\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
PHPRC
D:/phpstudy_pro/Extensions/php/php5.6.9nts
_FCGI_SHUTDOWN_EVENT_
9188
HTTP_CONNECTION
close
SCRIPT_NAME
/index.php
REQUEST_URI
/home/image/index.html
QUERY_STRING
/home/image/index.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/home/image/index.html
REDIRECT_URL
/home/image/index.html
REMOTE_PORT
57634
SCRIPT_FILENAME
E:/webs/yancheng/public/index.php
SERVER_ADMIN
admin@example.com
CONTEXT_DOCUMENT_ROOT
E:/webs/yancheng/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
E:/webs/yancheng/public
REMOTE_ADDR
44.192.247.185
SERVER_PORT
80
SERVER_ADDR
61.136.101.125
SERVER_NAME
yctj.librarydata.cn
SERVER_SOFTWARE
Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a mod_log_rotate/1.02
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_HOST
yctj.librarydata.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711626450.5684
REQUEST_TIME
1711626450
PATH_INFO
/home/image/index.html
Environment Variables
empty

ThinkPHP Constants

__ROOT__
THEME_NAME
template
NOW_TIME
2024-03-28 19:47
APP_PATH
E:\webs\yancheng\public/../application/
ROOT_PATH
E:\webs\yancheng\public/../
SITE_URL
http://yctj.librarydata.cn
THINK_VERSION
5.0.10
THINK_START_TIME
1711626450.5705
THINK_START_MEM
260560
EXT
.php
DS
\
THINK_PATH
E:\webs\yancheng\thinkphp\
LIB_PATH
E:\webs\yancheng\thinkphp\library\
CORE_PATH
E:\webs\yancheng\thinkphp\library\think\
TRAIT_PATH
E:\webs\yancheng\thinkphp\library\traits\
EXTEND_PATH
E:\webs\yancheng\public/../extend\
VENDOR_PATH
E:\webs\yancheng\public/../vendor\
RUNTIME_PATH
E:\webs\yancheng\public/../runtime\
LOG_PATH
E:\webs\yancheng\public/../runtime\log\
CACHE_PATH
E:\webs\yancheng\public/../runtime\cache\
TEMP_PATH
E:\webs\yancheng\public/../runtime\temp\
CONF_PATH
E:\webs\yancheng\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
url
/home/image/index.html
ref
Resource
ent
claudebot
site
http://x.lushan.la/?
sites
http://b.lushan.la/?
road
road=yctj.librarydata.cn/home/image/index.html
waps
@Android|Browser|Mobile|Wap|iOs|iPad|iPhone|iPod@i
regs
@Baidu|Sogou|Yisou|Sm.cn|Bytespider|Toutiao@i
area
false
areas
false
SESSION_ID
lg15alotu9i6faqu103dst0bj6
MOBILE
false
TPL_NAME
default