I have Feeds running pretty well @ http://startupecosystem.ca where we're using it to import URLs of news items and then parse the imported URL with the Opengraph Filter module to show some meta info about each post leading people to read more on the source site....

...But the most important feed isn't importing any items for some odd reason - anyone have any idea why http://betakit.com/feed won't work (have tried it with other non-drupal parsers and they work, like https://www.rssinclude.com/my_rssboxes)

*I'm using the HTTP Fetcher w/Common syndication parser & Node processor.

Help would be much appreciated.

Qasim

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

designguru created an issue. See original summary.

MegaChriz’s picture

Title: Feed items not importing for a specific feed » Feed items not importing for a feed that contains additional whitespace
Category: Support request » Bug report
Priority: Major » Normal
Status: Active » Needs review
FileSize
640 bytes

It appears that the RSS feed in question starts with a few empty lines before the XML document starts and that the common syndication parser cannot deal with that.

I found that out this way:
The common syndication parser surpresses any XML errors and warnings. When I cleared these warning surpressions, the following error message showed up:

Warning: simplexml_load_string(): Entity: line 4: parser error : XML declaration allowed only at the start of the document

The patch fixes this issue by removing the empty lines before passing the XML to PHP's SimpleXML extension. Let me know if it completely fixes your issue.

  • MegaChriz committed f2a1d53 on 7.x-2.x
    Issue #2704171 by MegaChriz: Fixed parse RSS feeds that contain...
MegaChriz’s picture

Status: Needs review » Fixed

Committed #2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.