[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/111/1111/fangyuan/public/themes/fangyuan/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('/www/wwwroot/111/111...', ['site_info' => ['site_name' => '...', 'site_seo_title' => '...', 'site_seo_keywords' => '...', ...], '__show_bridge' => false, 'category' => null, ...], []) in View.php line 163
  3. at View->fetch('/www/wwwroot/111/111...', [], ['__USER_STYLE__' => '/themes/fangyuan/use...', '__STYLE__' => '/themes/fangyuan/por...'], []) in Controller.php line 120
  4. at Controller->fetch('/www/wwwroot/111/111...', [], ['__USER_STYLE__' => '/themes/fangyuan/use...', '__STYLE__' => '/themes/fangyuan/por...'], []) in HomeBaseController.php line 113
  5. at HomeBaseController->fetch('/list', [], ['__USER_STYLE__' => '/themes/fangyuan/use...', '__STYLE__' => '/themes/fangyuan/por...'], []) in CommonController.php line 37
  6. at CommonController->fetch('/list') in ListController.php line 53
  7. at ListController->norml('8') in ListController.php line 36
  8. at ListController->index()
  9. at ReflectionMethod->invokeArgs(object(ListController), []) in App.php line 343
  10. at App::invokeMethod([object(ListController), 'index'], []) in App.php line 611
  11. at App::module(['portal', 'list', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  12. at App::exec(['type' => 'module', 'module' => ['portal', 'list', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  13. at App::run() in index.php line 48

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
test.cqfyzx.com
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at test.cqfyzx.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
test.cqfyzx.com
SERVER_ADDR
119.84.73.132
SERVER_PORT
80
REMOTE_ADDR
3.230.128.106
DOCUMENT_ROOT
/www/wwwroot/111/1111/fangyuan/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/111/1111/fangyuan/public
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/111/1111/fangyuan/public/index.php
REMOTE_PORT
40516
REDIRECT_URL
/portal/list/index/id/8.html
REDIRECT_QUERY_STRING
s=portal/list/index/id/8.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=portal/list/index/id/8.html
REQUEST_URI
/portal/list/index/id/8.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710835291.0012
REQUEST_TIME
1710835291
PATH_INFO
portal/list/index/id/8.html
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
false
CMF_ROOT
/www/wwwroot/111/1111/fangyuan/public/../
APP_PATH
/www/wwwroot/111/1111/fangyuan/public/../app/
CMF_PATH
/www/wwwroot/111/1111/fangyuan/public/../simplewind/cmf/
WEB_ROOT
/www/wwwroot/111/1111/fangyuan/public/
PLUGINS_PATH
/www/wwwroot/111/1111/fangyuan/public/plugins/
EXTEND_PATH
/www/wwwroot/111/1111/fangyuan/public/../simplewind/extend/
VENDOR_PATH
/www/wwwroot/111/1111/fangyuan/public/../simplewind/vendor/
RUNTIME_PATH
/www/wwwroot/111/1111/fangyuan/public/../data/runtime/
THINKCMF_VERSION
5.0.190312
THINK_VERSION
5.0.24
THINK_START_TIME
1710835291.0017
THINK_START_MEM
267528
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/111/1111/fangyuan/simplewind/thinkphp/
LIB_PATH
/www/wwwroot/111/1111/fangyuan/simplewind/thinkphp/library/
CORE_PATH
/www/wwwroot/111/1111/fangyuan/simplewind/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/111/1111/fangyuan/simplewind/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/111/1111/fangyuan/
LOG_PATH
/www/wwwroot/111/1111/fangyuan/public/../data/runtime/log/
CACHE_PATH
/www/wwwroot/111/1111/fangyuan/public/../data/runtime/cache/
TEMP_PATH
/www/wwwroot/111/1111/fangyuan/public/../data/runtime/temp/
CONF_PATH
/www/wwwroot/111/1111/fangyuan/public/../app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/111/1111/fangyuan/simplewind/vendor/ezyang/htmlpurifier/library