[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/thorkitchen.cn/public/../application/cn/view/default/channel_product.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/thorkit...', ['user' => null, 'site' => ['name' => '...', 'system_name' => '...', 'cdnurl' => '', ...], 'config' => ['system_user_id' => '1', 'sitename' => '我的CMS网站', 'sitelogo' => '/assets/addons/cms/i...', ...], ...], []) in View.php line 163
  3. at View->fetch('/channel_product') in Channel.php line 187
  4. at Channel->index() in Base.php line 91
  5. at Base->jump()
  6. at ReflectionMethod->invokeArgs(object(Base), []) in App.php line 343
  7. at App::invokeMethod([object(Base), 'jump'], []) in App.php line 611
  8. at App::module(['cn', 'Base', 'jump'], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['cn', 'Base', 'jump'], 'convert' => false], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/thorkit...') in index.php line 24

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
PHP_APP_DEBUG
1
PHP_APP_TRACE
PHP_DATABASE_HOSTNAME
127.0.0.1
PHP_DATABASE_DATABASE
thorkitchen_cn
PHP_DATABASE_USERNAME
thorkitchen_cn
PHP_DATABASE_PASSWORD
FesWA582KJ8dSs2k26
PHP_DATABASE_HOSTPORT
3306
PHP_DATABASE_PREFIX
uweb_
PHP_REDIS_#HOST
127.0.0.1
PHP_REDIS_#PORT
6379
PHP_REDIS_#PASSWORD
***
PHP_REDIS_#SELECT
0
PHP_REDIS_#TIMEOUT
0
PHP_REDIS_#PERSISTENT
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
PATH_INFO
/dingzhizhongxin/buxiugangyigui
HTTP_HOST
www.thorkitchen.cn
REDIRECT_STATUS
200
SERVER_NAME
www.thorkitchen.cn
SERVER_PORT
443
SERVER_ADDR
172.16.210.231
REMOTE_PORT
20238
REMOTE_ADDR
216.73.216.188
SERVER_SOFTWARE
nginx/1.26.3
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/thorkitchen.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/dingzhizhongxin/buxiugangyigui
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/dingzhizhongxin/buxiugangyigui
SCRIPT_FILENAME
/www/wwwroot/thorkitchen.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1774124410.9407
REQUEST_TIME
1774124410
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/thorkitchen.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1774124410.9424
THINK_START_MEM
404944
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/thorkitchen.cn/thinkphp/
LIB_PATH
/www/wwwroot/thorkitchen.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/thorkitchen.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/thorkitchen.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/thorkitchen.cn/
EXTEND_PATH
/www/wwwroot/thorkitchen.cn/extend/
VENDOR_PATH
/www/wwwroot/thorkitchen.cn/vendor/
RUNTIME_PATH
/www/wwwroot/thorkitchen.cn/runtime/
LOG_PATH
/www/wwwroot/thorkitchen.cn/runtime/log/
CACHE_PATH
/www/wwwroot/thorkitchen.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/thorkitchen.cn/runtime/temp/
CONF_PATH
/www/wwwroot/thorkitchen.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/thorkitchen.cn/addons/