Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is a small issue in feeds import. The feeds_item table GUID column is not a unique column, and the values can have dublicates. So the correct version of code for import over GUID should be changed from:
<?php
$result = db_query('SELECT f.entity_id FROM {feeds_item} f WHERE f.'.$match_key.' = :v', array(':v' => $v) );
?>
to:
<?php
$entity_types = array_keys($info['bundles']);
$result = db_query('SELECT f.entity_id FROM {feeds_item} f WHERE entity_type in (:entity_type) and f.' . $match_key . ' = :v', array(':entity_type' => $entity_types, ':v' => $v) );
?>
Comments
Comment #1
Alex Andrascu CreditAttribution: Alex Andrascu commentedI think this belongs to Feeds ?
Comment #2
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedThis referenced code is in the References module. See references.feeds.inc, ± line 278.