View Full Version : Upload errors
May 2nd, 2008, 07:36 AM
I have tried searching, but can't find exact error, these are at the TOP of the screen...We checked permissions,etc...and set according to the install page. It just started doing this recently and won't allow anyone to upload.
Warning: move_uploaded_file(/home/mach1/www/photopost/uploads/1/686_Q0442.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/mach1/public_html/photopost/image-inc.php on line 46
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpxcjHi7' to '/home/mach1/www/photopost/uploads/1/686_Q0442.jpg' in /home/mach1/public_html/photopost/image-inc.php on line 46
This one is in the middle of the screen where the images are located.
Unable to move file [/tmp/phpxcjHi7] [/home/mach1/www/photopost/uploads/1/686_Q0442.jpg]
Sorry if a repost, but couldn't find it. Thanks all for the help.
May 2nd, 2008, 11:44 AM
On install your data and uploads directories at every level must be set to 777 permissions and that error suggests to me that this was not done. You can ftp to your photopost directory on the server and check both of those directories to make sure they are every level deep in both those directories are 777 permissions.
May 5th, 2008, 11:00 AM
I will check it again. Everything had been working flawlessly.
I know they were all set to 777 and all the others set accordingly to the install. It had been working fine up until a month or so ago. Maybe hosting service did something to it...?? I haven't made any changes at all.
May 5th, 2008, 02:22 PM
Moving a hosting service means you would have to reset all permissions sure.
May 5th, 2008, 04:28 PM
Doesn't sound like he moved companies. Sounds like he is wondering if the hosting company DID something to cause the error...
I have a similar problem as well. It just showed up a while ago. I get this:
Warning: copy(/home/my site/public_html/photopost/data/1022/thumbs/deebo.jpg) [function.copy]: failed to open stream: Permission denied in /home/my site/public_html/photopost/image-inc.php on line 141
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/my site/public_html/photopost/data/1022/thumbs/deebo.jpg' for writing: Permission denied in /home/my site/public_html/photopost/image-inc.php on line 159
P.S. I tried doing a search on the site here, but it isn't working. Tells me my search string is too short (which it wasn't).
line 141 is: copy ( $image_file_path, $new_image_file_path );
line 159 is: case 2: $return_val = ImageJPEG( $full_id, $new_image_file_path, $Globals['imgquality'] ); break;
May 5th, 2008, 07:42 PM
I would suggest your uploads and data folders are set via ftp to 777 permissions at every level.
Example your 1022/thumbs directory under data based on your error would suggest it is not 777.
As noted on the other guys post his numeric 1 directory under uploads seems to not be 777 or safe mode is on his server.
May 5th, 2008, 08:37 PM
Are ALL the folders under the data folder set to 777 as well?
When I run a database scan, I am getting this:
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/mysite/public_html/photopost/data/531/medium/25DDR-HeldArbeit.jpg' for writing: Permission denied in /home/mysite/public_html/photopost/image-inc.php on line 159
May 5th, 2008, 09:56 PM
Yes all your directories under data and uploads as well as those parent directories must be set to 777.
May 5th, 2008, 10:16 PM
Hosting company is telling me that the server is running suExec and that is preventing the use of 777 folders.
Does this sound right?
May 5th, 2008, 11:06 PM
It could if thats the issue then they should be able to setup there servers to allow uploads with 755 permissions.
we tell people 777 because that always works although if a server is setup correctly by a host 755 would work. You would need to work with your host on this issue.
May 6th, 2008, 04:53 AM
Yes, they say I have to use 755...
May 6th, 2008, 10:31 AM
Okay then that means they need to setup there server to properly allow file uploads and file creation moving between 755 directories mimicing the permissions of 777.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.