[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:./template/company/2/page/material.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/company/2...', ['o_auth_user' => false, 'auth_user' => false, 'wx_data' => ['appId' => 'wx46e11b36c1e857f2', 'nonceStr' => 'UeiTvERLXjYrnmVd', 'timestamp' => 1711657361, ...], ...], []) in View.php line 159
  3. at View->fetch('/material', ['o_auth_user' => false, 'auth_user' => false, 'wx_data' => ['appId' => 'wx46e11b36c1e857f2', 'nonceStr' => 'UeiTvERLXjYrnmVd', 'timestamp' => 1711657361, ...], ...], [], []) in Controller.php line 111
  4. at Controller->fetch('/material') in Home.php line 994
  5. at Home->material()
  6. at ReflectionMethod->invokeArgs(object(Home), []) in App.php line 196
  7. at App::invokeMethod([object(Home), 'material'], []) in App.php line 408
  8. at App::module(['company', 'home', 'material'], ['app_debug' => true, 'app_trace' => false, 'app_status' => '', ...], true) in App.php line 295
  9. at App::exec(['type' => 'module', 'module' => ['company', 'home', 'material']], ['app_debug' => true, 'app_trace' => false, 'app_status' => '', ...]) in App.php line 123
  10. at App::run() in start.php line 18
  11. at require('/mnt/projects/php/th...') in index.php line 8

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/alidata/www
HTTP_HOST
ljjjzjlf.green3g.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/home/material
REDIRECT_STATUS
200
SERVER_NAME
green3g.com
SERVER_PORT
80
SERVER_ADDR
172.23.135.121
REMOTE_PORT
46518
REMOTE_ADDR
54.152.5.73
SERVER_SOFTWARE
nginx/1.17.3
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/mnt/projects/php/green3g
DOCUMENT_URI
/index.php
REQUEST_URI
/home/material
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/home/material
SCRIPT_FILENAME
/mnt/projects/php/green3g/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711657361.4664
REQUEST_TIME
1711657361
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/projects/php/green3g/application/
CONF_PATH
/mnt/projects/php/green3g/config/
THINK_VERSION
5.0.9
THINK_START_TIME
1711657361.4708
THINK_START_MEM
841984
EXT
.php
DS
/
THINK_PATH
/mnt/projects/php/thinkphp/
LIB_PATH
/mnt/projects/php/thinkphp/library/
CORE_PATH
/mnt/projects/php/thinkphp/library/think/
TRAIT_PATH
/mnt/projects/php/thinkphp/library/traits/
ROOT_PATH
/mnt/projects/php/green3g/
EXTEND_PATH
/mnt/projects/php/green3g/extend/
VENDOR_PATH
/mnt/projects/php/green3g/vendor/
RUNTIME_PATH
/mnt/projects/php/green3g/runtime/
LOG_PATH
/mnt/projects/php/green3g/runtime/log/
CACHE_PATH
/mnt/projects/php/green3g/runtime/cache/
TEMP_PATH
/mnt/projects/php/green3g/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
IS_P
false
IS_G
true
R_M
company
R_C
home
R_A
material
R_D
ljjjzjlf