[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:/www/wwwroot/hnyxs.com/public/../application/sq_login/view/public/error.tpl

  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('/www/wwwroot/hnyxs.c...', ['title' => '人才招聘', 'info' => ['title' => ''], 'get' => ['/recruit_html' => '', 'id' => '382'], ...], []) in View.php line 159
  3. at View->fetch('/www/wwwroot/hnyxs.c...', ['code' => 0, 'msg' => '404~!', 'data' => '', ...]) in Jump.php line 89
  4. at Controller->error('404~!') in Channel.php line 78
  5. at Channel->action('recruit', '382')
  6. at ReflectionMethod->invokeArgs(object(Channel), ['recruit', '382']) in App.php line 197
  7. at App::invokeMethod([object(Channel), 'action'], []) in App.php line 411
  8. at App::module([null, 'Channel', 'action'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 296
  9. at App::exec(['type' => 'module', 'module' => [null, 'Channel', 'action'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  10. at App::run() in start.php line 18
  11. at require('/www/wwwroot/hnyxs.c...') in index.php line 34

Environment Variables

GET Data

/recruit_html
id
382
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_USER_AGENT
curl/7.29.0
HTTP_HOST
www.hnyxs.com
HTTP_ACCEPT
*/*
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at www.hnyxs.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.hnyxs.com
SERVER_ADDR
122.114.65.110
SERVER_PORT
80
REMOTE_ADDR
172.121.136.226
DOCUMENT_ROOT
/www/wwwroot/hnyxs.com/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/hnyxs.com/public
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/hnyxs.com/public/index.php
REMOTE_PORT
53460
REDIRECT_URL
/recruit.html
REDIRECT_QUERY_STRING
/recruit.html&id=382
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/recruit.html&id=382
REQUEST_URI
/recruit.html?id=382
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1597055231.3402
REQUEST_TIME
1597055231
PATH_INFO
/recruit.html
Environment Variables
empty

ThinkPHP Constants

__PUBLIC__
/public
APP_PATH
/www/wwwroot/hnyxs.com/public/../application/
UPLOAD_PATH
/www/wwwroot/hnyxs.com/public/../public
RUNTIME_PATH
/www/wwwroot/hnyxs.com/public/../runtime/
DATA
/www/wwwroot/hnyxs.com/public/../data/
APP_DEBUG
false
DB_DEBUG
false
THINK_VERSION
5.0.11
THINK_START_TIME
1597055231.3412
THINK_START_MEM
269384
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/hnyxs.com/thinkphp/
LIB_PATH
/www/wwwroot/hnyxs.com/thinkphp/library/
CORE_PATH
/www/wwwroot/hnyxs.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/hnyxs.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/hnyxs.com/
PUBLIC_PATH
/www/wwwroot/hnyxs.com/public/
EXTEND_PATH
/www/wwwroot/hnyxs.com/extend/
VENDOR_PATH
/www/wwwroot/hnyxs.com/vendor/
LOG_PATH
/www/wwwroot/hnyxs.com/public/../runtime/log/
CACHE_PATH
/www/wwwroot/hnyxs.com/public/../runtime/cache/
TEMP_PATH
/www/wwwroot/hnyxs.com/public/../runtime/temp/
CONF_PATH
/www/wwwroot/hnyxs.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.1.3
DATA_PATH
../runtime/cache/module/
MAX_MENU_LENGTH
3
MAX_SUB_MENU_LENGTH
5