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]if ( ($client_last_modified && $client_etag) ?
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) && ($client_etag == $wp_etag)) :
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {[/PHP]

Replace it with:
[PHP] if ( ($client_last_modified && $client_etag) ?
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) && ($client_etag == $wp_etag)) :
(($client_last_modified && strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {[/php]

[ Source, via BloggingPro ]

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

Read also:

  • LcF
    you should upgrade to 1.5.2 or the current latest 2.0.1
  • 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
    generally are bug fixes. You can refer to ChangeLog for details.
  • 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
blog comments powered by Disqus