Since the new version, import remote images (and probably files) no longer works.
Feeds log: Invalid enclosure http://www.website.com/image.jpg
Drupal log: File temporary://filek2J1Ov could not be copied, because the destination directory public://field/imagepublic://field/image is not configured correctly.

The problem is in the file feeds/plugins/FeedsParser.inc at line 353:

We must replace

$destination .= trim($destination, '/') . '/';

by

$destination = trim($destination, '/') . '/';

(Remove the dot concatenation)

Comments

coreyp_1’s picture

Priority: Normal » Major

Marked #1612246: Invalid enclosure on image import due to code error as a duplicate of this issue.

It contained the same fix, with several people reporting that it solved the problem for them.

I also have used this fix successfully on a production site. It's a huge break in important functionality, so I'm upping the priority on this.

[EDIT]

Adding that the error was introduced here: #1515204: Malformed destination uri in FeedsEnclosure

Rob_Feature’s picture

Status: Active » Closed (duplicate)

Sorry but I'm actually going to flip-flop these duplicates because there's more responses and confirmed tests on the other issue...marking THIS a duplicate of that one and reopening that instead (the closed issue should always be the one with fewer responses)

Duplicate of #1612246: Invalid enclosure on image import due to code error so please follow up on that issue instead.

wel3kxial’s picture

It is already
$destination = trim($destination, '/') . '/';

but still Invalid enclosure ....... jpg