未定义的函数get_header()

时间:2019-03-16 15:05:43

标签: php html wordpress

我有一个麻烦,就是Wordpress说我的主题已损坏并且无法正常工作。

昨天效果很好,但是今天我空白了。 我打开了chrome开发人员工具来浏览页面,没有页眉也没有页脚。 然后我发现了这个错误:

未捕获的错误:调用C:\ xampp \ htdocs \ wordpress \ wp-content \ themes \ carpark \ index.php:14中的未定义函数get_header()堆栈跟踪:#0 {main}抛出了C:\ xampp第14行的\ htdocs \ wordpress \ wp-content \ themes \ carpark \ index.php

这是我的index.php文件中的第14行:

Incentive

我不知道为什么这行不通,因为昨天行之有效...

1 个答案:

答案 0 :(得分:0)

https://codex.wordpress.org/Function_Reference/get_header

确保您的php文件包含worepress,您可以尝试运行其他功能

您可以上传您的php文件...