安装完毕,提示错误

BUG反馈
4 1525
http://www.tmdbox.com[0] TemplateNotFoundException in Think.php line 82模板文件不存在:./template//pc/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('./template//pc/index...', ['tpto' => [['id' => 1, 'tid' => 0, 'name' => '设计素材', ...], ['id' => 2, 'tid' => 0, 'name' => '灵感酷站', ...], ['id' => 3, 'tid' => 0, 'name' => '高清图库', ...], ...], 'GZdh' => [['id' => 1, 'name' => '新闻', 'links' => '/news.html', ...], ['id' => 2, 'name' => '排行榜', 'links' => '/top.html?type=today', ...], ['id' => 3, 'name' => '社区', 'links' => 'https://www.guojiz.c...', ...]], 'guojizgg' => [['id' => 5, 'pic' => '/uploads/20190613/9a...', 'time' => '1560080841', ...], ['id' => 2, 'pic' => '/uploads/20190613/61...', 'time' => '1559729270', ...], ['id' => 1, 'pic' => '/uploads/20190613/cf...', 'time' => '1559657278', ...]], ...], []) in View.php line 163
  3. at View->fetch('', ['tpto' => [['id' => 1, 'tid' => 0, 'name' => '设计素材', ...], ['id' => 2, 'tid' => 0, 'name' => '灵感酷站', ...], ['id' => 3, 'tid' => 0, 'name' => '高清图库', ...], ...], 'GZdh' => [['id' => 1, 'name' => '新闻', 'links' => '/news.html', ...], ['id' => 2, 'name' => '排行榜', 'links' => '/top.html?type=today', ...], ['id' => 3, 'name' => '社区', 'links' => 'https://www.guojiz.c...', ...]], 'guojizgg' => [['id' => 5, 'pic' => '/uploads/20190613/9a...', 'time' => '1560080841', ...], ['id' => 2, 'pic' => '/uploads/20190613/61...', 'time' => '1559729270', ...], ['id' => 1, 'pic' => '/uploads/20190613/cf...', 'time' => '1559657278', ...]], ...], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...]) in View.php line 36
  4. at View->output('') in Response.php line 309
  5. at Response->getContent() in Response.php line 94
  6. at Response->send() in start.php line 19
  7. at require('/www/wwwroot/tmdbox....') in index.php line 20
Environment Variables

GET DataemptyPOST DataemptyFilesempty

Cookies

PHPSESSID g6erq97s597768ro6679tlk514 Sessionempty

Server/Request Data

USER www HOME /home/www HTTP_COOKIE PHPSESSID=g6erq97s597768ro6679tlk514 HTTP_CONNECTION Keep-Alive HTTP_HOST www.tmdbox.com HTTP_ACCEPT_ENCODING gzip, deflate HTTP_UPGRADE_INSECURE_REQUESTS 1 HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_LANGUAGE zh-CN HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134 PATH_INFOREDIRECT_STATUS 200 SERVER_NAME tmdbox.com SERVER_PORT 80 SERVER_ADDR 172.16.0.10 REMOTE_PORT 40264 REMOTE_ADDR 120.229.11.225 SERVER_SOFTWARE nginx/1.8.1 GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 DOCUMENT_ROOT /www/wwwroot/tmdbox.com DOCUMENT_URI /index.php REQUEST_URI / SCRIPT_NAME /index.php CONTENT_LENGTHCONTENT_TYPEREQUEST_METHOD GET QUERY_STRINGSCRIPT_FILENAME /www/wwwroot/tmdbox.com/index.php FCGI_ROLE RESPONDER PHP_SELF /index.php REQUEST_TIME_FLOAT 1561231985.4657 REQUEST_TIME 1561231985 Environment Variablesempty

ThinkPHP Constants

WEB_URLAPP_PATH ./application/ BIND_MODULE index THINK_VERSION 5.0.24 THINK_START_TIME 1561231985.4661 THINK_START_MEM 383152 EXT .php DS / THINK_PATH /www/wwwroot/tmdbox.com/thinkphp/ LIB_PATH /www/wwwroot/tmdbox.com/thinkphp/library/ CORE_PATH /www/wwwroot/tmdbox.com/thinkphp/library/think/ TRAIT_PATH /www/wwwroot/tmdbox.com/thinkphp/library/traits/ ROOT_PATH /www/wwwroot/tmdbox.com/ EXTEND_PATH /www/wwwroot/tmdbox.com/extend/ VENDOR_PATH /www/wwwroot/tmdbox.com/vendor/ RUNTIME_PATH /www/wwwroot/tmdbox.com/runtime/ LOG_PATH /www/wwwroot/tmdbox.com/runtime/log/ CACHE_PATH /www/wwwroot/tmdbox.com/runtime/cache/ TEMP_PATH /www/wwwroot/tmdbox.com/runtime/temp/ CONF_PATH ./application/ CONF_EXT .php ENV_PREFIX PHP_ IS_CLI false IS_WIN false ThinkPHP

V5.0.24

{ 十年磨一剑-为API开发设计的高性能框架 }


  • 梦雨 梦雨
    2019-06-23 07:14:56
    #1楼 回复

    开启伪静态看下

  • 梦雨 梦雨
    2019-06-23 02:39:39
    #2楼 回复

    重新下载新版安装

  • 梦雨 梦雨
    2019-06-23 06:33:30
    #3楼 回复

    网站配置基本配置里面要填写东西不能为空



  • 桔子 桔子
    2019-06-24 01:02:48
    #4楼 回复

    搞定了,模板哪里要写默认default


  • 自助授权 国外免备案服务器推荐 官方qq群826939491 Guojiz成功案例展示
    精选帖子
    国际导航30多款模板进行免费 96
    国际导航采集扩展 2397
    api接口使用教程【v3.1.3】 1161
    使用本系统搭建违法,触犯,站点公告 1215
    虚拟主机安装出现数据连接失败解决方案 1183
    国际网址导航新版标签大全 3353
    关于2.4之前版本想转3.0新版教程 2277
    国际网址导航全新3.5版本下载(2020-08-09) 10452
    Guojiz网址导航系统V2.3.7正式版 2169
    热门帖子
    建议出个专门的小程序板块 995
    后台关闭置顶推荐没反应教程 988
    GifCam动态图录制工具 982
    为什么搭建后。提交这些都是404 977
    【918回忆】新导航-美化代码收集【20.6.14日更新】 976
    分享一个404单页 963
    为了获得更好的SEO,请不要将所有鸡蛋都放在SEO篮子里 96
    国际导航30多款模板进行免费 96
    【请教】我想将导航头部的搜索功能搜索的是文章和站点,怎么写代码 955