[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/hetiancg.com/application/portal/view/news/xuexiaogonggao.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('', ['setting' => ['title' => ['id' => 20, 'title' => '网站名称', 'key' => 'title', ...], 'author' => ['id' => 21, 'title' => '网站作者', 'key' => 'author', ...], 'generator' => ['id' => 22, 'title' => '程序引擎', 'key' => 'generator', ...], ...], 'static_path' => null, 'common_path' => 'common', ...], []) in View.php line 163
  3. at View->fetch('', [], [], []) in Controller.php line 120
  4. at Controller->fetch() in Base.php line 21
  5. at Base->_empty('xuexiaogonggao')
  6. at ReflectionMethod->invokeArgs(object(News), ['xuexiaogonggao']) in App.php line 196
  7. at App::invokeMethod([object(News), '_empty'], ['xuexiaogonggao']) in App.php line 412
  8. at App::module([null, 'news', 'xuexiaogonggao'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 295
  9. at App::exec(['type' => 'module', 'module' => [null, 'news', 'xuexiaogonggao'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/hetianc...') in index.php line 14

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/hetiancg.com/index.php
QUERY_STRING
s=//news/xuexiaogonggao.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/news/xuexiaogonggao.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/hetiancg.com
SERVER_PROTOCOL
HTTP/2.0
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.20.2
REMOTE_ADDR
54.89.127.249
REMOTE_PORT
55742
SERVER_ADDR
172.31.134.104
SERVER_PORT
443
SERVER_NAME
hetiancg.com
REDIRECT_STATUS
200
PATH_INFO
//news/xuexiaogonggao.html
HTTP_HOST
hetiancg.com
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_REFERER
http://hetiancg.com/news/xuexiaogonggao.html
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711721567.2185
REQUEST_TIME
1711721567
Environment Variables
empty

ThinkPHP Constants

IS_PUBLIC
false
ROOT_PATH
/www/wwwroot/hetiancg.com/
PUBLIC_NAME
public
APP_PATH
/www/wwwroot/hetiancg.com/application/
WEJOY_PATH
/www/wwwroot/hetiancg.com/zhmx/
EXTEND_PATH
/www/wwwroot/hetiancg.com/zhmx/extend/
VENDOR_PATH
/www/wwwroot/hetiancg.com/zhmx/vendor/
THINK_VERSION
5.0.24
THINK_START_TIME
1711721567.2192
THINK_START_MEM
293232
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/hetiancg.com/zhmx/thinkphp/
LIB_PATH
/www/wwwroot/hetiancg.com/zhmx/thinkphp/library/
CORE_PATH
/www/wwwroot/hetiancg.com/zhmx/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/hetiancg.com/zhmx/thinkphp/library/traits/
RUNTIME_PATH
/www/wwwroot/hetiancg.com/runtime/
LOG_PATH
/www/wwwroot/hetiancg.com/runtime/log/
CACHE_PATH
/www/wwwroot/hetiancg.com/runtime/cache/
TEMP_PATH
/www/wwwroot/hetiancg.com/runtime/temp/
CONF_PATH
/www/wwwroot/hetiancg.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
APP_DEBUG
true
MODEL
0
IS_CLI
false
IS_WIN
false