When my cron runs to import feeds I get the following error:

warning: file_put_contents(sites/default/files/sites/default/files/images/temp/3745321993.jpg) [function.file-put-contents]: failed to open stream: No such file or directory in xxx/sites/all/modules/aggregation/aggregation.module on line 1455.

And then there a no images imported

Comments

Ashraf Amayreh’s picture

Could you change this line

if (file_put_contents(file_directory_path().'/'.$newfile, $data) == 0)

to

if (file_put_contents($newfile, $data) == 0)

Let me know if that solves your problem and I'll create a patch for it.

jaks1970’s picture

I did this edit to the .module file and now the images show however the size is 200px by 0px it's not how I have my thumbnails set. Any ideas how I can fix this?

Ashraf Amayreh’s picture

Status: Active » Closed (fixed)

In general your error is strange, 200 by 0? Sure you haven't specified that size in the image module?

I did find out that I'm not generating the image derivatives for the newly created image and that's fixed. I believe this problem should go away, but let me know if it doesn't. Fixed in 6.x-1.1

jaks1970’s picture

The issue was related to format.