RSS Feed Problems Solved

An interesting thing happened on my way to post this morning. No, I didn’t get box seats from Omar Minaya. I discovered that my RSS feeds weren’t working properly. Though this really isn’t Mets related I figured I’d share the details about this issue here as a public service to anyone else in the blogsphere who may be interested.

I started to try to figure out what may have caused the problem by thinking about what I changed recently that may have caused this issue. Yesterday was a big day as I added 3 plugins (Countdown, Notes and Subscribe me). I also upgraded from WordPress 1.5 to the newly released 1.5.1 version. The upgrade was the biggest change so I began my research there. It turns out that I wasn’t the only one who upgraded and ended up with this issue.

The fix involves replacing one line of code in one of the WordPress files. I’m assuming that if you are still reading this post you are technically adept, not afraid to make a code change and probably even did the upgrade on your own. If my assumption is wrong and you are running 1.5.1 and want to make this change then either proceed with extreme caution or get one of your techy friends to help.

The code change needs to be made in a file called wp-blog-header.php. This file is located in the WordPress install directory. Open the file in a text editor (or in cPanel or whatever way you normally edit files) and search for the following string:

if ( ($client_last_modified && $client_etag) ?

Immediately under this line you will see two lines that begin as follows:

((strtotime($client_last_modified)

Replace the whole second line with the following:

(($client_last_modified && strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {

If your text editor has a search and replace feature then search for the following:

((strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {

And replace with the following:

(($client_last_modified && strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {

All of the code nippets above are single lines of code. My layout wraps them to two lines so when you search and replace be sure that to convert these snippets to single lines.

For more information on it click this link.

Tags: ,


If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Sorry, the comment form is closed at this time.