清除缓存Drupal 7后,正文和页脚在主页上显示错误消息

时间:2012-07-14 00:53:24

标签: drupal drupal-7

我最近在我的网站上工作并决定清除所有缓存,现在主页只显示标题而没有别的。所有其他页面工作正常但我确实收到此错误:

  

警告:include(page-front.php)[function.include]:无法打开   stream:include()中的第14行没有这样的文件或目录   /home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php)。   警告:include(page-front.php)[function.include]:无法打开   stream:include()中的第14行没有这样的文件或目录   /home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php)。   警告:include()[function.include]:打开'page-front.php'失败   包含(include_path ='。:/ usr / lib / php:/ usr / local / lib / php')in   include()(第14行)   /home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php)。

我确实看到了其他人发布的一个非常类似的问题,但它是针对drupal 6而修复的是通过访问admin / build / modules来重建模块 并通过访问admin / build / themes重建主题。不幸的是,D7没有相同的菜单选项。

有没有人知道如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

在第14行的/home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php文件中,函数include('page-front.php')尝试将文件page-front.php包含到page.tpl.php中,但没有page-front.php这样的文件。

确保此文件(page-front.php)存在,或从include('page-front.php')删除page.tpl.php

相关问题