[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:template/pc/products.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('template/pc/products...', ['site_data' => ['website' => 'www.hsfsw.com', 'name' => '...', 'ico' => '/public/upload/2020-...', ...], 'menu_list' => [['id' => 181, 'menu_id' => 157, 'menu_url' => '/jshchx#', ...], ['id' => 182, 'menu_id' => 157, 'menu_url' => '/yjykf', ...], ['id' => 183, 'menu_id' => 157, 'menu_url' => '/kyhz', ...], ...], 'is_pc_m' => 'pc', ...], []) in View.php line 163
  3. at View->fetch('pc/products', ['site_data' => ['website' => 'www.hsfsw.com', 'name' => '...', 'ico' => '/public/upload/2020-...', ...], 'menu_list' => [['id' => 181, 'menu_id' => 157, 'menu_url' => '/jshchx#', ...], ['id' => 182, 'menu_id' => 157, 'menu_url' => '/yjykf', ...], ['id' => 183, 'menu_id' => 157, 'menu_url' => '/kyhz', ...], ...], 'is_pc_m' => 'pc', ...], ['__ROOT__' => '', '__URL__' => '/home/inquiry_contro...', '__STATIC__' => '/static', ...]) in View.php line 36
  4. at View->output('pc/products') in Response.php line 309
  5. at Response->getContent() in Response.php line 94
  6. at Response->send() in start.php line 19
  7. at require('/www1/wwwroot/cn.hea...') in index.php line 17

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.hsfsw.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/products/beijing_index.html
REDIRECT_STATUS
200
SERVER_NAME
cn.healthfulbio.com
SERVER_PORT
80
SERVER_ADDR
10.2.22.2
REMOTE_PORT
47206
REMOTE_ADDR
54.167.52.238
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www1/wwwroot/cn.healthfulbio.com
DOCUMENT_URI
/index.php
REQUEST_URI
/products/beijing_index.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/products/beijing_index.html
SCRIPT_FILENAME
/www1/wwwroot/cn.healthfulbio.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711632187.8048
REQUEST_TIME
1711632187
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www1/wwwroot/cn.healthfulbio.com/app/
THINK_VERSION
5.0.24
THINK_START_TIME
1711632187.8055
THINK_START_MEM
378312
EXT
.php
DS
/
THINK_PATH
/www1/wwwroot/cn.healthfulbio.com/thinkphp/
LIB_PATH
/www1/wwwroot/cn.healthfulbio.com/thinkphp/library/
CORE_PATH
/www1/wwwroot/cn.healthfulbio.com/thinkphp/library/think/
TRAIT_PATH
/www1/wwwroot/cn.healthfulbio.com/thinkphp/library/traits/
ROOT_PATH
/www1/wwwroot/cn.healthfulbio.com/
EXTEND_PATH
/www1/wwwroot/cn.healthfulbio.com/extend/
VENDOR_PATH
/www1/wwwroot/cn.healthfulbio.com/vendor/
RUNTIME_PATH
/www1/wwwroot/cn.healthfulbio.com/runtime/
LOG_PATH
/www1/wwwroot/cn.healthfulbio.com/runtime/log/
CACHE_PATH
/www1/wwwroot/cn.healthfulbio.com/runtime/cache/
TEMP_PATH
/www1/wwwroot/cn.healthfulbio.com/runtime/temp/
CONF_PATH
/www1/wwwroot/cn.healthfulbio.com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false