Hi,

(I'm Spanish, sorry about my English)

I'm using aggregation to get feed items into my site, but when the feed has an image it shows it on my site, but loading it from the original weblog.

I want to copy the images automatically to my site to be loaded from my servers (at list the first one). It's is possible as I understand from the aggregation module, I have installed the image module, but I can't get it to work...

How it should be done???

Thanks

Comments

heronog’s picture

I am having a similar problem, I am aggregating content from another drupal site.

The nodes on the original site have an image attach, and the file shows up correctly in the xml.

The aggregation module in the other site is creating the image node and if I edit the "feed item" node that is created, the local node id for the image is in the right place, but there is no image file, so the "feed item" shows no image at all.

Image module is 5.x-2.x-dev and aggregation is 5.x-4.3

Also when importing feed items from the other drupal site, I see lots of errors like these:

# warning: Illegal offset type in isset or empty in /var/www/htdocs.release/modules/taxonomy/taxonomy.module on line 1202.
# : Object of class stdClass could not be converted to string in /var/www/htdocs.release/modules/taxonomy/taxonomy.module on line 1203.
# warning: Illegal offset type in /var/www/htdocs.release/modules/taxonomy/taxonomy.module on line 1207.
# : Object of class stdClass could not be converted to string in /var/www/htdocs.release/modules/taxonomy/taxonomy.module on line 1208.
# warning: Illegal offset type in /var/www/htdocs.release/modules/taxonomy/taxonomy.module on line 1208.
# warning: Illegal offset type in /var/www/htdocs.release/modules/taxonomy/taxonomy.module on line 1212.
# : Object of class stdClass could not be converted to string in /var/www/htdocs.release/sites/all/modules/pathauto/pathauto_node.inc on line 223.
internetdevels’s picture

subscribe

Updated:

I've found some code in RSS20.inc, line 93:
$image = array();
if ($news->enclosure) {
if (preg_match('/^image/', $news->enclosure['type'])) {
$image[] = array('url' => "{$news->enclosure['url']}");
}
}
_aggregation_add_item($title, $body, $teaser, $original_author, $feed, $additional_taxonomies, $timestamp, $original_url, $guid, $image, $other);

But $news->enclosure is always ininitialized, so parameter $image is always empty.