[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/var/www/html/www.chinaredflag.cn/public/../application/index/view/product/more/cloud-infrastructure.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('/var/www/html/www.ch...', ['user' => null, 'site' => ['name' => '中科红旗', 'beian' => '', 'cdnurl' => '', ...], 'config' => ['site' => ['name' => '中科红旗', 'cdnurl' => '', 'version' => 1711626599, ...], 'upload' => ['cdnurl' => '', 'uploadurl' => '/ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], ...], []) in View.php line 163
  3. at View->fetch('product/more/cloud-i...', ['user' => null, 'site' => ['name' => '中科红旗', 'beian' => '', 'cdnurl' => '', ...], 'config' => ['site' => ['name' => '中科红旗', 'cdnurl' => '', 'version' => 1711626599, ...], 'upload' => ['cdnurl' => '', 'uploadurl' => '/ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], ...], ['__ROOT__' => '/', '__URL__' => '/index/product', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('product/more/cloud-i...') in Product.php line 68
  5. at Product->more(object(Request))
  6. at ReflectionMethod->invokeArgs(object(Product), [object(Request)]) in App.php line 343
  7. at App::invokeMethod([object(Product), 'more'], []) in App.php line 611
  8. at App::module(['index', 'product', 'more'], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...], true) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'product', 'more']], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/var/www/html/www.ch...') in index.php line 24

Environment Variables

GET Data

name
cloud-infrastructure
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_UNIQUE_ID
ZgVZZ7LUpiZStPGy3xNuZAAAAAs
REDIRECT_HTTPS
on
REDIRECT_SSL_TLS_SNI
chinaredflag.cn
REDIRECT_STATUS
200
UNIQUE_ID
ZgVZZ7LUpiZStPGy3xNuZAAAAAs
HTTPS
on
SSL_TLS_SNI
chinaredflag.cn
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_REFERER
http://chinaredflag.cn/product/more?name=cloud-infrastructure
HTTP_HOST
chinaredflag.cn
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.6 (Asianux) OpenSSL/1.0.1e-fips PHP/7.2.17
SERVER_NAME
chinaredflag.cn
SERVER_ADDR
172.17.122.99
SERVER_PORT
443
REMOTE_ADDR
18.207.240.205
DOCUMENT_ROOT
/var/www/html/www.chinaredflag.cn/public
REQUEST_SCHEME
https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/var/www/html/www.chinaredflag.cn/public
SERVER_ADMIN
root@localhost
SCRIPT_FILENAME
/var/www/html/www.chinaredflag.cn/public/index.php
REMOTE_PORT
56632
REDIRECT_QUERY_STRING
s=product/more&name=cloud-infrastructure
REDIRECT_URL
/product/more
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=product/more&name=cloud-infrastructure
REQUEST_URI
/product/more?name=cloud-infrastructure
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711626599.601
REQUEST_TIME
1711626599
PATH_INFO
product/more
Environment Variables
empty

ThinkPHP Constants

BIND_MODULE
index
APP_PATH
/var/www/html/www.chinaredflag.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711626599.6016
THINK_START_MEM
398392
EXT
.php
DS
/
THINK_PATH
/var/www/html/www.chinaredflag.cn/thinkphp/
LIB_PATH
/var/www/html/www.chinaredflag.cn/thinkphp/library/
CORE_PATH
/var/www/html/www.chinaredflag.cn/thinkphp/library/think/
TRAIT_PATH
/var/www/html/www.chinaredflag.cn/thinkphp/library/traits/
ROOT_PATH
/var/www/html/www.chinaredflag.cn/
EXTEND_PATH
/var/www/html/www.chinaredflag.cn/extend/
VENDOR_PATH
/var/www/html/www.chinaredflag.cn/vendor/
RUNTIME_PATH
/var/www/html/www.chinaredflag.cn/runtime/
LOG_PATH
/var/www/html/www.chinaredflag.cn/runtime/log/
CACHE_PATH
/var/www/html/www.chinaredflag.cn/runtime/cache/
TEMP_PATH
/var/www/html/www.chinaredflag.cn/runtime/temp/
CONF_PATH
/var/www/html/www.chinaredflag.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
U_IDNA_PROHIBITED_ERROR
66560
U_IDNA_ERROR_START
66560
U_IDNA_UNASSIGNED_ERROR
66561
U_IDNA_CHECK_BIDI_ERROR
66562
U_IDNA_STD3_ASCII_RULES_ERROR
66563
U_IDNA_ACE_PREFIX_ERROR
66564
U_IDNA_VERIFICATION_ERROR
66565
U_IDNA_LABEL_TOO_LONG_ERROR
66566
U_IDNA_ZERO_LENGTH_LABEL_ERROR
66567
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR
66568
U_IDNA_ERROR_LIMIT
66569
U_STRINGPREP_PROHIBITED_ERROR
66560
U_STRINGPREP_UNASSIGNED_ERROR
66561
U_STRINGPREP_CHECK_BIDI_ERROR
66562
IDNA_DEFAULT
0
IDNA_ALLOW_UNASSIGNED
1
IDNA_USE_STD3_RULES
2
IDNA_CHECK_BIDI
4
IDNA_CHECK_CONTEXTJ
8
IDNA_NONTRANSITIONAL_TO_ASCII
16
IDNA_NONTRANSITIONAL_TO_UNICODE
32
INTL_IDNA_VARIANT_2003
0
INTL_IDNA_VARIANT_UTS46
1
IDNA_ERROR_EMPTY_LABEL
1
IDNA_ERROR_LABEL_TOO_LONG
2
IDNA_ERROR_DOMAIN_NAME_TOO_LONG
4
IDNA_ERROR_LEADING_HYPHEN
8
IDNA_ERROR_TRAILING_HYPHEN
16
IDNA_ERROR_HYPHEN_3_4
32
IDNA_ERROR_LEADING_COMBINING_MARK
64
IDNA_ERROR_DISALLOWED
128
IDNA_ERROR_PUNYCODE
256
IDNA_ERROR_LABEL_HAS_DOT
512
IDNA_ERROR_INVALID_ACE_LABEL
1024
IDNA_ERROR_BIDI
2048
IDNA_ERROR_CONTEXTJ
4096
ADDON_PATH
/var/www/html/www.chinaredflag.cn/addons/