[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:template/default/content/article/en_cpxl_list.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/default/con...', ['request' => object(Request), 'param' => ['id' => '105', 'navid' => '2', 'model' => 'article'], 'zh_language_url' => '/index/content/lists...', ...], []) in View.php line 163
  3. at View->fetch('content/article/en_c...', ['request' => object(Request), 'param' => ['id' => '105', 'navid' => '2', 'model' => 'article'], 'zh_language_url' => '/index/content/lists...', ...], ['__ROOT__' => '', '__URL__' => '/index/content', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('content/article/en_c...') in Content.php line 123
  5. at Content->lists('105', '', '2')
  6. at ReflectionMethod->invokeArgs(object(Content), ['105', '', '2']) in App.php line 343
  7. at App::invokeMethod([object(Content), 'lists'], []) in App.php line 611
  8. at App::module(['index', 'content', 'lists'], ['app_host' => '', 'app_debug' => '0', 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'content', 'lists'], 'convert' => false], ['app_host' => '', 'app_debug' => '0', 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/mengcao...') in index.php line 34

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
on4aq3tlpcaotrb2ul6s3si1o6

Session

sent
{ "language": "en" }

Server/Request Data

USER
www
HOME
/home/www
HTTP_X_ARR_LOG_ID
541e9d36-ec50-4861-b003-9d633cf34d1f
HTTP_X_ARR_SSL
2048|256|C=CN, O="TrustAsia Technologies, Inc.", OU=Domain Validated SSL, CN=TrustAsia TLS RSA CA|CN=www.mengcao.com
HTTP_X_ORIGINAL_URL
/article/list/105/navid/2.html
HTTP_X_ORIGINAL_HOST
www.mengcao.com
HTTP_X_FORWARDED_PORT
443
HTTP_X_FORWARDED_PROTO
https
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_MAX_FORWARDS
10
HTTP_COOKIE
PHPSESSID=on4aq3tlpcaotrb2ul6s3si1o6
HTTP_ACCEPT_CHARSET
utf-8
HTTP_ACCEPT
*/*
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded
HTTP_CONTENT_LENGTH
0
HTTP_CONNECTION
close
HTTP_X_FORWARDED_FOR
10.3.0.5
HTTP_HOST
www.mengcao.com
PATH_INFO
/article/list/105/navid/2.html
REDIRECT_STATUS
200
SERVER_NAME
10.3.1.7
SERVER_PORT
80
SERVER_ADDR
10.3.1.7
REMOTE_PORT
48770
REMOTE_ADDR
10.3.1.4
SERVER_SOFTWARE
nginx/1.16.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.0
DOCUMENT_ROOT
/www/wwwroot/mengcao
DOCUMENT_URI
/index.php
REQUEST_URI
/article/list/105/navid/2.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
0
CONTENT_TYPE
application/x-www-form-urlencoded
REQUEST_METHOD
GET
QUERY_STRING
s=/article/list/105/navid/2.html
SCRIPT_FILENAME
/www/wwwroot/mengcao/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1598413409.0301
REQUEST_TIME
1598413409
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/mengcao/application/
BASE_PATH
ROOT_PATH
/www/wwwroot/mengcao/
EXTEND_PATH
/www/wwwroot/mengcao/core/extend/
VENDOR_PATH
/www/wwwroot/mengcao/core/vendor/
ICONV_ENABLED
true
RUNTIME_PATH
/www/wwwroot/mengcao/data/
THINK_VERSION
5.0.24
THINK_START_TIME
1598413409.0309
THINK_START_MEM
382400
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/mengcao/core/
LIB_PATH
/www/wwwroot/mengcao/core/library/
CORE_PATH
/www/wwwroot/mengcao/core/library/think/
TRAIT_PATH
/www/wwwroot/mengcao/core/library/traits/
LOG_PATH
/www/wwwroot/mengcao/data/log/
CACHE_PATH
/www/wwwroot/mengcao/data/cache/
TEMP_PATH
/www/wwwroot/mengcao/data/temp/
CONF_PATH
/www/wwwroot/mengcao/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
SENTCMS_VERSION
3.0.20161201
SENT_ADDON_PATH
/www/wwwroot/mengcao//addons/
MODULE_NAME
index
CONTROLLER_NAME
Content
ACTION_NAME
lists
IS_POST
false
IS_GET
true