WordPress 2.01 bug and fix

On 19-Feb-2006, in tips and tutorials, by Martin

A bug in WordPress 2.01 detected Hello everyone! During my ever continueing quest on housekeeping I stumbled on a nasty bug in WordPress. This happened after my risky upgrade to WordPress 2.01. RSS, XML, FeedBurner feeds What happened When clicked on the badges on my sidebar I only got ‘comments’ feed. This happened for all [...]

A bug in WordPress 2.01 detected

Hello everyone! During my ever continueing quest on housekeeping I stumbled on a nasty bug in WordPress. This happened after my risky upgrade to WordPress 2.01.

RSS, XML, FeedBurner feeds

What happened :?: When clicked on the badges on my sidebar I only got ‘comments’ feed. This happened for all the syndicates (XML, RSS). A search on the WP-forum delivered me with this post. I would suggest to all WP 2.01 users to read it and fix it with a few extra pointers from me. The bug report is rather sparse in how to fix this problem.

Fix the Feed Bug in WordPress 2.01

Open up the file “classes.php”. It is in the directory /root/wordpress/wp-includes/. Search for line number approx. 1299. There you see this:

// Comments
$comments_rewrite = $this->generate_rewrite_rules($this->root .
$this->comments_base, true, true, true);
$comments_rewrite = apply_filters(‘comments_rewrite_rules’, $comments_rewrite);
// Search

The problem lies in this line from the part listed above.

$this->comments_base, true, true, true);

It is not complete. Fix:

The FIX

Just edit that line until it reads:

$this->comments_base, true, true, true, false);

Notice the addition of the boolean ‘FALSE‘?
When added and uploaded my problems were over.
I hope it will help your feeds too.

 

6 Responses to “WordPress 2.01 bug and fix”

  1. Lorelle says:

    Thanks for bringing this to our attention, Martin!

  2. Martin says:

    You’re welcome. Always of service.

  3. [...] If you are experiencing problems with feeds with your WordPress blog after installing the new WordPress 2.0.1, then Flyweb has a fix for what might ail you.

    Based on the bug report from WordPress Ticket Trac, the error is in your classes.php file. The fix is easy to do.

    This applies to those using the full version of WordPress 2.0 only.[...]

  4. Cities Lists says:

    Found this awesome site to post about scams that have affected you. I have learned a lot of what not to do online since reading some of the posts. I have added them to my favorites and they even offered me a free blog to post about my dealing with clickbooth.com who wont pay me…

  5. Martin says:

    Interesting to hear ‘Cities List’. What’s your point?

  6. Martin says:

    Looks like ‘Cities List’ is no longer in our midst? I wonder.

Leave a Reply

Free WordPress Themes

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

WordPress Blog