WordPress.org

Ready to get started?Download WordPress

Forums

RSS Feed Header Question (7 posts)

  1. rgockley
    Member
    Posted 5 years ago #

    I want to start by saying that I've been through this blog in search of this answer. I've checked the wp-rss.php, wp-atom.php, wp-config and the themes functions.php files for blank lines outside of <? ?>. I also deactiveted plugins and reactivated.

    For your reference, I added the unedited index.php code to a table in the web template and removed the head section in the template so it doesn't conflict with the head load for the blog. These are the first 7 lines of the index.php file. The last line of this code is line 7 called out in the error found at the bottom of this post.

    <html>
    <link href="../inline.css" rel="stylesheet" type="text/css" media="all">
    <!-- #BeginTemplate "../../Conestoga%20Web.data/Templates/blog.html" -->
    <body bgcolor="#cdc9ae" link="white" vlink="white" alink="white" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr height="99">
    <td valign="top" bgcolor="#cdc9ae" width="137" height="99" background="../pages/images/left-header.jpg"></td>

    Below this line is the error code I'm getting
    ....................................................................

    Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\conestogalogcabins.com\httpdocs\blog\index.php:7) in C:\Inetpub\vhosts\conestogalogcabins.com\httpdocs\blog\wp-includes\feed-rss2-comments.php on line 2
    http://conestogalogcabins.com/blog Thu, 02 Apr 2009 14:14:50 +0000 http://wordpress.org/?v=2.3.3

  2. rgockley
    Member
    Posted 5 years ago #

    A question to add to the previous post.

    Does the WordPress code automatically establish the RSS feed for the two links below so it would be like http://www.domain.com/blog/feed

    Entries (RSS) and Comments (RSS).

  3. rgockley
    Member
    Posted 5 years ago #

    Can I assume at this point that no one is aware of a way for the feed header information to advance ahead of a few lines of web template code when the RRS pages are called.

  4. iridiax
    Member
    Posted 5 years ago #

  5. rgockley
    Member
    Posted 5 years ago #

    Thanks iridiax.

    I've been to this page and did all that is listed here.

    When I take the index page out of my template and reload it by itself the RSS link works. The issue isn't with extra spaces in the code.

    The issue is getting the blog header to load prior to the first line of code in the web template. I removed all the <head> tags and everything between them in the web template thinking it would resolve the problem but it still produces the error message "Cannot modify header information - headers already sent by...". The remaining error message is in my original post.

    Any Ideas

  6. iridiax
    Member
    Posted 5 years ago #

    I added the unedited index.php code to a table in the web template and removed the head section in the template so it doesn't conflict with the head load for the blog.

    I had only noticed your "headers already sent" warning (a common issue for forum posters), but looking at your code I'm confused as to what you are trying to do. Maybe see:

    http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website

    http://codex.wordpress.org/Stepping_Into_Templates
    http://codex.wordpress.org/Templates
    http://codex.wordpress.org/Theme_Development

  7. rgockley
    Member
    Posted 5 years ago #

    I'm wanting to add the blog to an existing page template.

    You can see it here.
    http://www.conestogalogcabins.com/blog

    When the index is included in the template you can see at this link the RSS feed links at the bottom create the error at the top of the post.

    When I upload the index page code by itself the rss feed links work.

Topic Closed

This topic has been closed to new replies.

About this Topic