Problems with uploading of images - Pls help Problems with uploading of images - Pls help
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Problems with uploading of images - Pls help

Started by cpnoob, September 08, 2004, 09:44:13 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

cpnoob

Hi all,

I'm unable to successfully to upload images to my coppermine gallery. Seems to me like i set the permissions wrongly but i followed the setup instructions. Did i missed something somewhere? Thanks!


Warning: move_uploaded_file(./albums/edit/mHTTP_temp_fcc217b4.jpg): failed to open stream: Permission denied in /home/domain/public_html/username/coppermine/upload.php on line 1197
Warning: move_uploaded_file(): Unable to move '/tmp/php7SzyYU' to './albums/edit/mHTTP_temp_fcc217b4.jpg' in /home/domain/public_html/username/coppermine/upload.php on line 1197
Warning: is_dir(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 432
Warning: filemtime(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 440
Warning: unlink(./albums/edit/.): Permission denied in /home/domain/public_html/username/coppermine/upload.php on line 453
Warning: is_dir(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 432
Warning: filemtime(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 440
Warning: unlink(./albums/edit/..): Permission denied in /home/domain/public_html/username/coppermine/upload.php on line 453
Warning: is_dir(): Stat failed for ./albums/edit/WS_FTP.LOG (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 432
Warning: filemtime(): Stat failed for ./albums/edit/WS_FTP.LOG (errno=13 - Permission denied) in /home/domain/public_html/username/coppermine/upload.php on line 440
Warning: unlink(./albums/edit/WS_FTP.LOG): Permission denied in /home/domain/public_html/username/coppermine/upload.php on line 453

Joachim Müller

yes, you failed to CHMOD the albums dir and everything within it (this means the edit folder as well), so the webserver has read/write/execute permissions. If there's no folder named "edit" within your albums folder, create it, CHMOD it and try again.

Joachim

alan2525

I was happily uploading photos to the gallery and have a registered user who was also using the uploader on the guest account. Then once the user had exceeded their disk quote 1024Kb. I incresed this for their user group and ever since I have recieved the following errors...

Any help would be appreciated!



Warning: is_dir(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/bfbf40k/public_html/cpg132/upload.php on line 432

Warning: filemtime(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home/bfbf40k/public_html/cpg132/upload.php on line 440

Warning: unlink(./albums/edit/.): Permission denied in /home/bfbf40k/public_html/cpg132/upload.php on line 453

Warning: is_dir(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/bfbf40k/public_html/cpg132/upload.php on line 432

Warning: filemtime(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home/bfbf40k/public_html/cpg132/upload.php on line 440

Warning: unlink(./albums/edit/..): Permission denied in /home/bfbf40k/public_html/cpg132/upload.php on line 453

kegobeer

Take a look at every directory in /albums - verify edit exists and verify all directories' permissions are set at 777.
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

kesm

hello,

i have the same problem after increase the user group capacity i hava an error.
I look my edit folder and it is at 666 when i try to change it i have this error :
QuoteRequest denied.
Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation

and it exist and i have permissions because i'm the webmaster!

could you help me?

Casper

Try changing the folder name, then make a new edit folder, with the correct permissions.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

dahak

I started having this exact problem last night.  I was happily uploading images and all of a sudden, it gives me that error.  The edit directory is set at 666.  When I try to change it to 777, it says I don't have permission to change it even though I'm using the administrator account.

Joachim Müller

do as Casper suggested only one posting above yours...

Joachim

kesm

okay for the solution but there is a problem with the old folder "edit": i can't do any operations on it like open it or delete it so i can't have to folder nammed "edit"

tabaluga

thanks casper.
had the same problem and renaming 'edit' and creating a new edit with 777 did the trick.

Casper

To prevent this happening again, open your include/picmgmt.inc.php file, and find '0666'.

Change it to '0777'.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

nogobyhall

Every few weeks, this error happens to me and I have to manually change permissions on the edit folder to 0755 (from 0666) to get my gallery working again. I'm looking at Casper's suggestion of editing the picmgmt.inc.php file. Are there any other potential problems I could be running in to if I do edit it (and if that is the answer, how come the file hasn't been fixed already)?  ???

Tranz

Did you look in Config? What are the settings for "Default mode for directories"?

nogobyhall

Default mode for directories  0755
Default mode for files  0644

flipped cracker

Quote from: Casper on October 25, 2004, 01:48:12 PM
To prevent this happening again, open your include/picmgmt.inc.php file, and find '0666'.

Change it to '0777'.
finally a decent answer. i searched and searched the forums and the only answer i kept seeing was "Search". i realize how much it sucks to answer the same question more than once, but it would help to have a decent faq with this specific question in it since
Quote from: GauGauthis has been asked a million times over


anyway, thanks Casper.

shiv_379

I too have had this problem unexpectedly. I have a number of users on my gallery and everyone has been able to upload images quite happily until suddenly this has happened.

What exactly causes this?

I will try the solutions suggested above.
~Shiv

nogobyhall

Let us know how you get on after editing that file - I've held off because I'm puzzled as to why that file needs changing and concerned that editing it could open up other problems. There must be a reason it is set to 0666...