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.
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.
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.
Moving a hosting service means you would have to reset all permissions sure.
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;
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.
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
Yes all your directories under data and uploads as well as those parent directories must be set to 777.
Hosting company is telling me that the server is running suExec and that is preventing the use of 777 folders.
Does this sound right?
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.
Yes, they say I have to use 755...
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.
|All times are GMT -5. The time now is 06:21 PM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0