Permission Denied Error in 1.2 Permission Denied Error in 1.2
 

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

Permission Denied Error in 1.2

Started by Charles Scott, June 10, 2005, 05:40:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Charles Scott

I am running v1.2 and whenever a user tries to upload a file, it gives them the following error:
----------------------------------------------------
Warning: is_dir(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home2/pcinfom/public_html/wwgallery2/upload.php on line 432
Warning: filemtime(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in /home2/pcinfom/public_html/wwgallery2/upload.php on line 440
Warning: unlink(./albums/edit/.): Permission denied in /home2/pcinfom/public_html/wwgallery2/upload.php on line 453
Warning: is_dir(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home2/pcinfom/public_html/wwgallery2/upload.php on line 432
Warning: filemtime(): Stat failed for ./albums/edit/.. (errno=13 - Permission denied) in /home2/pcinfom/public_html/wwgallery2/upload.php on line 440
Warning: unlink(./albums/edit/..): Permission denied in /home2/pcinfom/public_html/wwgallery2/upload.php on line 453
----------------------------------------------------
It still gives the the opportunity to upload though, but when they submit the uploaded file, they get the following error:
----------------------------------------------------
Warning: move_uploaded_file(./albums/edit/mHTTP_temp_6d8e2f0e.jpg): failed to open stream: Permission denied in /home2/pcinfom/public_html/wwgallery2/upload.php on line 1197
Warning: move_uploaded_file(): Unable to move '/tmp/php0t08Og' to './albums/edit/mHTTP_temp_6d8e2f0e.jpg' in /home2/pcinfom/public_html/wwgallery2/upload.php on line 1197
----------------------------------------------------
And it also says:
----------------------------------------------------
0 uploads were successful.
----------------------------------------------------
which means that nothing was uploaded. When I goto look at my ftp permissions, I see that the "albums/edit" folder has been changed to "666" and to a different user. I created a new gallery in a different folder and set the permissions for the "albums/edit" folder to "777" and when I try to upload again, it changes it to "666" and changes the user.

Ideas?

Nibbler

You are not running 1.2

CHMOD albums/edit to 777/755 and update your gallery to 1.3.3

Charles Scott

I cannot chmod my "albums/edit" folder because something in the Coppermine program keeps change the ownership of the folder to user "99". Now I do not own it.

Also, why is this in the 1.3 forum? I am currently using 1.2.

kegobeer

1.2 doesn't have any code to use the /edit directory.  That's a 1.3 function.  How about a link to your site?
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

Charles Scott


Joachim Müller

you're running cpg1.3.2. Upgrade as suggested.