Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Permission Denied Error in 1.2  (Read 3559 times)

0 Members and 1 Guest are viewing this topic.

Charles Scott

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 62
    • Holiday Confusion
Permission Denied Error in 1.2
« 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?
Logged

Nibbler

  • Guest
Re: Permission Denied Error in 1.2
« Reply #1 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
Logged

Charles Scott

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 62
    • Holiday Confusion
Re: Permission Denied Error in 1.2
« Reply #2 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.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Permission Denied Error in 1.2
« Reply #3 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?
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

Charles Scott

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 62
    • Holiday Confusion
Re: Permission Denied Error in 1.2
« Reply #4 on: June 13, 2005, 02:03:55 am »

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Permission Denied Error in 1.2
« Reply #5 on: June 13, 2005, 08:50:54 am »

you're running cpg1.3.2. Upgrade as suggested.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 16 queries.