修改HeyLucy主题遇到RSS输出错误

修改使用基于HeyLucy的主题遇到RSS输出错误。

初步确定问题出在functions.php。为了减少插件使用,将相关日志及分页等功能封装到functions中,出了问题。

在GOOGLE上查询WP RSS错误,找到了问题所在,看来这个问题也很常见:

Have a look through your wp-config.php, plugins and/or your theme’s function.php files.

In all cases, there should be no spaces or blank lines before the opening <?php tag. Also in all cases there should be no spaces or blank lines after the final ?> as well.

检查你的wp-config.php、插件以及主题中的function.php文件。任何情况下,在开头的“<?php”标签以前,以及最后的“?>”标签以后,都不能有空格或者空行。

经过仔细检查,发现某个文件最后有一行空白行。删掉空行,上传文件,问题解决。

Leave a Comment