Hello

I am not sure if there's a bug or maybe I messed up something...

Anyway I have installed fresh drupal 4.7.5, installed leech 1.3, created content as described in Readme.txt

Whenever new leech data is gathered (no difference if by hand or via cron) the first node (story) is created and then all other items from RSS are saved as the same node as the first one. In other words, my watchdog leech log for particular leech feed starts with creating new node and then the same node is updated X times, where X is the number of items, which supposed to be created for this feed leeching.

Any help would be very appreciated.
Thanks,
Paul

CommentFileSizeAuthor
#1 watchdog.jpg49.25 KBmornel

Comments

mornel’s picture

Category: support » bug
Priority: Normal » Critical
StatusFileSize
new49.25 KB

hi

still have the same issue, tried again on drupal 4.7.5 clean install w/ latest leech. when leech starts getting nodes from RSS it creates the first node and then is updating it as many times as is the number of new articles in RSS feed.

screenshot is attached, hope it helps

regards,
paul

alex_b’s picture

could you post the leech settings and the settings on the particular feed that is producing the duplicates?

stanbroughl’s picture

i'm getting this error as well.

eg feed on my site and settings below:

- feed: http://www.reliefweb.int/RWFeed/Feed?Type=RSS20&ID=02-P&cc=irn
- URL of logo image: http://www.reliefweb.int/rw/304rw_logo.gif
- URL of site: http://www.reliefweb.int
- Author of feed: ReliefWeb

I've got: Generate GUIDs, Publish news items, Update already existing news items all checked on the feed.

In admin/settings/leech i've got the following set up:

- Show link to feed with each item: Inline in body/teaser
- Show link to items with each feed: In links list
- Advanced settings:
- Select parser: leech_news
- Use source link is checked

In admin/content types/page i've got the following settings:

- Enable leech is checked
- Generate GUIDs, Publish news items, Update already existing news items all checked
- Delete news items older than: is set to never
- Promote items: is set to 3
- Use dates found in feed (if possible): is checked
- Show "original article"/"visit site" link: is set to always
- Default leech opml options: is set to my leech template i created though the story content type using the instructions in the Leech README.txt included in the 4.7.x-1.x-dev 2007-Jan-23 release

In my watchdog all feed items are getting the same location - there is a list of various story items in the watchdog table but only one appears:

Location http://www.s176613701.websitehome.co.uk/leech/refresh/727?destination=no...

stanbroughl’s picture

hope that helps - if you want any more info drop me a line on my contact form - i'll be at my desk most of the day tomorrow

ac4lt’s picture

Version: 4.7.x-1.3 » 5.x-1.x-dev

I see the same thing happening. The watchdog entries show several nodes being created by leech, but they all are the same node id so only one node is actually getting created. Also, perhaps related, when I run the leech manually, I don't get any errors, but I do get a blank page as the result.

alex_b’s picture

stanbroughl,

Does the duplication happen if "update already existing news items" is checked off?

Alex

aron novak’s picture

ac4lt: Can you reproduce the blank page error? If yes, it would be really helpful if you can turn on showing PHP errors and tell what you see if you run the leech manually. The blank page surely indicate that there is a PHP error somewhere. Do you use PHP5? (I use PHP4 for the development, that's why I think about PHP error)

aron novak’s picture

Assigned: Unassigned » aron novak

I find the errror, Something wrong w/ leech + PHP5. I start to catch the problem, but finally I know what casuses this nasty thing.
I use PHP4 + Mysql 5 at my dev site, so I that's why I cannot reproduce the error until now. The reported PHP error warned me.

ac4lt’s picture

Aron, do you still need the errors from me? I can try to reproduce it if you do.

stanbroughl’s picture

hi alex,

yes this doesn't fix the problem

Lucy

mnlund’s picture

Title: only one node created on one leech run » PHP 5 confirmation

This is a PHP 5 error. Upgraded two days ago, and since then the leech module has been working very strangely. Hope it will get fixes soon.

jamon8888’s picture

Have the same problem with Drupal 5 and PHP 5 , is there any patch for this issue ?

aron novak’s picture

Leech isn't compatible w/ PHP5 at the moment. I assume I can create a patch for this critical issue on Friday this week.

aron novak’s picture

Status: Active » Fixed

The problem was reference-passing instead of value-passing of objects in PHP5. The CVS contains the fix.

aron novak’s picture

Status: Fixed » Closed (fixed)