I am trying to attack an image using cck and get the following error:

warning: imagejpeg() [function.imagejpeg]: Unable to open 'images//preview/5c8fa197e592888541f0eb525046097b.png' for writing in /homepages/35/d91000072/htdocs/GRS/drupal/includes/image.inc on line 321. 
The selected file files/Result.jpg could not be uploaded, because the destination is not properly configured. 

I tried changing the names of the folders, tried changing the permissions, nothing is helping.

The only other suggestion I got from the previous posts that I did not do is change it to the absolute path. But then, I am not sure what that path is.

Thanks in advance!

Comments

Mink’s picture

I am not sure why it is doing it, but the fields I have listed just say "files" but the url that it is trying to put the picture at is http://curseoftime.com/GRS/drupal/images//files/Result.jpg which is not a good address. how can that be fixed?

vm’s picture

more information:

are you using the private file method ?
any explaination as to why the file being moved is a .png and the file you are uploading seems to be a .jpg ?

what settings are you using ? in the image.module ? which image.module is being used ?

Mink’s picture

Got it fixed. Thanks

mdowsett’s picture

please share how you fixed this mink...I'm having similar issues.

vm’s picture

check your path in administer -> file system insure you've not added the extra / to the path.

also check settings.php and if using a $base_url insure you've not added an extra / to that path.

mdowsett’s picture

thx - I checked those and they are OK.

vm’s picture

does the image module in use have a seperate settings page where a storage path can be set ?

mdowsett’s picture

yes. And I double checked that now and it is set properly (and no trailing slash as that is what it mentions in the instructions).

I think it's a permissions thing on some of the image files. I'm trying to get ssh access to adjust all permissions on the image files.

I'll report back.

thx for your continued help

mdowsett’s picture

It was a permission problem. As (I think) I mentioned, I had moved the server and most of the derivative images in my files/images folder had an incorrect owner and permissions.

It took a lot of searching for me to notice that (I'm no pro) and then I didn't have ssh access to correct the permissions so it took a bit of time to get my hoster to fix it up.

All is good now (I think/hope).