[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:themes/default/portal/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 82
  2. at Think->fetch('themes/default/porta...', ['site_info' => ['site_name' => '...', 'site_seo_title' => '', 'site_seo_keywords' => '...', ...], 'year' => '2024', 'SO' => 'is_top DESC,list_ord...', ...], []) in View.php line 163
  3. at View->fetch('themes/default/porta...', ['site_info' => ['site_name' => '...', 'site_seo_title' => '', 'site_seo_keywords' => '...', ...], 'year' => '2024', 'SO' => 'is_top DESC,list_ord...', ...], ['__ROOT__' => '', '__URL__' => '/portal/list', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('themes/default/porta...', [], [], []) in HomeBaseController.php line 94
  5. at HomeBaseController->fetch('themes/default/porta...') in ListController.php line 80
  6. at ListController->index()
  7. at ReflectionMethod->invokeArgs(object(ListController), []) in App.php line 343
  8. at App::invokeMethod([object(ListController), 'index'], []) in App.php line 611
  9. at App::module(['portal', 'list', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['portal', 'list', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in index.php line 136

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

TEMP
/tmp
TMPDIR
/tmp
TMP
/tmp
PATH
/usr/local/bin:/usr/bin:/bin
USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.shuhuaedu.com
REDIRECT_STATUS
200
SERVER_NAME
www.shuhuaedu.com
SERVER_PORT
443
SERVER_ADDR
172.18.248.251
REMOTE_PORT
50244
REMOTE_ADDR
3.85.85.246
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/mnt/wwwroot/shuhuaedu_com
DOCUMENT_URI
/index.php
REQUEST_URI
/portal/list/index/id/chengrenzuopin
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/portal/list/index/id/chengrenzuopin
SCRIPT_FILENAME
/mnt/wwwroot/shuhuaedu_com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711703376.7083
REQUEST_TIME
1711703376
PATH_INFO
/portal/list/index/id/chengrenzuopin
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/mnt/wwwroot/shuhuaedu_com/
APP_PATH
/mnt/wwwroot/shuhuaedu_com/app/
UPLOAD_PATH
/mnt/wwwroot/shuhuaedu_com/upload/
CMF_PATH
/mnt/wwwroot/shuhuaedu_com/simplewind/cmf/
PLUGINS_PATH
/mnt/wwwroot/shuhuaedu_com/plugins/
EXTEND_PATH
/mnt/wwwroot/shuhuaedu_com/simplewind/extend/
VENDOR_PATH
/mnt/wwwroot/shuhuaedu_com/simplewind/vendor/
RUNTIME_PATH
/mnt/wwwroot/shuhuaedu_com/data/runtime/
THINKCMF_VERSION
5.0.170927
SO
is_top DESC,list_order DESC,published_time DESC,post_id DESC
GSO
is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC
TMPLSO
order:is_top DESC,list_order DESC,published_time DESC,post_id DESC;
TMPLGSO
order:is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC;
WEB_ROOT
/mnt/wwwroot/shuhuaedu_com/
THINK_VERSION
5.0.24
THINK_START_TIME
1711703376.7085
THINK_START_MEM
396808
EXT
.php
DS
/
THINK_PATH
/mnt/wwwroot/shuhuaedu_com/simplewind/thinkphp/
LIB_PATH
/mnt/wwwroot/shuhuaedu_com/simplewind/thinkphp/library/
CORE_PATH
/mnt/wwwroot/shuhuaedu_com/simplewind/thinkphp/library/think/
TRAIT_PATH
/mnt/wwwroot/shuhuaedu_com/simplewind/thinkphp/library/traits/
ROOT_PATH
/mnt/wwwroot/shuhuaedu_com/
LOG_PATH
/mnt/wwwroot/shuhuaedu_com/data/runtime/log/
CACHE_PATH
/mnt/wwwroot/shuhuaedu_com/data/runtime/cache/
TEMP_PATH
/mnt/wwwroot/shuhuaedu_com/data/runtime/temp/
CONF_PATH
/mnt/wwwroot/shuhuaedu_com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/mnt/wwwroot/shuhuaedu_com/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1
IS_WECHAT_FALSE
1
IS_WECHAT_TRUE
2