RSS call Error

Status
Not open for further replies.

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
chek your code, as it seems like it sends the header twice

It's some really messed up source is the real problem; it's sending two headers, one HTML and one RSS.

Code:
<!DOCTYPE html 
      PUBLIC "-//W3C//DTD HTML 4.01//EN"
      "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head profile="http://www.w3.org/2005/10/profile">
<link rel="icon" 
      type="image/x-icon" 
      href="[URL="http://forums.x10hosting.com/view-source:http://geekinfo.co.cc/favicon"]/favicon[/URL]">
      <br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/sunsimo/public_html/index.php:9) in <b>/home/sunsimo/public_html/blog/wp-includes/feed-rss2.php</b> on line <b>7</b><br />
sim2x: did you code this yourself? And if so, why did you have it send the headers for an HTML document first? Something is really off in the code; right below what I just pasted, the RSS feed begins, and from there it looks fine. Whatever your index.php is in your code, it needs some tweaking so it doesn't send the HTML headers, THEN send the feed data; it should just send the feed.
 
Status
Not open for further replies.
Top