Closed (fixed)
Project:
ImageAPI
Version:
6.x-1.8
Component:
ImageAPI GD
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 May 2010 at 13:04 UTC
Updated:
20 Jul 2011 at 10:58 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedhi ray,
just wondering if you managed to get this working in the end? i too am getting this error when i try and upload a image with gallery views.
this is the full error message:
warning: imagejpeg() [function.imagejpeg]: Unable to open 'sites/default/files/imagefield_thumbs/photos/name_of_file.jpg' for writing: Permission denied in /path/to/my/drupal-site.co.uk/sites/all/modules/imageapi/imageapi_gd.module on line 66.
i've set the permissions to 777 on sites/default/files so i'm not sure why it's complaining about read/write access. i'm going to roll back imageapi and see if that helps. if anyone out there can throw me a line i'd really appreciate it.
cheers,
simon.
Comment #2
eff_shaped commentedGetting similar error:
warning: imagejpeg() [function.imagejpeg]: Unable to open 'sites/example.com/files/imagefield_thumbs/P1000808.JPG' for writing: Permission denied in /home/example/public_html/sites/all/modules/imageapi/imageapi_gd.module on line 66.
Uploading images to multisite installation with CCK image field.
image api 6.x-1.8
ImageCache 6.x-2.0-beta10
ImageField 6.x-3.3
cck 6.x-2.6
Drupal 6.16
Looking for solution and will report back.
Comment #3
pamster commentedRay/people: check out your imagefield_thumbs/tmp folder. It may not exist or have appropriate permissions.
Comment #4
Ray Seaman commentedPam has it right - you have to make sure you have the right permissions for the appropriate folders.
Comment #5
eff_shaped commentedThat's good to know.
Can anyone say where the imagefield_thumbs/tmp folder is supposed to be?
thanks pam and ray
Comment #6
artofeclipse commentedI have faced the same problem
you must create the folder to look like this site/default/files/imagefield_thumbs/tmp
and change the owner to www-data or the "apache user"
Comment #7
krush360 commentedI have done all the above prescribed steps and am still receiving the same error message originally referenced in this thread. This only happened after we migrated the drupal cms from a shared hosting account to a virtual dedicated server. The error message is generated when attempting to upload an image to be associated with a product using the ubercart module. Error is as follows:
warning: imagejpeg() [function.imagejpeg]: Unable to open 'sites/default/files/imagefield_thumbs/tmp/krush.jpg' for writing in /home/krush1/public_html/modules/imageapi/imageapi_gd.module on line 66
So I created the 'tmp' directory '/sites/default/files/imagefield_thumbs/tmp' with adequate permissions and am now getting the following error:
warning: imagejpeg() [function.imagejpeg]: Unable to open 'sites/default/files/imagefield_thumbs/krush.jpg' for writing in /home/krush1/public_html/modules/imageapi/imageapi_gd.module on line 66
Using Simple Control File to manage files, the permissions reflected are correct. What is wrong?
Comment #8
krush360 commentedComment #9
marvil07 commented@krush360: It sound like you have changed the permissions for
sites/default/files/imagefield_thumbs/tmp/but not forsites/default/files/imagefield_thumbs/. Please make sure you have done that.BTW changing title to be a little more descriptive.
Comment #11
dhcp commentedI changed the owner and group to the apache user and it resolved my problem. Thanks!
Comment #12
CowTownFarmBoy commentedHaving the same problem and am new to LAMP how did you change the ownere and group to the apache user?
Did you run something like
sudo chown apache -R imagefield_thumbs
while in the files/ directory
Thanks...
Comment #13
dhcp commentedI did it on a linux server and here is the command I used after logging in, changing to the root user and changing to the site's '/sites/default/' folder.
chown-hR apache:apache files
It changed the owner and group...and then I made sure the permissions were 755.
Hope that helps.
Comment #14
carlclancy commentedafter you've changed your folder permissions you may need to "flush all caches" before the issue is fixed.