• [0] TemplateNotFoundException in Think.phphtml line 80

    模板文件不存在:/data/wwwroot/hhjsgw/public/../application/home/view/about/repair.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.phphtml line 80
    2. at Think->fetch('', ['userInfo' =>null, 'menu' => ['index' => ['id' => 1, 'title' => '首页', 'model' => 'index', ...], 'loupan' => ['id' => 2, 'title' => '美高梅平台', 'model' => 'loupan', ...], 'second' => ['id' => 3, 'title' => '产品服务', 'model' => 'second', ...], ...], 'seo' => ['title' => '...', 'keys' => '...', 'desc' => ''], ...], []) in View.phphtml line 159
    3. at View->fetch('', [], [], []) in Controller.phphtml line 111
    4. at Controller->fetch() in About.phphtml line 94
    5. at About->repair()
    6. at ReflectionMethod->invokeArgs(object(About), []) in App.phphtml line 196
    7. at App::invokeMethod([object(About), 'repair'], []) in App.phphtml line 408
    8. at App::module(['home', 'about', 'repair'], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...], null) in App.phphtml line 295
    9. at App::exec(['type' => 'module', 'module' => ['home', 'about', 'repair']], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...]) in App.phphtml line 123
    10. at App::run() in start.phphtml line 17
    11. at require('/data/wwwroot/hhjsgw...') in index.phphtml line 18

    Environment Variables

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

    Server/Request Data

    TEMP
    /tmp
    TMPDIR
    /tmp
    TMP
    /tmp
    PATH
    /usr/local/bin:/usr/bin:/bin
    USER
    www
    HOME
    /home/www
    FCGI_ROLE
    RESPONDER
    PATH_INFO
    /about/repair.html
    SCRIPT_FILENAME
    /data/wwwroot/hhjsgw/public/index.phphtml
    QUERY_STRING
    REQUEST_METHOD
    GET
    CONTENT_TYPE
    CONTENT_LENGTH
    SCRIPT_NAME
    /index.phphtml
    REQUEST_URI
    /about/repair.html
    DOCUMENT_URI
    /index.phphtml/about/repair.html
    DOCUMENT_ROOT
    /data/wwwroot/hhjsgw/public
    SERVER_PROTOCOL
    HTTP/1.1
    REQUEST_SCHEME
    http
    GATEWAY_INTERFACE
    CGI/1.1
    SERVER_SOFTWARE
    nginx/1.14.2
    REMOTE_ADDR
    23.248.195.66
    REMOTE_PORT
    51318
    SERVER_ADDR
    10.119.161.86
    SERVER_PORT
    80
    SERVER_NAME
    cbbabq.com
    REDIRECT_STATUS
    200
    HTTP_HOST
    www.cbbabq.com
    HTTP_ACCEPT
    */*
    HTTP_USER_AGENT
    Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
    PHP_SELF
    /index.phphtml/about/repair.html
    REQUEST_TIME_FLOAT
    1568587469.6116
    REQUEST_TIME
    1568587469
    Environment Variables
    empty

    ThinkPHP Constants

    APP_PATH
    /data/wwwroot/hhjsgw/public/../application/
    THINK_VERSION
    5.0.10
    THINK_START_TIME
    1568587469.6118
    THINK_START_MEM
    232760
    EXT
    .phphtml
    DS
    /
    THINK_PATH
    /data/wwwroot/hhjsgw/thinkphp/
    LIB_PATH
    /data/wwwroot/hhjsgw/thinkphp/library/
    CORE_PATH
    /data/wwwroot/hhjsgw/thinkphp/library/think/
    TRAIT_PATH
    /data/wwwroot/hhjsgw/thinkphp/library/traits/
    ROOT_PATH
    /data/wwwroot/hhjsgw/
    EXTEND_PATH
    /data/wwwroot/hhjsgw/extend/
    VENDOR_PATH
    /data/wwwroot/hhjsgw/vendor/
    RUNTIME_PATH
    /data/wwwroot/hhjsgw/runtime/
    LOG_PATH
    /data/wwwroot/hhjsgw/runtime/log/
    CACHE_PATH
    /data/wwwroot/hhjsgw/runtime/cache/
    TEMP_PATH
    /data/wwwroot/hhjsgw/runtime/temp/
    CONF_PATH
    /data/wwwroot/hhjsgw/public/../application/
    CONF_EXT
    .phphtml
    ENV_PREFIX
    PHP_
    IS_CLI
    false
    IS_WIN
    false