The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Coppermine Photo Gallery: Help Please

Discussion in 'cPanel Developers' started by torgee, Jan 17, 2006.

  1. torgee

    torgee Registered

    Joined:
    Jan 16, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I installed the add on script for the coppermin photogallery but when ever i go to upload something it gives me this error:
    File Name/URL - Error Message
    1. aoeu4.gif - Impossible to move.
    How do i thix this priblem?
     
  2. carock

    carock Well-Known Member

    Joined:
    Sep 25, 2002
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    St. Charles, MO
    The path listed in the error I received was ./albums/edit/... I logged in and saw that the albums directory had 777 perms, but the edit directory was 755.

    I changed it to 777 and was able to upload, but I got another error after I tried saving the caption and stuff.

    Failed to create directory albums/userpics/10001 !

    The userpics directory also has 755 perms.

    I changed them, hit refresh, and the page loaded stating the previous pic had a problem, but was saved.

    I went back, and the picture was not being displayed. I cliecked upload again, and I received another permission error.

    Warning: is_dir(): Stat failed for ./albums/edit/. (errno=13 - Permission denied)
    Warning: filemtime(): Stat failed for ./albums/edit/. (errno=13 - Permission denied) in
    etc...

    I looked at the permiisions again, and for some reason, the edit directory changed ownership AND permissions. It's now owned by user and group nobody and has 755 permissions.

    Something in the Coppermine scripts must have done this.

    Chuck
     
  3. carock

    carock Well-Known Member

    Joined:
    Sep 25, 2002
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    St. Charles, MO
    My fix

    I had to edit the Coppermine code to get the image upload to work for me.

    I edited the include/picmgmt.inc.php file and changed this line.

    @mkdir($CONFIG['fullpath'].'edit',0666);

    And changed that to 777

    Now the uploads work without errors.

    I don't know what repercussions this will have, or if any other functions of Coppermine are effected.

    Chuck
     

Share This Page