[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:template/pc/new/public_show.htmll

  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/new/publ...', ['thispage' => 'Article', 'catname' => '招生就业', 'article' => ['id' => '820', 'title' => '一汽丰田', 'inputtime' => '1622454840', ...], ...], []) in View.php line 163
  3. at View->fetch('template/pc/new/publ...', [], [], []) in Controller.php line 120
  4. at Controller->fetch('template/pc/new/publ...') in Article.php line 63
  5. at Article->show()
  6. at ReflectionMethod->invokeArgs(object(Article), []) in App.php line 343
  7. at App::invokeMethod([object(Article), 'show'], []) in App.php line 611
  8. at App::module(['index', 'article', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'article', 'show'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/cdqczx/...') in index.php line 10

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
5ss29gh236l60h88lm3977798e
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/cdqczx/index.php
QUERY_STRING
s=/xiaoqihezuo/820.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/xiaoqihezuo/820.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/cdqczx
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.20.2
REMOTE_ADDR
23.90.62.50
REMOTE_PORT
54844
SERVER_ADDR
172.18.9.151
SERVER_PORT
80
SERVER_NAME
cdqczx.com
REDIRECT_STATUS
200
PATH_INFO
/xiaoqihezuo/820.html
HTTP_USER_AGENT
Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)
HTTP_HOST
www.cdqczx.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
PHPSESSID=5ss29gh236l60h88lm3977798e
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1653919203.1108
REQUEST_TIME
1653919203
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/cdqczx/application/
__FIVEROOT__
THINK_VERSION
5.0.24
THINK_START_TIME
1653919203.1115
THINK_START_MEM
263136
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/cdqczx/thinkphp/
LIB_PATH
/www/wwwroot/cdqczx/thinkphp/library/
CORE_PATH
/www/wwwroot/cdqczx/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/cdqczx/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/cdqczx/
EXTEND_PATH
/www/wwwroot/cdqczx/extend/
VENDOR_PATH
/www/wwwroot/cdqczx/vendor/
RUNTIME_PATH
/www/wwwroot/cdqczx/runtime/
LOG_PATH
/www/wwwroot/cdqczx/runtime/log/
CACHE_PATH
/www/wwwroot/cdqczx/runtime/cache/
TEMP_PATH
/www/wwwroot/cdqczx/runtime/temp/
CONF_PATH
/www/wwwroot/cdqczx/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false