[0] TemplateNotFoundException in Smarty.php line 71

模板文件不存在:/data0/web/www.qibiao.com/public/../apps/user/view/news/detail.html

  1. * @return void
  2. */
  3. public function fetch($template, $data = [], $config = []) {
  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. // 定义模板常量
  15. $request = request();
  16. $default = [
  17. '__ROOT__' => pathinfo($request->baseFile(true), PATHINFO_DIRNAME),
  18. '__SELF__' => $request->url(TRUE),
  19. '__APP__' => $request->baseFile(TRUE)

Call Stack

  1. in Smarty.php line 71
  2. at Smarty->fetch('/data0/web/www.qibia...', ['news' => object(News), 'top_list' => [object(News), object(News), object(News), ...], 'hot_list' => []], []) in View.php line 163
  3. at View->fetch('', ['news' => object(News), 'top_list' => [object(News), object(News), object(News), ...], 'hot_list' => []], ['__ROOT__' => '', '__URL__' => '/user/news', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch() in News.php line 84
  5. at News->detail()
  6. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  7. at App::invokeMethod([object(News), 'detail'], []) in App.php line 611
  8. at App::module(['user', 'news', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['user', 'news', 'detail']], ['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('/data0/web/www.qibia...') in index.php line 19

Environment Variables

GET Data

id
74
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.qibiao.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/news/detail
SCRIPT_FILENAME
/data0/web/www.qibiao.com/public/index.php
REDIRECT_STATUS
200
SERVER_NAME
www.qibiao.com
SERVER_PORT
80
SERVER_ADDR
117.25.148.126
REMOTE_PORT
36166
REMOTE_ADDR
44.200.249.42
SERVER_SOFTWARE
nginx/1.10.2
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data0/web/www.qibiao.com/public
DOCUMENT_URI
/index.php/news/detail
REQUEST_URI
/news/detail?id=74
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
id=74
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/news/detail
REQUEST_TIME_FLOAT
1711630982.1729
REQUEST_TIME
1711630982
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data0/web/www.qibiao.com/public/../apps/
BIND_MODULE
index
THINK_VERSION
5.0.24
THINK_START_TIME
1711630982.1735
THINK_START_MEM
373992
EXT
.php
DS
/
THINK_PATH
/data0/web/www.qibiao.com/thinkphp/
LIB_PATH
/data0/web/www.qibiao.com/thinkphp/library/
CORE_PATH
/data0/web/www.qibiao.com/thinkphp/library/think/
TRAIT_PATH
/data0/web/www.qibiao.com/thinkphp/library/traits/
ROOT_PATH
/data0/web/www.qibiao.com/
EXTEND_PATH
/data0/web/www.qibiao.com/extend/
VENDOR_PATH
/data0/web/www.qibiao.com/vendor/
RUNTIME_PATH
/data0/web/www.qibiao.com/runtime/
LOG_PATH
/data0/web/www.qibiao.com/runtime/log/
CACHE_PATH
/data0/web/www.qibiao.com/runtime/cache/
TEMP_PATH
/data0/web/www.qibiao.com/runtime/temp/
CONF_PATH
/data0/web/www.qibiao.com/public/../apps/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
LOG_MODEL
{ "Article": { "model": "article", "type": "\u5185\u5bb9", "name": "title" }, "Bankaccount": { "model": "bank_account", "type": "\u5bf9\u516c\u8d26\u53f7", "name": "name" }, "Cashout": { "model": "cashout", "type": "\u63d0\u73b0\u7ba1\u7406", "name": "bank_name" }, "Index": { "model": "index", "type": "\u9996\u9875", "name": "" }, "Product": { "model": "product", "type": "\u4ea7\u54c1", "name": "product_name" }, "Tdk": { "model": "tdk", "type": "\u9996\u9875SEO", "name": "title" }, "Category": { "model": "category", "type": "\u5206\u7c7b", "name": "name" }, "Clues": { "model": "clues", "type": "\u516c\u6d77\u5ba2\u6237", "name": "name" }, "Clueslog": { "model": "clues_log", "type": "\u516c\u6d77\u5ba2\u6237\u65e5\u5fd7", "name": "" }, "Cluesrecyle": { "model": "clues_recyle", "type": "\u516c\u6d77\u56de\u6536\u7ad9", "name": "reason" }, "Columns": { "model": "columns", "type": "\u680f\u76ee", "name": "name" }, "Content": { "model": "content", "type": "\u6587\u7ae0", "name": "title" }, "Employee": { "model": "admin_user", "type": "\u5458\u5de5", "name": "nickname" }, "Facilitator": { "model": "facilitator", "type": "\u670d\u52a1\u5546", "name": "realname" }, "Facilitatorservice": { "model": "facilitator_service", "type": "\u670d\u52a1\u5546\u670d\u52a1", "name": "" }, "Highseas": { "model": "high_seas", "type": "\u516c\u6d77\u89c4\u5219", "name": "name" }, "Inquiry": { "model": "inquiry", "type": "\u95ee\u8bca", "name": "title" }, "Landpage": { "model": "land_page", "type": "\u843d\u5730\u9875", "name": "page_name" }, "Myclues": { "model": "clues", "type": "\u6211\u7684\u516c\u6d77", "name": "name" }, "Operationlog": { "model": "operation_log", "type": "\u64cd\u4f5c\u65e5\u5fd7", "name": "" }, "Partner": { "model": "partner", "type": "\u5408\u4f19\u4eba", "name": "realname" }, "Payments": { "model": "payments", "type": "\u8d22\u52a1", "name": "order_no" }, "Recylereasons": { "model": "clues_recyle_reasons", "type": "\u516c\u6d77\u5ba2\u6237\u5220\u9664\u539f\u56e0", "name": "reason" }, "Searchkey": { "model": "search_key", "type": "\u5173\u952e\u5b57\u641c\u7d22", "name": "title" }, "Services": { "model": "services", "type": "\u670d\u52a1", "name": "service_name" }, "Servicespackage": { "model": "services_package", "type": "\u670d\u52a1\u5305", "name": "package_name" }, "Sms": { "model": "sms_code", "type": "\u77ed\u4fe1", "name": "mobile" }, "Spread": { "model": "spread", "type": "\u63a8\u5e7f", "name": "spread_name" }, "Spreadtype": { "model": "spread_type", "type": "\u63a8\u5e7f\u7c7b\u578b", "name": "chs_name" }, "Thirdparty": { "model": "third_party_account", "type": "\u7b2c\u4e09\u65b9\u8d26\u53f7\u7ba1\u7406", "name": "name" }, "Users": { "model": "users", "type": "\u5ba2\u6237", "name": "nick_name" }, "Workorder": { "model": "work_order", "type": "\u5de5\u5355", "name": "title" }, "Orders": { "model": "orders", "type": "\u8ba2\u5355", "name": "service_name" }, "Diyfromtype": { "model": "diyfrom_type", "type": "\u8868\u5355\u52a8\u6001\u5316\u5b57\u6bb5\u7c7b\u578b", "name": "name" }, "Diyfrommould": { "model": "diyfrom_mould", "type": "\u81ea\u5b9a\u4e49\u8868\u5355\u6a21\u578b", "name": "name" } }
LOG_ACTION
[ "index", "add", "edit", "login", "logout", "status", "delete", "content_add", "takeover", "takeover_all", "allocation", "allocation_all" ]
RUNTIME_ENV
online
SUB_DOMAIN
www
SMARTY_DIR
/data0/web/www.qibiao.com/vendor/smarty/smarty/libs/
SMARTY_SYSPLUGINS_DIR
/data0/web/www.qibiao.com/vendor/smarty/smarty/libs/sysplugins/
SMARTY_PLUGINS_DIR
/data0/web/www.qibiao.com/vendor/smarty/smarty/libs/plugins/
SMARTY_MBSTRING
true
SMARTY_RESOURCE_CHAR_SET
UTF-8
SMARTY_RESOURCE_DATE_FORMAT
%b %e, %Y