[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:themes/simpleboot3/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/simpleboot3/p...', ['category' => null, 'banner' => ['bl_id' => 52, 'bl_location' => '1', 'bl_img' => '/upload/admin/202103...', ...], 'name' => '现货', ...], []) in View.php line 163
  3. at View->fetch('themes/simpleboot3/p...', ['category' => null, 'banner' => ['bl_id' => 52, 'bl_location' => '1', 'bl_img' => '/upload/admin/202103...', ...], 'name' => '现货', ...], ['__ROOT__' => '', '__URL__' => '/portal/list', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('themes/simpleboot3/p...', [], [], []) in HomeBaseController.php line 141
  5. at HomeBaseController->fetch('themes/simpleboot3/p...') in ListController.php line 29
  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 606
  9. at App::module(['portal', 'List', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...], 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' => true, ...]) in App.php line 139
  11. at App::run() in index.php line 40

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
8vu7bpn8jjik1ij5gm4h6pct28
Session
empty

Server/Request Data

USER
nginx
HOME
/home/nginx
PATH_TRANSLATED
/data/www/jingke/public//about/organization.html
ORIG_SCRIPT_FILENAME
/data/www/jingke/public/index.php//about/organization.html
HTTP_COOKIE
PHPSESSID=8vu7bpn8jjik1ij5gm4h6pct28
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.jingkebio.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
REDIRECT_STATUS
200
SERVER_NAME
jingkebio.com
SERVER_PORT
80
SERVER_ADDR
172.16.11.127
REMOTE_PORT
59272
REMOTE_ADDR
107.158.144.102
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data/www/jingke/public
DOCUMENT_URI
/index.php//about/organization.html
REQUEST_URI
/about/organization.html
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_NAME
/index.php//about/organization.html
SCRIPT_FILENAME
/data/www/jingke/public/index.php
PATH_INFO
//about/organization.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php//about/organization.html//about/organization.html
REQUEST_TIME_FLOAT
1663243692.7386
REQUEST_TIME
1663243692
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/data/www/jingke/public/../
APP_PATH
/data/www/jingke/public/../app/
CMF_PATH
/data/www/jingke/public/../simplewind/cmf/
PLUGINS_PATH
/data/www/jingke/public/plugins/
EXTEND_PATH
/data/www/jingke/public/../simplewind/extend/
VENDOR_PATH
/data/www/jingke/public/../simplewind/vendor/
RUNTIME_PATH
/data/www/jingke/public/../data/runtime/
THINKCMF_VERSION
5.0.180901
THINK_VERSION
5.0.20
THINK_START_TIME
1663243692.7388
THINK_START_MEM
368352
EXT
.php
DS
/
THINK_PATH
/data/www/jingke/simplewind/thinkphp/
LIB_PATH
/data/www/jingke/simplewind/thinkphp/library/
CORE_PATH
/data/www/jingke/simplewind/thinkphp/library/think/
TRAIT_PATH
/data/www/jingke/simplewind/thinkphp/library/traits/
ROOT_PATH
/data/www/jingke/
LOG_PATH
/data/www/jingke/public/../data/runtime/log/
CACHE_PATH
/data/www/jingke/public/../data/runtime/cache/
TEMP_PATH
/data/www/jingke/public/../data/runtime/temp/
CONF_PATH
/data/www/jingke/public/../app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/data/www/jingke/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.5