Closed (fixed)
Project:
Feeds
Version:
6.x-1.0-alpha9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2009 at 10:04 UTC
Updated:
31 Mar 2010 at 18:24 UTC
In _feeds_nodeapi_node_processor of feeds.module .
case 'update':
if (isset($node->feeds_node_item)) {
$node->feeds_node_item->nid = $node->nid;
drupal_write_record('feeds_node_item', $node->feeds_node_item, 'nid');
}
break;
After I have removed the 'nid' from the 4th line of the code, then the save function start to work.
drupal_write_record('feeds_node_item', $node->feeds_node_item);
Comments
Comment #1
wqmeng commentedOk, After review the code, I have found that on my site, to avoid the feeds module to create duplicate node of the exist node which have submited by the author manually I need a check to know if the nid already in the feeds_node_item table.
I have changed the code to the new one.
Comment #2
alex_b commentedCan you give more context of how this error occurs? In what succession did you add feeds/remove feeds/refresh them?
What you describe looks *highly* irregular. #2 can't be a good fix, there must be a problem somewhere else.
Comment #3
alex_b commentedClosing due to inactivity.