Hi,

I'm using feeds and the youtube feed module (feeds_youtube 7.x-2.0-beta1) to try and import a youtube feed. However, I'm getting this error:

Notice: Undefined variable: file en file_feeds_set_target() .... on line 85 of feeds/mappers/file.inc...

The result is that the import batch process completes, the nodes are created but the Media Field that is mapped to the video's URL does not get populated.

Any idea why this is occuring?

Thank you!

Comments

Sol Roth’s picture

I'm having the same error issue trying to import images

gtothab’s picture

This post appears to describe what the problem is in my case. Unfortunately, no solution is offered.

http://drupal.org/node/1482530#comment-7135756

gtothab’s picture

Status: Active » Needs review
Summit’s picture

Hi, may be to do with http://drupal.org/node/1612246#comment-7234456 ?
greetings, Martijn

twistor’s picture

Component: Feeds Import » Code
Priority: Major » Normal
Status: Needs review » Postponed (maintainer needs more info)

Just to point out, the "Notice: Undefined variable: file" is not what's causing the problem. It will be fixed in #1171114: Allow user to choose the method of file handling..

Could you provide your importer config and a sample of your feed?

briangelhaus’s picture

I had this error when using feeds to import nodes with images and files via .CSV

In my CSV under my images column I only had filename.png. It should be public://filename.png

public:// searches the sites/default/files folder by default

if you have a specific folder you want it to go into then use public://folder/filename.png

twistor’s picture

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