Cannot modify header information – headers already sent
-
The following is the error I keep getting:
PHP Warning: Cannot modify header information – headers already sent by (output started at /*****/******/public_html/wp-includes/wp-db.php:132) in /******/******/public_html/wp-includes/feed-rss2-comments.php on line 2
This is the first few lines of the feed-rss2-comments.php file
<?php
header(‘Content-type: text/xml;charset=’.get_option(‘blog_charset’), true);
echo ‘<?xml version=”1.0″ encoding=”‘.get_option(‘blog_charset’).'”?’.’>’;
?>
<!– generator=”wordpress/<?php echo $wp_version ?>” –>
<rss version=”2.0″
xmlns:content=”https://purl.org/rss/1.0/modules/content/”
xmlns:dc=”https://purl.org/dc/elements/1.1/”
>Is there something that I need to comment out here? I have checked over and over again and have not found any extra white spaces.
Thanks for the help!
- The topic ‘Cannot modify header information – headers already sent’ is closed to new replies.