Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Can't upload anymore images - permissions changed??  (Read 5964 times)

0 Members and 1 Guest are viewing this topic.

gwdguy

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Can't upload anymore images - permissions changed??
« 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!
« Last Edit: April 24, 2005, 11:54:40 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Can't upload anymore images - permissions changed??
« Reply #1 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.

Code: [Select]
<?php
var_dump
(rmdir('albums/edit'));
?>
Logged

gwdguy

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Can't upload anymore images - permissions changed??
« Reply #2 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
Logged

Nibbler

  • Guest
Re: Can't upload anymore images - permissions changed??
« Reply #3 on: August 30, 2004, 02:32:16 am »

Put it in your coppermine directory, not in your albums directory. Remember to delete it afterwards.
Logged

gwdguy

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Can't upload anymore images - permissions changed??
« Reply #4 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.  :)
Logged

gwdguy

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Can't upload anymore images - permissions changed??
« Reply #5 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
« Last Edit: August 30, 2004, 04:37:12 am by gwdguy »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Can't upload anymore images - permissions changed??
« Reply #6 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.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

dannybunny

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Same Problem, but Same Solution doesn't work now.
« Reply #7 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.
Logged

dannybunny

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Can't upload anymore images - permissions changed??
« Reply #8 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
Logged

Nibbler

  • Guest
Re: Can't upload anymore images - permissions changed??
« Reply #9 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.
Logged

dannybunny

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Can't upload anymore images - permissions changed??
« Reply #10 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.
Logged

Nibbler

  • Guest
Re: Can't upload anymore images - permissions changed??
« Reply #11 on: April 24, 2005, 05:35:56 pm »

PM me an FTP account.
Logged

dannybunny

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Can't upload anymore images - permissions changed??
« Reply #12 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.