coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Charles Scott on June 10, 2005, 05:40:39 PM

Title: Permission Denied Error in 1.2
Post by: Charles Scott on June 10, 2005, 05:40:39 PM
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?
Title: Re: Permission Denied Error in 1.2
Post by: Nibbler on June 10, 2005, 06:41:33 PM
You are not running 1.2

CHMOD albums/edit to 777/755 and update your gallery to 1.3.3
Title: Re: Permission Denied Error in 1.2
Post by: Charles Scott on June 10, 2005, 09:07:15 PM
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.
Title: Re: Permission Denied Error in 1.2
Post by: kegobeer on June 10, 2005, 09:11:35 PM
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?
Title: Re: Permission Denied Error in 1.2
Post by: Charles Scott on June 13, 2005, 02:03:55 AM
http://wwgallery.pcinfoman.com
Title: Re: Permission Denied Error in 1.2
Post by: Joachim Müller on June 13, 2005, 08:50:54 AM
you're running cpg1.3.2. Upgrade as suggested.