[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:../template/en/news\article.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/en/news\...', ['tips' => ['...', '操作成功', '操作失败', ...], 'config' => [], 'nav' => [], ...], []) in View.php line 163
  3. at View->fetch('news/article', ['tips' => ['...', '操作成功', '操作失败', ...], 'config' => [], 'nav' => [], ...], ['__ROOT__' => '', '__URL__' => '/home/content', '__STATIC__' => '/static', ...], []) in Controller.php line 128
  4. at Controller->fetch('news/article') in Content.php line 120
  5. at Content->detail('285')
  6. at ReflectionMethod->invokeArgs(object(Content), ['285']) in App.php line 351
  7. at App::invokeMethod([object(Content), 'detail'], []) in App.php line 617
  8. at App::module([null, 'Content', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 464
  9. at App::exec(['type' => 'module', 'module' => [null, 'Content', 'detail'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 147
  10. at App::run() in start.php line 19
  11. at require('D:\wwwroot\yeling201...') in index.php line 35

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

siteId
a:2:{s:7:"site_id";i:2;s:8:"template";s:2:"en";}
PHPSESSID
7lfr3vcntl6jt70koq47nb5ef1
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-c47479d1-a886-476d-8d67-c0706e26d904
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\yeling2019\yeling2019.config
APP_POOL_ID
yeling2019
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WEBSITE
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 63 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3f04
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
WEBSITE$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/news-detail/285
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/8.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.yeling.cn
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\wwwroot\yeling2019\web\public\index.php
REQUEST_URI
/news-detail/285
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
36772
REMOTE_HOST
50.2.50.46
REMOTE_ADDR
50.2.50.46
QUERY_STRING
PATH_TRANSLATED
D:\wwwroot\yeling2019\web\public\index.php\news-detail\285
PATH_INFO
/news-detail/285
LOGON_USER
LOCAL_ADDR
172.16.0.1
INSTANCE_META_PATH
/LM/W3SVC/6010
INSTANCE_NAME
NEWYELING
INSTANCE_ID
6010
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\wwwroot\yeling2019\web\public
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
D:\wwwroot\yeling2019\web\public\
APPL_MD_PATH
/LM/W3SVC/6010/ROOT
IIS_UrlRewriteModule
7.1.0871.0
UNENCODED_URL
//news-detail/285
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/news-detail/285
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST
www.yeling.cn
HTTP_COOKIE
siteId=a%3A2%3A%7Bs%3A7%3A%22site_id%22%3Bi%3A2%3Bs%3A8%3A%22template%22%3Bs%3A2%3A%22en%22%3B%7D; PHPSESSID=7lfr3vcntl6jt70koq47nb5ef1
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/news-detail/285
REQUEST_TIME_FLOAT
1733403686.2814
REQUEST_TIME
1733403686
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\yeling2019\web\public/../zh_app/
CONF_PATH
D:\wwwroot\yeling2019\web\public/../config/
INDEX_PATH
hindex/index
PRODUCT_PATH
hindex/index
hindex/index
LOG_PATH
D:\wwwroot\yeling2019\web\public/../log/
HTML_PATH
D:\wwwroot\yeling2019\web\public/html/
THINK_VERSION
5.0.20
THINK_START_TIME
1733403686.2829
THINK_START_MEM
396976
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\yeling2019\web\zh_core\
LIB_PATH
D:\wwwroot\yeling2019\web\zh_core\library\
CORE_PATH
D:\wwwroot\yeling2019\web\zh_core\library\think\
TRAIT_PATH
D:\wwwroot\yeling2019\web\zh_core\library\traits\
ROOT_PATH
D:\wwwroot\yeling2019\web\
EXTEND_PATH
D:\wwwroot\yeling2019\web\extend\
VENDOR_PATH
D:\wwwroot\yeling2019\web\vendor\
RUNTIME_PATH
D:\wwwroot\yeling2019\web\runtime\
CACHE_PATH
D:\wwwroot\yeling2019\web\runtime\cache\
TEMP_PATH
D:\wwwroot\yeling2019\web\runtime\temp\
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
IS_AJAX
false
IS_PJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Content
ACTION_NAME
detail
XML 地图