[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/cnhu/public/../application/en/view/index/index.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('', ['cp' => [['id' => 1, 'pid' => 0, 'class_name' => '营养品', ...], ['id' => 4, 'pid' => 0, 'class_name' => '原料药', ...], ['id' => 2, 'pid' => 0, 'class_name' => '香精香料', ...], ...], 'get_seo' => object(Seo), 'banner' => [object(Banner), object(Banner), object(Banner), ...], ...], []) in View.php line 163
  3. at View->fetch('', [], [], []) in Controller.php line 120
  4. at Controller->fetch() in Index.php line 15
  5. at Index->index()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  7. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  8. at App::module(['en', 'index', null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['en', 'index', null]], ['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('/www/wwwroot/cnhu/th...') in index.php line 16

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/cnhu/public/index.php
QUERY_STRING
s=/en/index
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/en/index
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/cnhu/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.16.0
REMOTE_ADDR
154.92.98.82
REMOTE_PORT
20000
SERVER_ADDR
172.16.227.221
SERVER_PORT
80
SERVER_NAME
www.cnhu.com
REDIRECT_STATUS
200
PATH_INFO
/en/index
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.cnhu.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1576200194.4701
REQUEST_TIME
1576200194
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/cnhu/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1576200194.4704
THINK_START_MEM
259840
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/cnhu/thinkphp/
LIB_PATH
/www/wwwroot/cnhu/thinkphp/library/
CORE_PATH
/www/wwwroot/cnhu/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/cnhu/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/cnhu/
EXTEND_PATH
/www/wwwroot/cnhu/extend/
VENDOR_PATH
/www/wwwroot/cnhu/vendor/
RUNTIME_PATH
/www/wwwroot/cnhu/runtime/
LOG_PATH
/www/wwwroot/cnhu/runtime/log/
CACHE_PATH
/www/wwwroot/cnhu/runtime/cache/
TEMP_PATH
/www/wwwroot/cnhu/runtime/temp/
CONF_PATH
/www/wwwroot/cnhu/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false