[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:/www/wwwroot/sh3403-3403.e.sanhe-jp.com/public/../application/../template/../template/8001/staff_info.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('../template/8001/sta...', ['Staffindex' => [['id' => 53, 'type' => 'Staffindex', 'type2' => '', ...], ['id' => 140, 'type' => 'Staffindex', 'type2' => '', ...], ['id' => 143, 'type' => 'Staffindex', 'type2' => '', ...], ...], 'Staffindextop' => [], 'Imgbg' => ['id' => 1, 'type' => 'Imgbg', 'type2' => '', ...], ...], []) in View.php line 127
  3. at View->fetch('../template/8001/sta...', [], [], []) in Controller.php line 108
  4. at Controller->fetch('../template/8001/sta...') in Staff.php line 78
  5. at Staff->info('275')
  6. at ReflectionMethod->invokeArgs(object(Staff), ['275']) in App.php line 230
  7. at App::invokeMethod([object(Staff), 'info'], []) in App.php line 395
  8. at App::module(['index', 'staff', 'info'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 138
  9. at App::run() in start.php line 18
  10. at require('/www/wwwroot/sh3403-...') in index.php line 28

Environment Variables

GET Data
id 275
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/sh3403-3403.e.sanhe-jp.com/public/index.php
QUERY_STRING s=/index/staff/info&id=275
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /index/staff/info?id=275
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/sh3403-3403.e.sanhe-jp.com/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.15.10
REMOTE_ADDR 3.235.46.191
REMOTE_PORT 48714
SERVER_ADDR 172.105.225.35
SERVER_PORT 80
SERVER_NAME sh3403-dream.sh-buetfery.tokyo
REDIRECT_STATUS 200
PATH_INFO /index/staff/info
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST dream.sh-buetfery.tokyo
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711619075.0364
REQUEST_TIME 1711619075
Environment Variablesempty
ThinkPHP Constants
APP_DEBUG true
ROOT_DOMAIN *.q.bendi-jp.com
VERSION 1.2.0 beta(20160927)
APP_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/public/../application/
THINK_VERSION 5.0.2
THINK_START_TIME 1711619075.0372
THINK_START_MEM 261432
EXT .php
DS /
THINK_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/thinkphp/
LIB_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/thinkphp/library/
CORE_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/thinkphp/library/traits/
ROOT_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/
EXTEND_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/extend/
VENDOR_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/vendor/
RUNTIME_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/runtime/
LOG_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/runtime/log/
CACHE_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/runtime/cache/
TEMP_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/runtime/temp/
CONF_PATH /www/wwwroot/sh3403-3403.e.sanhe-jp.com/public/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
IS_GET true
IS_POST false
IS_PUT false
IS_DELETE false
IS_AJAX false
IS_PJAX false
NOW_TIME 1711619075
MODULE_NAME index
CONTROLLER_NAME Staff
ACTION_NAME info
__SELF__ http://dream.sh-buetfery.tokyo/index/staff/info?id=275