coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: gwdguy on August 30, 2004, 01:46:35 AM

Title: Can't upload anymore images - permissions changed??
Post by: gwdguy on August 30, 2004, 01:46:35 AM
I am setting up album and all is going good but on about image 50 I got a huge error like this >>

Warning: stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 432

Warning: stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 440

Warning: Unlink failed (Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 453

Warning: stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 432

Warning: stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 440

Warning: Unlink failed (Permission denied) in /home/httpd/vhosts/mydomainname.com/httpdocs/petpics/upload.php on line 453


I did not change anything that I can see. I actually have been doing nothing but uploading images since I installed and all has been good until just now. I can see the ones I have uploaded but when I click to add new images (upload) this error comes up?? I tried to change to 777 again but now it shows that the folder edit is "owned" by apache so I can't change it.

Help please :)

Thanks!
Title: Re: Can't upload anymore images - permissions changed??
Post by: Nibbler on August 30, 2004, 02:00:32 AM
Put this in a php file, upload to coppermine directory and go to it in your browser. If it returns true, recreate the edit directory yourself and set permissions to 777/755.

<?php
var_dump
(rmdir('albums/edit'));
?>
Title: Re: Can't upload anymore images - permissions changed??
Post by: gwdguy on August 30, 2004, 02:06:07 AM
thanks for the reply.

Okay I think maybe I did not do something right.

I took what you did and saved it to a text file called editfix.php and uploaded it and when I go to that page in the browser I get this >>

Warning: Unable to access albums/edit in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/albums/editfix.php on line 2

Warning: RmDir failed (No such file or directory) in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/albums/editfix.php on line 2
bool(false)


Thanks for any help..

Robert
Title: Re: Can't upload anymore images - permissions changed??
Post by: Nibbler on August 30, 2004, 02:32:16 AM
Put it in your coppermine directory, not in your albums directory. Remember to delete it afterwards.
Title: Re: Can't upload anymore images - permissions changed??
Post by: gwdguy on August 30, 2004, 02:57:43 AM
 ??? okay i am not being very smart today.

I moved that file to the main "CM" directory which is names petpics

Warning: RmDir failed (Directory not empty) in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/editfix.php on line 2
bool(false)

>>>

I SSH'd in to me server and changed the chmod to 777 and this started working fine again but maybe I screwed up something else > see this >>

Weird thing is now I can do it because of this >>

Warning: SAFE MODE Restriction in effect. The script whose uid is 10411 is not allowed to access ./albums/edit/mHTTP_temp_8b873021.jpg owned by uid 48 in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/upload.php on line 1209

Warning: SAFE MODE Restriction in effect. The script whose uid is 10411 is not allowed to access ./albums/edit/mHTTP_temp_8b873021.jpg owned by uid 48 in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/upload.php on line 1218

Warning: getimagesize: Unable to open './albums/edit/mHTTP_temp_8b873021.jpg' for reading. in /home/httpd/vhosts/mydomain.com/httpdocs/petpics/upload.php on line 1218


do I need to start over??


Thanks for taking the time to look.  :)
Title: Re: Can't upload anymore images - permissions changed??
Post by: gwdguy on August 30, 2004, 04:30:37 AM
 :P :P :P

okayokay I am a complete idiot.. I am using GD libs and all this freaking time I am trying to upload .gif's.. someone come shoot me please.


Thanks for your time and come join the Robert comedy hour next time when I have some more silly questions to ask.


Thanks

Robert
Title: Re: Can't upload anymore images - permissions changed??
Post by: kegobeer on August 30, 2004, 04:47:16 AM
If you have GD v2.0.28, you have GIF create support again.  Check out the mod for GIF uploads in the Modification / Add-ons / Hacks board.
Title: Same Problem, but Same Solution doesn't work now.
Post by: dannybunny on April 22, 2005, 06:03:52 PM
hi there,

i've experienced the same issue before and following the advice/instructions on this page seems to cure the problem everytime. i've however switched server recently, and everything was going fine after the migration until today, all of a sudden, i am not able to upload files. i used the same editfix.php script, recreated the edit folder and 777 it, but i still get the following error:


Warning: is_dir(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home2/sub004/sc11465-LEOH/www/upload.php on line 432

Warning: filemtime(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home2/sub004/sc11465-LEOH/www/upload.php on line 440

Warning: unlink(./albums/edit/.): Permission denied in /home2/sub004/sc11465-LEOH/www/upload.php on line 453

Warning: is_dir(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home2/sub004/sc11465-LEOH/www/upload.php on line 432

Warning: filemtime(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home2/sub004/sc11465-LEOH/www/upload.php on line 440

Warning: unlink(./albums/edit/..): Permission denied in /home2/sub004/sc11465-LEOH/www/upload.php on line 453

i am however still able to Batch Upload my files via FTP, and then running the Batch Add Files button. but uploading the images via the "upload" button churns out the error above.

any advice evangelists?

thanks in advance!

cheers,
dan.
Title: Re: Can't upload anymore images - permissions changed??
Post by: dannybunny on April 24, 2005, 10:09:45 AM
hi there,

sorry to bump this up, but there hasn't been any help rendered. =( any advice, anyone?

THANKS LOADS!

cheerios,
dan
Title: Re: Can't upload anymore images - permissions changed??
Post by: Nibbler on April 24, 2005, 04:30:29 PM
You have to set the correct permissions (777/755) on the edit directory. That's all there is to it.
Title: Re: Can't upload anymore images - permissions changed??
Post by: dannybunny on April 24, 2005, 05:21:23 PM
hi there Nibbler,

thanks for your reply. the Edit folder has been 777-ed everytime after i tried the editfix.php script. yet i still get the same error when i try to upload my files. =(

at my wits' end. any other ideas?

cheerios,
dan.
Title: Re: Can't upload anymore images - permissions changed??
Post by: Nibbler on April 24, 2005, 05:35:56 PM
PM me an FTP account.
Title: Re: Can't upload anymore images - permissions changed??
Post by: dannybunny on April 24, 2005, 05:40:37 PM
hi Nibbler,

sorry but now i feel like a clown!

i have been recreating the Edit folder in the main directory instead of the "Albums" directory!! guys, if you encounter the same problem, pls take note that after you run editfix.php, the Edit folder that you have to recreate needs to reside in the "Albums" directory.

thanks Nibbler! and sorry for the ignorance!

cheerios,
dan.