PHP和wordpress错误-无法修改标题


php and wordpress error - cannot modify header

我正在创建一个wordpress博客,我有以下警告不断出现,

警告:无法修改报头信息-报头已由(输出开始于/home/content/66/7511066/html/zen/wp-content/themes/ZenOfficePortfolio/显然也:20)在/home/content/66/7511066/html/zen/wp-includes/pluggable.php中上线934

当我在我的机器上本地尝试这段代码时,它工作得很好。然而,当我将代码转移到托管网站时,我一直得到错误

my functions.php如下所示

<?php
    if(function_exists('register_sidebar')){
        register_sidebar(array('name' => 'ZenOffice'));
    } 
        add_filter('comments_template', 'legacy_comments');
    function legacy_comments($file) {
        if ( !function_exists('wp_list_comments') ) 
            $file = TEMPLATEPATH . '/old-comments.php';
        return $file;
    }
    //Set the theme categories
    define('BLOG',15);
    define('PORTFOLIO',14);
?>

我想我已经解决了,

我只是确保没有@Pekka建议的空白。然后我重新上传了文件