• 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/&#8221;
    xmlns:dc=”https://purl.org/dc/elements/1.1/&#8221;
    >

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I was thinking white spaces too. Hm.

    Because the headers, and the cookies inside the headers, need to be sent before the session output, you’ll see that error — again, if it’s not a white space issue.

    Try clearing your browser cache thoroughly before the session_start(); command. If that doesn’t work, do a quick manual wp-cron to move your previous session thru the server. You can do that by simply typing YourBlogName.com/wp-cron.php in the browser and clicking Go.

    Btw, all you’ll see from that is a blank and/or white screen. It’s only a command.

    .

    Thread Starter sugarbear

    (@sugarbear)

    How exactly do I clear the cache? I know very little about the behind-the-scenes stuff regarding WP. But if you walk me through it, I am familiar enough to know where to look.

    Thanks again!

    Oh and I did run that wp-chron process.

    There are lots of ways to clear cache…..

    I use a free program called CCleaner (about 10 x a day!) and keep it on my Desktop. You can download it from Download.com (Cnet). Just do a search for CCleaner. Anyway, once it’s installed, you click:

    1. Windows Tab button
    2. Tools Button
    3. Hit “Run Cleaner”

    * as with any suggested program, make sure you know what you’re doing and check with the software’s user guide before using.

    To clear browser cache manually, if you don’t use CCleaner:

    Firefox 2.0
    1. Click Tools and select Options.
    2. Click the Advanced icon and click the Network tab.
    3. Click Clear Now under the Cache section.
    4. Click Ok.
    5. Exit and relaunch the browser.

    Firefox 1.5
    1. Click Tools and select Options.
    2. Click the Privacy icon.
    3. Click the Cache tab and click Clear Cache Now.
    4. Click Ok.
    5. Exit and relaunch the browser.

    IE7
    1. Click Start and select Settings, then Control Panel.
    2. Double-click Internet Options.
    3. Click the General tab.
    4. Click Delete under the Browsing History section.
    5. Click Delete Files in the Delete Browsing History dialog box.
    6. Click Close.
    7. Click OK.
    8. Close and relaunch your browser.

    To clear WP cache (move jobs through server), just run wp-cron.php.

    your error is php error and has nothing to do with cache…the error is occuring on your website before its even sent to you.

    What’s happening is that you are sending the php ‘header’ command a second time. which is like trying start a new page from a page you just started.

    Google “php header” or check out https://us.php.net/header

    I am having the same problem on my website, I believe that it is a php error. how do i fix it? How do I stop sendng the php ‘header’ command a second time?

    this is my error:
    Warning: Cannot modify header information – headers already sent by (output started at /home/****/public_html/***/wp-content/themes/gentle-calm-10/photoalbum-resources.php:227) in /home/****/public_html/***/wp-includes/feed-rss2.php on line 8

    this is my line 8:
    header(‘Content-Type: text/xml; charset=’ . get_option(‘blog_charset’), true);

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot modify header information – headers already sent’ is closed to new replies.