[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/home/www/chaoxu_2024/application/view/index/../../../theme/chaoxu-EN/article-index-company.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('/home/www/chaoxu_202...', ['Cms' => ['id' => 1, 'sitename' => '英文站点', 'domain' => 'www.cnchaoxu.com', ...], 'BreadCrumb' => [['id' => 2, 'fid' => 2, 'pid' => 0, ...]], 'path' => '/../../../theme/chao...', ...], []) in View.php line 163
  3. at View->fetch('/../../../theme/chao...', ['Cms' => ['id' => 1, 'sitename' => '英文站点', 'domain' => 'www.cnchaoxu.com', ...], 'BreadCrumb' => [['id' => 2, 'fid' => 2, 'pid' => 0, ...]], 'path' => '/../../../theme/chao...', ...], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('/../../../theme/chao...') in Index.php line 888
  5. at Index->lists()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  7. at App::invokeMethod([object(Index), 'lists'], []) in App.php line 611
  8. at App::module(['index', 'index', 'lists'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'lists'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/home/www/chaoxu_202...') in index.php line 18

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/about-us.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/about-us.html
REMOTE_PORT
42504
SCRIPT_FILENAME
/home/www/chaoxu_2024/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/home/www/chaoxu_2024
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/home/www/chaoxu_2024
REMOTE_ADDR
44.197.251.102
SERVER_PORT
443
SERVER_ADDR
173.214.24.146
SERVER_NAME
www.cnchaoxu.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.cnchaoxu.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
HTTP_HOST
www.cnchaoxu.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
H2_STREAM_TAG
14560-14-3
H2_STREAM_ID
3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SSL_TLS_SNI
www.cnchaoxu.com
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_H2_STREAM_TAG
14560-14-3
REDIRECT_H2_STREAM_ID
3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH
off
REDIRECT_H2PUSH
off
REDIRECT_HTTP2
on
REDIRECT_SSL_TLS_SNI
www.cnchaoxu.com
REDIRECT_HTTPS
on
REDIRECT_PATH_INFO
about-us.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710817375.4101
REQUEST_TIME
1710817375
PATH_INFO
about-us.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/www/chaoxu_2024/application/
Html_Is_True
Oss_GRoot
chaoxu_2024
Off_Tag
1
THINK_VERSION
5.0.24
THINK_START_TIME
1710817375.4111
THINK_START_MEM
408072
EXT
.php
DS
/
THINK_PATH
/home/www/chaoxu_2024/thinkphp/
LIB_PATH
/home/www/chaoxu_2024/thinkphp/library/
CORE_PATH
/home/www/chaoxu_2024/thinkphp/library/think/
TRAIT_PATH
/home/www/chaoxu_2024/thinkphp/library/traits/
ROOT_PATH
/home/www/chaoxu_2024/
EXTEND_PATH
/home/www/chaoxu_2024/extend/
VENDOR_PATH
/home/www/chaoxu_2024/vendor/
RUNTIME_PATH
/home/www/chaoxu_2024/runtime/
LOG_PATH
/home/www/chaoxu_2024/runtime/log/
CACHE_PATH
/home/www/chaoxu_2024/runtime/cache/
TEMP_PATH
/home/www/chaoxu_2024/runtime/temp/
CONF_PATH
/home/www/chaoxu_2024/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
VIEW_ROOTA
/../../../theme/
QSITEID
1
QALLURL
1
QISHTTPS
1
QSITEBS
IsMobile
false