The Category module adds feed URL to category page in following way:

drupal_add_feed('node/'. $node->nid .'/feed', 'RSS - '. $node->title);

(category.module, line ~1557)
which generates following url: http://example.com/node12/feed, which is invalid for non-clean-url sites, and causes 404 error.
Quick fix is to change the line to:

drupal_add_feed('?q=node/'. $node->nid .'/feed', 'RSS - '. $node->title);

.
Note: probably there is similar error for category feeds.

Comments

sherpaCZ’s picture

Better could be to use internal "url" function, maybe with absolute url generation (as it's used in node.module):

So the patch could be like this:

$feed_url = url('node/'. $node->nid .'/feed', NULL, NULL, TRUE); 
drupal_add_feed($feed_url, 'RSS - '. $node->title);

The same case is in function category_category_page when drupal_add_feed function is used too.

bdragon’s picture

Status: Active » Fixed

Committed to DRUPAL-5 and HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)