[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:themes/pc_cn/portal/project/index.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/pc_cn/portal/...', ['site_info' => ['site_name' => '...', 'site_company_name' => '...', 'site_address' => '...', ...], 'user_info' => [], 'year' => '2022', ...], []) in View.php line 163
  3. at View->fetch('themes/pc_cn/portal/...', ['site_info' => ['site_name' => '...', 'site_company_name' => '...', 'site_address' => '...', ...], 'user_info' => [], 'year' => '2022', ...], ['__ROOT__' => '', '__URL__' => '/portal/list', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('themes/pc_cn/portal/...', [], [], []) in HomeBaseController.php line 99
  5. at HomeBaseController->fetch('themes/pc_cn/portal/...') in ListController.php line 213
  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 621
  9. at App::module(['portal', 'List', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['portal', 'List', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in index.php line 58

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

cat_id
3

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/xlsjjfa
QUERY_STRING
s=xlsjjfa
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=xlsjjfa
REDIRECT_URL
/xlsjjfa
REMOTE_PORT
39910
SCRIPT_FILENAME
/www/wwwroot/www.hyxt.com/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.hyxt.com
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/www.hyxt.com
REMOTE_ADDR
101.89.34.241
SERVER_PORT
80
SERVER_ADDR
10.0.0.111
SERVER_NAME
www.hyxt.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.hyxt.com Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_X_DAA_TUNNEL
hop_count=2
HTTP_X_FORWARDED_PROTO
http
HTTP_X_LEGO_VIA
200488
HTTP_X_FORWARDED_FOR
160.121.10.48
HTTP_X_TENCENT_UA
Qcloud
HTTP_809B8820040E7727977C7C8084ABF873
tag
HTTP_X_NWS_LOG_UUID
1219450777509616555
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_ACCEPT_ENCODING
gzip
HTTP_HOST
www.hyxt.com
proxy-nokeepalive
1
SCRIPT_URI
http://www.hyxt.com/xlsjjfa
SCRIPT_URL
/xlsjjfa
REDIRECT_STATUS
200
REDIRECT_SCRIPT_URI
http://www.hyxt.com/xlsjjfa
REDIRECT_SCRIPT_URL
/xlsjjfa
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1642393525.9305
REQUEST_TIME
1642393525
PATH_INFO
xlsjjfa
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/www/wwwroot/www.hyxt.com/
APP_PATH
/www/wwwroot/www.hyxt.com/app/
UPLOAD_PATH
/www/wwwroot/www.hyxt.com/upload/
CMF_PATH
/www/wwwroot/www.hyxt.com/simplewind/cmf/
PLUGINS_PATH
/www/wwwroot/www.hyxt.com/plugins/
EXTEND_PATH
/www/wwwroot/www.hyxt.com/simplewind/extend/
VENDOR_PATH
/www/wwwroot/www.hyxt.com/simplewind/vendor/
RUNTIME_PATH
/www/wwwroot/www.hyxt.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
/www/wwwroot/www.hyxt.com/
THINK_VERSION
5.0.24
THINK_START_TIME
1642393525.9309
THINK_START_MEM
408120
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.hyxt.com/simplewind/thinkphp/
LIB_PATH
/www/wwwroot/www.hyxt.com/simplewind/thinkphp/library/
CORE_PATH
/www/wwwroot/www.hyxt.com/simplewind/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.hyxt.com/simplewind/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.hyxt.com/
LOG_PATH
/www/wwwroot/www.hyxt.com/data/runtime/log/
CACHE_PATH
/www/wwwroot/www.hyxt.com/data/runtime/cache/
TEMP_PATH
/www/wwwroot/www.hyxt.com/data/runtime/temp/
CONF_PATH
/www/wwwroot/www.hyxt.com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/www.hyxt.com/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1
IS_WECHAT_FALSE
1
IS_WECHAT_TRUE
2
DOMDOCUMENT
DOMDocument
DOMELEMENT
DOMElement
DOMNODELIST
DOMNodeList
DOMNODE
DOMNode