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:

  • 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
  • LcF
    generally are bug fixes. You can refer to ChangeLog for details.
  • Just wanted to leave you a note to let you know that this code fix has helped me debug my wordpress feed probs...

    Thanks!
  • LcF
    you should upgrade to 1.5.2 or the current latest 2.0.1
blog comments powered by Disqus