[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:D:\web\chinaxhg_2fr21q\web\public/../application/index\view\recruit\page_about.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 80
  2. at Think->fetch('page_about', ['system' => object(SystemModel), 'categoryModel' => [['id' => 1, 'category_name' => '走进新华', 'page_type' => 'content', ...], ['id' => 2, 'category_name' => '新闻中心', 'page_type' => 'news', ...], ['id' => 3, 'category_name' => '新华产业', 'page_type' => 'content', ...], ...], 'model' => object(Bootstrap), ...], []) in View.php line 163
  3. at View->fetch('page_about', ['data' => ['pid' => '20', 'cid' => '27']], [], []) in Controller.php line 120
  4. at Controller->fetch('page_about', ['data' => ['pid' => '20', 'cid' => '27']]) in RecruitController.php line 62
  5. at RecruitController->IndexAction()
  6. at ReflectionMethod->invokeArgs(object(RecruitController), []) in App.php line 343
  7. at App::invokeMethod([object(RecruitController), 'indexAction'], []) in App.php line 607
  8. at App::module(['index', 'recruit', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'recruit', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 18
  11. at require('D:\web\chinaxhg_2fr2...') in index.php line 20

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "system": { "id": 1, "website_name": "\u65b0\u534e\u63a7\u80a1\u96c6\u56e2", "website_logo": "\/static\/uploads\/20181206\/78443c23014998bc1823526f42761754.png", "website_phone": "", "website_fax": "", "website_weichat": "\/static\/uploads\/20181206\/fe53c4e02a6e9407123818a84b6545cd.jpg", "website_address": "\u4e2d\u56fd\u00b7\u5408\u80a5\u6f5c\u5c71\u8def267\u53f7\u534e\u5730\u91d1\u878d\u4e2d\u5fc3A\u5ea7", "website_copyright": "Copyright \u00a9 2016-2019 chinaxhg.com All Rights Reserved.\u7696ICP\u590717002697\u53f7-1 \u5b89\u5fbd\u65b0\u534e\u63a7\u80a1\u96c6\u56e2\u6295\u8d44\u6709\u9650\u516c\u53f8 \u7248\u6743\u6240\u6709", "is_audit": 1, "css": "", "keywords": "\u65b0\u534e\u63a7\u80a1\u96c6\u56e2,\u534e\u5730\u96c6\u56e2,\u534e\u5730\u7f6e\u4e1a,\u534e\u5730\u80a1\u4efd,\u683c\u6797\u751f\u6001,\u827a\u5b66\u5802,\u65b0\u534e\u516c\u5b66,\u65b0\u534e\u6559\u80b2\u96c6\u56e2", "description": "\u65b0\u534e\u63a7\u80a1\u96c6\u56e2\u603b\u90e8\u4f4d\u4e8e\u4e2d\u56fd\u5408\u80a5\uff0c\u662f\u4e00\u5bb6\u96c6\u6559\u80b2\u3001\u5730\u4ea7\u3001\u4ea7\u4e1a\u57fa\u91d1\u3001\u751f\u6001\u73af\u4fdd\u3001\u57ce\u5e02\u66f4\u65b0\u7b49\u4ea7\u4e1a\u7ec4\u56e2\u4e8e\u4e00\u4f53\u7684\u533a\u57df\u8986\u76d6\u5e7f\u6cdb\u3001\u4e1a\u6001\u534f\u540c\u53d1\u5c55\u7684\u73b0\u4ee3\u5316\u4f01\u4e1a\u96c6\u56e2\u3002", "footer_javascript": "<script>\r\nvar _hmt = _hmt || [];\r\n(function() {\r\n var hm = document.createElement(\"script\");\r\n hm.src = \"https:\/\/hm.baidu.com\/hm.js?bc71881120fa8245f44242ee9a7395fb\";\r\n var s = document.getElementsByTagName(\"script\")[0]; \r\n s.parentNode.insertBefore(hm, s);\r\n})();\r\n<\/script>", "create_time": "2018-12-06 17:51:34", "update_time": "2022-03-28 19:42:27" }, "categoryModel": [ { "id": 1, "category_name": "\u8d70\u8fdb\u65b0\u534e", "page_type": "content", "template": "page_about", "target_type": 0, "child": [ { "id": 6, "category_name": "\u65b0\u534e\u7b80\u4ecb", "page_type": "content", "template": "page_about", "target_type": 0 }, { "id": 8, "category_name": "\u65b0\u534e\u6587\u5316", "page_type": "content", "template": "page_about", "target_type": 0 }, { "id": 9, "category_name": "\u65b0\u534e\u5f71\u50cf", "page_type": "content", "template": "video_list", "target_type": 0 } ] }, { "id": 2, "category_name": "\u65b0\u95fb\u4e2d\u5fc3", "page_type": "news", "template": "news_list", "target_type": 0, "child": [ { "id": 10, "category_name": "\u96c6\u56e2\u8981\u95fb", "page_type": "news", "template": "news_list", "target_type": 0 }, { "id": 11, "category_name": "\u516c\u53f8\u52a8\u6001", "page_type": "news", "template": "news_list", "target_type": 0 } ] }, { "id": 3, "category_name": "\u65b0\u534e\u4ea7\u4e1a", "page_type": "content", "template": "page_group", "target_type": 0, "child": [ { "id": 12, "category_name": "\u6559\u80b2", "page_type": "content", "template": "page_about", "target_type": 0 }, { "id": 13, "category_name": "\u5730\u4ea7", "page_type": "content", "template": "page_about", "target_type": 0 }, { "id": 14, "category_name": "\u4ea7\u4e1a\u57fa\u91d1", "page_type": "content", "template": "page_about", "target_type": 0 }, { "id": 15, "category_name": "\u751f\u6001\u73af\u4fdd", "page_type": "content", "template": "page_about", "target_type": 0 }, { "id": 16, "category_name": "\u57ce\u5e02\u66f4\u65b0", "page_type": "content", "template": "page_about", "target_type": 0 } ] }, { "id": 4, "category_name": "\u52a0\u5165\u65b0\u534e", "page_type": "content", "template": "page_jiaru", "target_type": 0, "child": [ { "id": 32, "category_name": "\u52a0\u5165\u6211\u4eec", "page_type": "content", "template": "page_jiaru", "target_type": 0 }, { "id": 33, "category_name": "\u793e\u4f1a\u62db\u8058", "page_type": "recruit", "template": "page_society", "target_type": 0 }, { "id": 34, "category_name": "\u6821\u56ed\u62db\u8058", "page_type": "recruit", "template": "page_school", "target_type": 0 } ] }, { "id": 37, "category_name": "\u5ec9\u653f\u4e3e\u62a5", "page_type": "content", "template": "page_report", "target_type": 0, "child": [] }, { "id": 5, "category_name": "\u8054\u7cfb\u6211\u4eec", "page_type": "content", "template": "page_contact", "target_type": 0, "child": [ { "id": 35, "category_name": "\u8054\u7cfb\u6211\u4eec", "page_type": "content", "template": "page_contact", "target_type": 0 }, { "id": 36, "category_name": "\u610f\u89c1\u5efa\u8bae", "page_type": "content", "template": "page_opinion", "target_type": 0 } ] } ] }

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-50c87e87-eca1-40e0-8bcb-0d8e236b7844
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\chinaxhg\chinaxhg.config
APP_POOL_ID
chinaxhg
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
xhg
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:\Windows\System32\WindowsPowerShell\v1.0\;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5504
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;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
xhg$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
windows_tracing_flags
3
windows_tracing_logfile
C:\BVTBin\Tests\installpackage\csilogfile.log
ORIG_PATH_INFO
/index.php/recruit-20-27.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/7.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
chinaxhg.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\web\chinaxhg_2fr21q\web\public\index.php
REQUEST_URI
/recruit-20-27.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
44030
REMOTE_HOST
3.236.217.172
REMOTE_ADDR
3.236.217.172
QUERY_STRING
PATH_TRANSLATED
D:\web\chinaxhg_2fr21q\web\public\index.php\recruit-20-27.html
PATH_INFO
/recruit-20-27.html
LOGON_USER
LOCAL_ADDR
172.26.172.102
INSTANCE_META_PATH
/LM/W3SVC/6001
INSTANCE_NAME
CHINAXHG
INSTANCE_ID
6001
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\web\chinaxhg_2fr21q\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:\web\chinaxhg_2fr21q\web\public\
APPL_MD_PATH
/LM/W3SVC/6001/ROOT
IIS_UrlRewriteModule
7.1.0871.0
UNENCODED_URL
/recruit-20-27.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/recruit-20-27.html
HTTP_USER_AGENT
claudebot
HTTP_HOST
chinaxhg.com
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/recruit-20-27.html
REQUEST_TIME_FLOAT
1711719350.9069
REQUEST_TIME
1711719350
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\web\chinaxhg_2fr21q\web\public/../application/
THINK_VERSION
5.0.15
THINK_START_TIME
1711719350.9069
THINK_START_MEM
151096
EXT
.php
DS
\
THINK_PATH
D:\web\chinaxhg_2fr21q\web\thinkphp\
LIB_PATH
D:\web\chinaxhg_2fr21q\web\thinkphp\library\
CORE_PATH
D:\web\chinaxhg_2fr21q\web\thinkphp\library\think\
TRAIT_PATH
D:\web\chinaxhg_2fr21q\web\thinkphp\library\traits\
ROOT_PATH
D:\web\chinaxhg_2fr21q\web\
EXTEND_PATH
D:\web\chinaxhg_2fr21q\web\extend\
VENDOR_PATH
D:\web\chinaxhg_2fr21q\web\vendor\
RUNTIME_PATH
D:\web\chinaxhg_2fr21q\web\runtime\
LOG_PATH
D:\web\chinaxhg_2fr21q\web\runtime\log\
CACHE_PATH
D:\web\chinaxhg_2fr21q\web\runtime\cache\
TEMP_PATH
D:\web\chinaxhg_2fr21q\web\runtime\temp\
CONF_PATH
D:\web\chinaxhg_2fr21q\web\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
PUBLIC_PATH
D:\web\chinaxhg_2fr21q\web\public/static
DELETE_PATH
D:\web\chinaxhg_2fr21q\web\public