I have a feed created with Google Alerts. Sometimes (not consistently) the items are duplicated when shown in the aggregator block. I have checked the XML source of the feed and that does not have multiple instances. All the instances have the same timestamp.

Comments

edvanleeuwen’s picture

In addition: I have checked the Google source in the feed overview list. It contained 598 items. I removed all items and updated the source. After this, the number of items is 20 and everything displays fine.

edvanleeuwen’s picture

After a while the number of items increases. I think that when the number is larger than -say- 1000, the duplicate problem begins.

Any ideas?

edvanleeuwen’s picture

Version: 6.19 » 6.22

Bump to latest version.

edvanleeuwen’s picture

I have noticed that the GUID field is empty for the Google feed. Is this normal?

edvanleeuwen’s picture

This is to celebrate the first annual without even getting a reply. I think I will change the status in 'won't fix'.

edvanleeuwen’s picture

Status: Active » Needs review

Ok, I think I have come up with a solution. As I mentioned, the GUID is not available in a Google Alert feed. But there is an tag which is unique.

Thus I have changed the following line in aggregator.module:

$guid = isset($item['GUID']) ? $item['GUID'] : '';

into

$guid = isset($item['GUID']) ? $item['GUID'] : (isset($item['ID']) ? $item['ID'] : '');

I will now try this for a couple of weeks to check if it suffices.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.