【问题标题】:Body and Footer gone on homepage and error message after clearing cache Drupal 7清除缓存 Drupal 7 后,正文和页脚出现在主页上并出现错误消息
【发布时间】:2012-07-14 00:53:24
【问题描述】:

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

警告:include(page-front.php) [function.include]: 未能打开 流:include() 中没有这样的文件或目录(第 14 行) /home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php)。 警告:include(page-front.php) [function.include]: 未能打开 流: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') 在 包括()(第 14 行 /home/anthonyd/public_html/graphicimpress/sites/all/themes/gi_0612/page.tpl.php)。

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

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

【问题讨论】:

    标签: drupal drupal-7


    【解决方案1】:

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

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

    【讨论】:

    • 呃..它总是那么明显,不是吗?!非常感谢您的帮助
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-07-06
    • 1970-01-01
    • 2012-05-12
    • 1970-01-01
    • 2017-01-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多