【问题标题】:Fatal error: Call to undefined function get_header() in index.php on line 2致命错误:在第 2 行的 index.php 中调用未定义函数 get_header()
【发布时间】:2012-04-21 04:59:11
【问题描述】:

有同样的问题,我是 php 的新手。我安装 XAMPP 然后从 wordpress 下载孵化主题。当我运行 index.php 时,它给了我以下错误

“致命错误:在 C:\xampp\htdocs\hatch\index.php 第 1 行调用未定义函数 get_header()”

任何人都可以帮助解决这个问题。谢谢

【问题讨论】:

    标签: php wordpress themes xampp wordpress-theming


    【解决方案1】:

    您需要安装 wordpress,然后才能应用主题。据我所知,你不能自己运行 WP 主题。

    【讨论】:

      【解决方案2】:

      要解决此问题,您需要安装 wordpress,然后将文件移动到主题文件夹,如下所示: wp-content/themes/yourwebsitefiles

      【讨论】:

        猜你喜欢
        • 2012-04-21
        • 2011-04-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-10-27
        • 2017-09-03
        • 1970-01-01
        • 2011-07-07
        相关资源
        最近更新 更多