coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: fatesjoke03 on February 07, 2008, 10:55:29 PM

Title: Switched hosts, I can see images from before but cannot upload new ones
Post by: fatesjoke03 on February 07, 2008, 10:55:29 PM
I have read the trouble-shooting and made sure permissions are correct.

Debug is on and I have a test user set up.

url is www.triskelionsociety.com/gallery

User name: testuser2
password: qwerty

Admin approval is off.

I cannot upload pictures. Well it says it is uploaded but when I go to put it in the folder I get an error: Destination directory is not writable by the script !

File: /home/mistral/public_html/gallery/upload.php - Line: 2246

I tried changing the upload.php to writable but that just messed things up more, so it has been changed back. One thing that is weird it my folders "userpics" and "edit" as well as the index are not in the "albums" folder. They are in the main folder. I tried moving them to the "albums" folder but that just erased all the images from the gallery. So I moved it back.

Any help would be awesome!

Also, a little off topic, but is there anyway to make pics non-right clickable?

Thanks in advance.
Title: Re: Switched hosts, I can see images from before but cannot upload new ones
Post by: just_some_guy on February 08, 2008, 09:45:26 AM
QuoteI tried changing the upload.php to writable but that just messed things up more, so it has been changed back. One thing that is weird it my folders "userpics" and "edit" as well as the index are not in the "albums" folder. They are in the main folder. I tried moving them to the "albums" folder but that just erased all the images from the gallery. So I moved it back.

The error is informing you that there is no where to put the files, you need to then create the edit and userpics directories in the albums folder first, then apply the correct permisions to the folders.

NB/ I would advise you to make a backup because according to your description the ftp is erasing folders, which can't be good.
Title: Re: Switched hosts, I can see images from before but cannot upload new ones
Post by: fatesjoke03 on February 08, 2008, 04:30:37 PM
Can I just create the folders "edit" and "userpics" in the "albums"folder and that will work or do I need certain things in them?
Title: Re: Switched hosts, I can see images from before but cannot upload new ones
Post by: just_some_guy on February 08, 2008, 04:41:02 PM
Yes, and set permissons. If you feel unsure, make a backup.
Title: Re: Switched hosts, I can see images from before but cannot upload new ones
Post by: fatesjoke03 on February 08, 2008, 04:55:43 PM
Okay, created folders and set them to 777, old pics are still there(which is good) and when I try to upload I get this error"
Destination directory is not writable by the script !

File: /home/mistral/public_html/gallery/db_input.php - Line: 331

So the error is on a different line of the php file?
Title: Re: Switched hosts, I can see images from before but cannot upload new ones
Post by: Joachim Müller on February 08, 2008, 07:40:22 PM
Make the folder writable by applying permissions as suggested. Read up the permissions section of the docs.
Title: Re: Switched hosts, I can see images from before but cannot upload new ones
Post by: fatesjoke03 on February 08, 2008, 07:49:44 PM
I have check with the folder set to 755 and 777. Neither way works. Everything I have read says those are the permission values needed to upload. They are currently set back to 755.

Title: Re: Switched hosts, I can see images from before but cannot upload new ones
Post by: Joachim Müller on February 08, 2008, 07:55:25 PM
From the permissions section of the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#permissions):
QuoteIf you can't figure how to set permissions properly, ask your webhost for support.
We can't determine for you what permissions you need to apply. Therefor, the instructions say to ask the webhost, since they are the authority. You might have an ownership issue as well, so ask your webhost as well to fix any potential CHOWN-issues.
Title: Re: Switched hosts, I can see images from before but cannot upload new ones
Post by: fatesjoke03 on February 08, 2008, 10:24:43 PM
I have fixed the issue. Tech support from the host said the permission values were okay for what I was trying to do.

I ended up installing a new instance of Coppermine in another directory and copying the "userpics" "edit" and the php file over to the new directory. I then imported the old database and changed the directory info in the Config menu. Everything is fine now, all of my old files are there and I can upload new ones as well.

Thanks for the help, hopefully this can help someone else in the future.