• anusaya

    (@anusaya)


    My website began with a feed, which recently turned to a blank page (in both feedburner and rss2). my-site/feed returns a 404 error but redirects to feed instead of the file path” rss2. I run a twin site, the twin has not had any problems. Both run the same plugins and backend.

    Installed: WordPress 2.9.1.
    Custom Structure permalinks: /%category%/%postname%/
    rss2
    feedburner valid feed
    rss2 valid feed
    mysite/feed 404 error

    I have tried rss fix, resync and some other editing hacks. Nothing works. Custom Structure permalinks seems to be the main culprit? Even though the other site is running it too. At least I think so. I don’t want to change it unless I have too.

    Is there a fix? Please, point me in the right direction. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter anusaya

    (@anusaya)

    PBP_Editor

    (@pbp_editor)

    Have you edited the rss php files?

    /wp-includes/feed-rss.php
    /wp-includes/feed-rss2.php

    This might have more to do with rewrite rules than with the permalink structure.

    http://codex.wordpress.org/Function_Reference/WP_Rewrite

    What does your htaccess look like?

    Thread Starter anusaya

    (@anusaya)

    Thank you for answering and I will definitely read that.

    I did edit the files, then replaced them with copies of the originals when nothing was resolved.

    htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC]
    RewriteRule . - [L]
    </IfModule> 
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thread Starter anusaya

    (@anusaya)

    Just encase someone can see something I can’t….

    wp-includes/feed-rss.php

    <?php
    /**
     * RSS 0.92 Feed Template for displaying RSS 0.92 Posts feed.
     *
     * @package WordPress
     */
    
    header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
    $more = 1;
    
    echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
    <?php the_generator( 'comment' ); ?>
    <rss version="0.92">
    <channel>
    	<title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    	<link><?php bloginfo_rss('url') ?></link>
    	<description><?php bloginfo_rss('description') ?></description>
    	<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
    	<docs>http://backend.userland.com/rss092</docs>
    	<language><?php echo get_option('rss_language'); ?></language>
    	<?php do_action('rss_head'); ?>
    
    <?php while (have_posts()) : the_post(); ?>
    	<item>
    		<title><?php the_title_rss() ?></title>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    		<link><?php the_permalink_rss() ?></link>
    		<?php do_action('rss_item'); ?>
    	</item>
    <?php endwhile; ?>
    </channel>
    </rss>

    /wp-includes/feed-rss2.php

    <?php
    /**
     * RSS2 Feed Template for displaying RSS2 Posts feed.
     *
     * @package WordPress
     */
    
    header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
    $more = 1;
    
    echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
    
    <rss version="2.0"
    	xmlns:content="http://purl.org/rss/1.0/modules/content/"
    	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    	xmlns:dc="http://purl.org/dc/elements/1.1/"
    	xmlns:atom="http://www.w3.org/2005/Atom"
    	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    	<?php do_action('rss2_ns'); ?>
    >
    
    <channel>
    	<title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    	<link><?php bloginfo_rss('url') ?></link>
    	<description><?php bloginfo_rss("description") ?></description>
    	<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
    	<?php the_generator( 'rss2' ); ?>
    	<language><?php echo get_option('rss_language'); ?></language>
    	<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
    	<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    	<?php do_action('rss2_head'); ?>
    	<?php while( have_posts()) : the_post(); ?>
    	<item>
    		<title><?php the_title_rss() ?></title>
    		<link><?php the_permalink_rss() ?></link>
    		<comments><?php comments_link(); ?></comments>
    		<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    		<dc:creator><?php the_author() ?></dc:creator>
    		<?php the_category_rss() ?>
    
    		<guid isPermaLink="false"><?php the_guid(); ?></guid>
    <?php if (get_option('rss_use_excerpt')) : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    <?php else : ?>
    		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    	<?php if ( strlen( $post->post_content ) > 0 ) : ?>
    		<content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded>
    	<?php else : ?>
    		<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
    	<?php endif; ?>
    <?php endif; ?>
    		<wfw:commentRss><?php echo get_post_comments_feed_link(null, 'rss2'); ?></wfw:commentRss>
    		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
    <?php rss_enclosure(); ?>
    	<?php do_action('rss2_item'); ?>
    	</item>
    	<?php endwhile; ?>
    </channel>
    </rss>
    Thread Starter anusaya

    (@anusaya)

    Still, no resolution. To date, I have disabled every plugin – one at a time and replaced all the rss files. I am still confused.

    Thread Starter anusaya

    (@anusaya)

    Forgot, I also reverted to the default theme.

    Oddly, the more I read up on this (a few people have voiced my theory) and on looking at the my own sites last working feed. It coordinates with my last update and the permalinks structure of categories.

    Any other theories?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘RSS FEED page is Blank’ is closed to new replies.