I've recently set up a new 4.4 site on a local development server and a remote hosted server, both Linux. The Drupal site is otherwise working but I am unable to import a single feed. After following the install directions scrupulously and attempting to insert a number of rss sites and formats, I get these error messages:

failed to parse RSS feed : not well-formed (invalid token) at li
Error while parsing http://slashdot.org/slashdot.rdf
failed to parse RSS feed : junk after document element at line 1
Error while parsing http://www.aspfree.com/syndication.rss
failed to parse RSS feed : syntax error at line 1.
Error while parsing http://rss.com.com/2547-1_3-0-5.xml

Since no one else seems to be having this problem, this may be a configuration issue. In that case, this becomes simply a documentation issue.

Thanks,

dan

CommentFileSizeAuthor
#2 drupalimport.patch242 bytesAnonymous (not verified)

Comments

dziemecki’s picture

I should add that each of these sites are currently working under the previous version on Import, on the same servers.

dan

Anonymous’s picture

StatusFileSize
new242 bytes

In includes/common.inc, if line 337 and 338:

while (!feof($fp) && $data = fread($fp, 1024)) {
$response .= $data;

are changed back to a previous version of the code, listed here:

while (!feof($fp) && $data = fgets($fp, 1024)) {
$response[] = $data;

and remove line 343:

$response = preg_split("/\r\n|\n|\r/", $response);

then it all seems to work correctly.

James Addison’s picture

oops. That Anonymous patch submission was from me! My apologies for forgetting to log in. :)

Bèr Kessels’s picture

1) are you talking about the old aggregator.module or about the import with node based import (now named node aggegregator)?
2) could you tell me why we would need to patch the common.inc and not patch the module? Chances are nihil that a patch that changes core functionality will get in, just to fix a rarely used contribution!
3) could you please add the -u flag when making a patch. The patch you send is near to unreadable for humans.

Anonymous’s picture

I too am suffering this fate... the patch doesnt seem to help here tho... for me it's the contrib "import.module" which vanished from this site a month or so ago without a trace.

Anonymous’s picture

It indeed vanished, due to names clashing (there were more import.modules ;) ), but not without a trace.
http://cvs.drupal.org/viewcvs/contributions/modules/import/Attic/

Now that the new release of drupal is due, I want to get this module up and running for at least that version. Help is always welcome ofcourse!

regards, Ber

Bèr Kessels’s picture

Priority: Critical » Normal

Marking this non-critical, to provide it from sticking on top in drupal issues. If you do feel it is critical, please tell us why it is critical for drupal as a whole (that is what tha status is meant for) and set back to critical.
I have not heard from this for a while. Any life? anyone still having this problem?

Bèr Kessels’s picture