Invalid rss feed: error message, Warning: Cannot modify header information

Discussion in 'Blogging' started by MarRome, Feb 10, 2006.

  1. #1
    Hello,

    Im just starting out in blogging and im having a problem
    with my rss feed, at first it worked and im not sure if or
    how i may have messed this up.

    When i click on the rss link at the site is get this:

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/stormpayblog.com/index.php:2) in /home/www/stormpayblog.com/wp-rss2.php on line 10

    And i get this message at feedvalidator.org

    This feed does not validate.
    Feeds should not be served with the "text/html" media type
    line 2, column 0: Undefined root element: br <br />
    line 3, column 0: XML parsing error: <unknown>:3:0: junk after document element <b>Warning</b>: Cannot modify header information - headers already sent by ...Source: http://stormpayblog.com/feed/
    <br /> <b>Warning</b>: Cannot modify header information - headers
    already sent by (output started at home/www/stormpayblog.com/index.php:2) in
    <b>/home/www/stormpayblog.com/wp-rss2.php</b> on line <b>10</b><br />

    Can anyone help, i have no idea how to fix this.

    Thanks
     
    MarRome, Feb 10, 2006 IP
  2. Neoto

    Neoto Active Member

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #2
    Have you modified the /home/www/stormpayblog.com/index.php recently? Could you paste it here? The error message says that the problem is on the second line.
     
    Neoto, Feb 11, 2006 IP
  3. sixty6

    sixty6 Well-Known Member

    Messages:
    1,748
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    190
    #3
    I recieved an error similar to this. It was for something because I called the header function twice on the same page. But I don't understand how that affects the RSS Feed.

    I'm sorry, but I cannot be of more help with this problem. I suggest asking someone specialized in PHP or just simply getting a new theme.
     
    sixty6, Feb 13, 2006 IP