Fix WordPress 1.5.1 RSS Error

Filed in: WordPress — May 14th, 2005

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

Like this post? Please share:

Follow @liewcf on Twitter; Join Facebook page; Subscribe to free newsletter for updates like this article..

  • http://www.syiok.com/ 8dee

    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

  • http://www.syiok.com/ 8dee

    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

  • http://www.syiok.com 8dee

    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.

  • LcF

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

  • LcF

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

  • http://www.dan9.net/blog/ Dan G

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

    Thanks!

  • http://www.dan9.net/blog/ Dan G

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

    Thanks!

  • http://www.dan9.net/blog/ Dan G

    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

  • LcF

    you should upgrade to 1.5.2 or the current latest 2.0.1

  • LcF

    you should upgrade to 1.5.2 or the current latest 2.0.1

t