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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | watchdog.jpg | 49.25 KB | mornel |
Comments
Comment #1
mornel commentedhi
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
Comment #2
alex_b commentedcould you post the leech settings and the settings on the particular feed that is producing the duplicates?
Comment #3
stanbroughl commentedi'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...
Comment #4
stanbroughl commentedhope 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
Comment #5
ac4lt commentedI 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.
Comment #6
alex_b commentedstanbroughl,
Does the duplication happen if "update already existing news items" is checked off?
Alex
Comment #7
aron novakac4lt: 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)
Comment #8
aron novakI 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.
Comment #9
ac4lt commentedAron, do you still need the errors from me? I can try to reproduce it if you do.
Comment #10
stanbroughl commentedhi alex,
yes this doesn't fix the problem
Lucy
Comment #11
mnlund commentedThis 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.
Comment #12
jamon8888 commentedHave the same problem with Drupal 5 and PHP 5 , is there any patch for this issue ?
Comment #13
aron novakLeech isn't compatible w/ PHP5 at the moment. I assume I can create a patch for this critical issue on Friday this week.
Comment #14
aron novakThe problem was reference-passing instead of value-passing of objects in PHP5. The CVS contains the fix.
Comment #15
aron novak