Hi,
I`m trying to import nodes via 'Feeds' module.
Everything works fine, but I can find out how to upload images.
I`m doing everything as described in the manual, but nothing happens.
I`m trying to upload multiple values and using 'Feeds Tamper' and Explode plugin (| as separator).
..and getting this errors:

Warning: rawurlencode() expects parameter 1 to be string, array given in function encode_url() (line 447 ~sites\all\modules\feeds_imagegrabber\libraries\url_to_absolute.inc).

I`m using csv and working on a local server.
I even was trying to select images 'by filename from library', but it returns only notices like this:

Failed to get the file object for 14_4035226.jpg.
Failed to get the file object for 14_7409291.jpg.
...

What I`m doing wrong? Would be very thankful for any help

p.s. I attached two csv files (saved as txt to make it possible to upload them) for example

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jlballes’s picture

Same error:

Warning: rawurlencode() expects parameter 1 to be string, array given in function encode_url() (line 447 ~sites\all\modules\feeds_imagegrabber\libraries\url_to_absolute.inc).

I´m used SimplePie and a item example is:

<item>
<title>My title</title>
<link>http://example.com/sites/default/files/images-test/test.jpg</link>
<description>prueba</description>
<guid isPermaLink="false">http://example.com/es/noticias/admiradores</guid>
<source url="http://example.com/es/rss">RSS</source>
</item>
rooby’s picture

Status: Active » Postponed (maintainer needs more info)

The manual you link to is very old and it is on a private website so I cannot update it.

In this case the README.txt is probably the best documentation.

It seems like you are linking to the actual image file.

Currently what this module does is takes a link to a webpage that contains the image and then takes the image from that page and downloads it.

The use case is that you are pulling in items from feeds, which are items from another site or something.
When it pulls in those items it wants to get the images that go with them.
So it goes to the url of the feed item and finds the images (using the setting you configured, like the class or ID) and downloads them and attaches them to the feed item pulled in.

If you need some other type of functionality we can look at adding it if you describe exactly what you are trying to achieve.

rooby’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (duplicate)

Based on the error you have there, it looks like this is a duplicate of #2244833: Image Grabber doesn't work with latest version of Feeds

Please try the patch there.