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?
You are not running 1.2
CHMOD albums/edit to 777/755 and update your gallery to 1.3.3
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.
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?
http://wwgallery.pcinfoman.com
you're running cpg1.3.2. Upgrade as suggested.