RSS feed not working - not valid RSS feed error

Anonymous (not verified) - December 30, 2008 - 21:26
Project:Recent Changes
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:reviewed & tested by the community
Description

Trying to add the recent changes RSS feed to an RSS reader comes up with the error: This is not a valid RSS feed.

Tried with Thunderbird and Google Reader. Have used the 5.x version of Recent Changes with Thunderbird as the RSS reader for years without issue.

#1

fuzzy_texan - January 25, 2009 - 21:15

Is this module being maintained?

The RSS feed is half of the functionality.

#2

toemaz - February 14, 2009 - 20:14
Status:active» needs review

On line 296

<?php
    $url
= call_user_func_array('url', array_merge($item->url_array, array(TRUE)));
?>

has to be changed into

<?php
    $item
->url_array[1]['absolute'] = TRUE;
   
$url = call_user_func_array('url', $item->url_array);
?>

#3

toemaz - February 14, 2009 - 20:17

Find it attached. I deployed it on a production website. Lets see how it works out.

AttachmentSize
recent_changes_feed_url.patch 771 bytes

#4

fuzzy_texan - February 15, 2009 - 06:54
Status:needs review» needs work

Thanks for the work on the patch toemaz.

I applied the patch using the normal patch command. Still getting the same error.

Also tried manually editing the file as described in #2. No luck there either.

Any suggestions of what I could be doing wrong?

#5

toemaz - February 16, 2009 - 07:06
Status:needs work» needs review

Did you empty the cache?
Go to: admin/settings/performance
Second, perhaps your RSS reader has a cache layer as well?

#6

fuzzy_texan - February 16, 2009 - 12:20
Status:needs review» postponed (maintainer needs more info)

Thanks for the suggestions. It turned out to be just a permissions issue. I hadn't set the new access recent changes permission in 6.x yet. Setting that made the feed work for both the dev version, and the patch you submitted.

So both work. What does your patch do exactly? If it's presenting the feed in a better / more correct way, it could still be worth committing.

#7

toemaz - February 16, 2009 - 15:01

Strange. The dev version didn't work out for me. Well, I guess more people will hit the bug if it's really out there. Lets wait and see.

#8

leop - March 5, 2009 - 15:01

I had the same problem, applied #2, which solved it.

#9

leop - March 5, 2009 - 15:13

A similar error occurs with theme('username'... calls in this module. theme_username yields only relative paths, not absolute paths that are needed for RSS feeds. I am looking for a solution.

#10

leop - March 5, 2009 - 15:38

Hm, seems #9 shouldn't be a problem, since xml:base is correctly outputted in the feed. Still I feel that theming shouldn't be applied to RSS output. Therefore I propose the following change in line 475:

    $result_title_add .= (!$is_comment && ($result->uid != $result->auid)) ? $owner_intro_text . theme('username', $owner_user) : '';
    $result_title_add .= ($is_comment) ? t('on') . ' ' . l($result->title, "node/$result->nid") . ' ' . t('from') . ' ' . theme('username', $owner_user) : '';

into

    $result_title_add .= (!$is_comment && ($result->uid != $result->auid)) ? $owner_intro_text . $owner_user->name : '';
    $result_title_add .= ($is_comment) ? t('on') . ' ' . l($result->title, "node/$result->nid") . ' ' . t('from') . ' ' . $owner_user->name : '';

#11

toemaz - March 5, 2009 - 19:16
Status:postponed (maintainer needs more info)» reviewed & tested by the community

Better creating a new issue for this. Since you tested to patch from #3, I consider it tested by the community.

 
 

Drupal is a registered trademark of Dries Buytaert.