My First Car, Honda City 2009
 

Fix Wordpress 1.5.1 RSS Error

Filed in: WordPress — May 14th, 2005

advertisement

The newly realeased Wordpress 1.5.1 has possible bug in RSS feed. If your WP 1.5.1 feed does not work, try the following fix.

The problem:
The feeds are not accurate, and returning with error 304
The "/feed" page which should reflect the entire install's feed is only outputting a feed when a new entry is produced, and, after what seems to be 24 hours, returns to a state of nul.

The solution:
In wp-blogheader.php, line 136 locate:

PHP:
  1. if ( ($client_last_modified && $client_etag) ?
  2. ((strtotime($client_last_modified)>= strtotime($wp_last_modified)) && ($client_etag == $wp_etag)) :
  3. ((strtotime($client_last_modified)>= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {

Replace it with:

PHP:
  1. if ( ($client_last_modified && $client_etag) ?
  2. ((strtotime($client_last_modified)>= strtotime($wp_last_modified)) && ($client_etag == $wp_etag)) :
  3. (($client_last_modified && strtotime($client_last_modified)>= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {

[ Source, via BloggingPro ]

Thought:
I shall wait for another month before upgrade so that major bugs are discovered and fixed. :P

Bookmark and Share

Read also:

What do you think? 4 Responses to “Fix Wordpress 1.5.1 RSS Error”

Comments Feed | TrackBack URL
  1. #1
    8dee Says:

    I am still on 1.5, I believe. So how is it compare with 1.5.1?

    Don’t know when shall I upgrade…..hmmm

  2. #2
    LcF Says:

    generally are bug fixes. You can refer to ChangeLog for details.

  3. #3
    Dan G Says:

    Just wanted to leave you a note to let you know that this code fix has helped me debug my wordpress feed probs…

    Thanks!

  4. #4
    LcF Says:

    you should upgrade to 1.5.2 or the current latest 2.0.1

Comments are closed. Submit your comment here