[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/speedata_cn/public/../application/index/view/index/show_technology.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('', ['others' => [['id' => 5, 'cid' => 59, 'uid' => 1, ...], ['id' => 6, 'cid' => 59, 'uid' => 1, ...], ['id' => 7, 'cid' => 59, 'uid' => 1, ...], ...], 'other_sitelink' => [['id' => 5, 'cid' => 59, 'uid' => 1, ...], ['id' => 6, 'cid' => 59, 'uid' => 1, ...], ['id' => 7, 'cid' => 59, 'uid' => 1, ...], ...], 'other_konggugongsi' => [['id' => 1, 'cid' => 58, 'uid' => 1, ...], ['id' => 3, 'cid' => 58, 'uid' => 1, ...], ['id' => 4, 'cid' => 58, 'uid' => 1, ...]], ...], []) in View.php line 163
  3. at View->fetch('', [], [], []) in Controller.php line 120
  4. at Controller->fetch() in Index.php line 413
  5. at Index->show_technology('89')
  6. at ReflectionMethod->invokeArgs(object(Index), ['89']) in App.php line 343
  7. at App::invokeMethod([object(Index), 'show_technology'], []) in App.php line 606
  8. at App::module(['index', 'index', 'show_technology'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'show_technology']], ['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/speedat...') in index.php line 34

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/speedata_cn/public/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
application/x-www-form-urlencoded; charset=utf-8
CONTENT_LENGTH
SCRIPT_NAME
/public/index.php
REQUEST_URI
/show_technology/id/89
DOCUMENT_URI
/public/index.php/index/index/show_technology/id/89
DOCUMENT_ROOT
/www/wwwroot/speedata_cn
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.2
REMOTE_ADDR
209.58.134.15
REMOTE_PORT
58508
SERVER_ADDR
59.110.15.150
SERVER_PORT
80
SERVER_NAME
cn.speedata
REDIRECT_STATUS
200
PATH_INFO
/index/index/show_technology/id/89
HTTP_HOST
www.ag8-139.com
HTTP_REFERER
http://www.baidu.com/search/spider.htm
HTTP_X_APPLE_TZ
0
HTTP_X_APPLE_STORE_FRONT
143444,12
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_CACHE_CONTROL
no-cache
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded; charset=utf-8
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
HTTP_X_MICROSOFTAJAX
Delta=true
PHP_SELF
/public/index.php/index/index/show_technology/id/89
REQUEST_TIME_FLOAT
1664145176.4694
REQUEST_TIME
1664145176
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/speedata_cn/public/../application/
ADMIN_FILE
admin.php
THINK_VERSION
5.0.21
THINK_START_TIME
1664145176.4701
THINK_START_MEM
266208
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/speedata_cn/thinkphp/
LIB_PATH
/www/wwwroot/speedata_cn/thinkphp/library/
CORE_PATH
/www/wwwroot/speedata_cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/speedata_cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/speedata_cn/
EXTEND_PATH
/www/wwwroot/speedata_cn/extend/
VENDOR_PATH
/www/wwwroot/speedata_cn/vendor/
RUNTIME_PATH
/www/wwwroot/speedata_cn/runtime/
LOG_PATH
/www/wwwroot/speedata_cn/runtime/log/
CACHE_PATH
/www/wwwroot/speedata_cn/runtime/cache/
TEMP_PATH
/www/wwwroot/speedata_cn/runtime/temp/
CONF_PATH
/www/wwwroot/speedata_cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/speedata_cn/vendor/ezyang/htmlpurifier/library
PUBLIC_PATH
/public/