[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:themes/pc_cn/error/../public/404.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/error/....', ['site_info' => ['site_name' => '...', 'site_seo_title' => '', 'site_seo_keywords' => '...', ...], 'year' => '2024', 'SO' => 'is_top DESC,list_ord...', ...], []) in View.php line 163
  3. at View->fetch('themes/pc_cn/error/....', ['site_info' => ['site_name' => '...', 'site_seo_title' => '', 'site_seo_keywords' => '...', ...], 'year' => '2024', 'SO' => 'is_top DESC,list_ord...', ...], ['__ROOT__' => '', '__URL__' => '/error/oubokuaixun', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('themes/pc_cn/error/....', [], [], []) in HomeBaseController.php line 99
  5. at HomeBaseController->fetch('themes/pc_cn/error/....') in ErrorController.php line 13
  6. at ErrorController->_empty()
  7. at ReflectionMethod->invokeArgs(object(ErrorController), []) in App.php line 343
  8. at App::invokeMethod([object(ErrorController), '_empty'], ['zuixindongtai']) in App.php line 621
  9. at App::module(['html', 'oubokuaixun', 'zuixindongtai'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['html', 'oubokuaixun', 'zuixindongtai']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in index.php line 55

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/html/oubokuaixun/zuixindongtai/20170119/1607.html
QUERY_STRING
s=html/oubokuaixun/zuixindongtai/20170119/1607.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=html/oubokuaixun/zuixindongtai/20170119/1607.html
REDIRECT_URL
/html/oubokuaixun/zuixindongtai/20170119/1607.html
REMOTE_PORT
55326
SCRIPT_FILENAME
/www/wwwroot/oubo.com.cn/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/oubo.com.cn
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/oubo.com.cn
REMOTE_ADDR
3.239.59.193
SERVER_PORT
80
SERVER_ADDR
172.17.144.75
SERVER_NAME
www.oubo.com.cn
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.oubo.com.cn Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib:/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
www.oubo.com.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710814310.241
REQUEST_TIME
1710814310
PATH_INFO
html/oubokuaixun/zuixindongtai/20170119/1607.html
Environment Variables
empty

ThinkPHP Constants

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