PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   Upload errors (http://www.photopost.com/forum/photopost-pro-bug-reports/136384-upload-errors.html)

03Mach1 May 2nd, 2008 06:36 AM

Upload errors
 
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.

Chuck S May 2nd, 2008 10: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.

03Mach1 May 5th, 2008 10: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.

Thanks.!! :)

Chuck S May 5th, 2008 01:22 PM

Moving a hosting service means you would have to reset all permissions sure.

OMSA May 5th, 2008 03: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;

Chuck S May 5th, 2008 06: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.

OMSA May 5th, 2008 07: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

Chuck S May 5th, 2008 08:56 PM

Yes all your directories under data and uploads as well as those parent directories must be set to 777.

OMSA May 5th, 2008 09: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?

Chuck S May 5th, 2008 10: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.

OMSA May 6th, 2008 03:53 AM

Yes, they say I have to use 755...

Chuck S May 6th, 2008 09: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.


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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97