[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/data/work/html/acgyccom/application/officialweb/view/about/factory.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('', ['all_categorys' => [['id' => '1', 'pId' => '0', 'name' => '品牌中心', ...], 'sort-1' => ['id' => '1', 'pId' => '0', 'name' => '品牌中心', ...], 'pinpaizhongxin' => ['id' => '1', 'pId' => '0', 'name' => '品牌中心', ...], ...], 'all_column' => [['id' => '1', 'pId' => '0', 'name' => '品牌中心', ...], ['id' => '2', 'pId' => '0', 'name' => '品牌加盟', ...], ['id' => '3', 'pId' => '0', 'name' => '产品中心', ...], ...], 'column_list' => [['id' => '1', 'pId' => '', 'name' => '品牌中心', ...], ['id' => '2', 'pId' => '', 'name' => '品牌加盟', ...], ['id' => '3', 'pId' => [['id' => '8', 'pId' => '', 'name' => '窗系统', ...], ['id' => '9', 'pId' => '', 'name' => '门系统', ...], ['id' => '10', 'pId' => '', 'name' => '阳光房', ...]], 'name' => '产品中心', ...], ...], ...], []) in View.php line 163
  3. at View->fetch('', ['res_data' => object(Bootstrap), 'page' => '<div class="m-pages"...'], [], []) in Controller.php line 120
  4. at Controller->fetch('', ['res_data' => object(Bootstrap), 'page' => '<div class="m-pages"...']) in About.php line 48
  5. at About->factory()
  6. at ReflectionMethod->invokeArgs(object(About), []) in App.php line 343
  7. at App::invokeMethod([object(About), 'factory'], []) in App.php line 611
  8. at App::module(['officialweb', 'About', 'factory'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['officialweb', 'About', 'factory'], '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('/data/work/html/acgy...') in index.php line 17

Environment Variables

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

Server/Request Data

REDIRECT_PATH_INFO
gongchangzhaopian
REDIRECT_STATUS
200
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.acgyc.com
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
<address>Apache Server at www.acgyc.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.acgyc.com
SERVER_ADDR
172.18.104.89
SERVER_PORT
80
REMOTE_ADDR
3.230.128.106
DOCUMENT_ROOT
/data/work/html/acgyccom
SERVER_ADMIN
root@localhost
SCRIPT_FILENAME
/data/work/html/acgyccom/index.php
REMOTE_PORT
51874
REDIRECT_URL
/gongchangzhaopian
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/gongchangzhaopian
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710841534.966
REQUEST_TIME
1710841534
PATH_INFO
gongchangzhaopian
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/work/html/acgyccom/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1710841534.9688
THINK_START_MEM
254448
EXT
.php
DS
/
THINK_PATH
/data/work/html/acgyccom/thinkphp/
LIB_PATH
/data/work/html/acgyccom/thinkphp/library/
CORE_PATH
/data/work/html/acgyccom/thinkphp/library/think/
TRAIT_PATH
/data/work/html/acgyccom/thinkphp/library/traits/
ROOT_PATH
/data/work/html/acgyccom/
EXTEND_PATH
/data/work/html/acgyccom/extend/
VENDOR_PATH
/data/work/html/acgyccom/vendor/
RUNTIME_PATH
/data/work/html/acgyccom/runtime/
LOG_PATH
/data/work/html/acgyccom/runtime/log/
CACHE_PATH
/data/work/html/acgyccom/runtime/cache/
TEMP_PATH
/data/work/html/acgyccom/runtime/temp/
CONF_PATH
/data/work/html/acgyccom/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false