hi there
i had mugshot running on drupal and all was working fine
i was on a dedicated server running plesk, i then moved my server across to another company, a dedicated server running cpanel and transfrered the site over

but now mugshot is throwing me errors and not working when users take pictures, the following error is given and no image is saved
iv made sure that the files/mugshot directory is 777

warning: imagejpeg() [function.imagejpeg]: Unable to open 'files/mugshot/mugshot_084681939ddbae9b93733f2e1ddebe23.jpg' for writing in /home/persianh/public_html/modules/mugshot/mugshot.module on line 586.

Comments

cog.rusty’s picture

- Is this file a new one or an existing one? If it already existed, maybe the owner has changed now.
- Is there anything in the error message about "basedir_restriction" or "safe mode"?

prezaeis’s picture

hi, no there is nothing about a safe mode error

basically its for a new file, when i take new mugshots it cant save it

maybe its sometihng to do with the apache user configuration changing because of the server move? could this be it? if so how can i check the user settings and correct it?

thank u so much 4ur help its much appreciated

cog.rusty’s picture

No, I was just thinking that if you had copied that file yourself you would be its owner and apache might be unable to write to it. Since it is a new file created by Apache this is not the case...

- Does it happen only with mugshots, or does Drupal's upload module give you similar errors?
- Is your "file download method" setting "Public" or "Private" in /admin/settings/file-system ?
- Is your file path set to 'files' and your temp path set to '/tmp' in that page? If so, does a /tmp directory exist at the root, and is it writable?