0

自从我迁移了我的页面后,我收到了这条烦人的警告信息。当我保存更改以保存任何内容(帖子,设置......)和上传图像(这就是我注意到它的地方)时,它会显示出来。消息如下:

Cannot modify header information - headers already sent by (output started at path/to/theme/functions.php:1)  in /path/to/wp/wp-includes/pluggable.php on line 881

现在我知道在调用标头之前有内容输出到浏览器时应该显示此消息。但是我的functions.php很清楚,至少在dreamweaver中看起来是这样的:

<?php
add_theme_support( 'post-thumbnails' );

add_action...

我看不到那里没有输出...怎么了?我之前在测试域上没有收到消息。

4

1 回答 1

0

您的 functions.php 文件可能使用UTF8 BOM编码。

您应该尝试在没有 BOM 的情况下对其进行编码,您可以使用例如 notepad++ 来实现这一点。

于 2012-09-25T06:59:03.170 回答