im creating a wordpress blog and im having the following warning that keeps coming up,
Warning: Cannot modify header information - headers already sent by (output started at /home/content/66/7511066/html/zen/wp-content/themes/ZenOfficePortfolio/functions.php:20) in /home/content/66/7511066/html/zen/wp-includes/pluggable.php on line 934
when i tried this code locally on my machine, it worked fine. however when i moved the code over to the hosting website, i keep getting the error
my functions.php is as follows
<?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);
?>