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: Switched hosts, I can see images from before but cannot upload new ones  (Read 4671 times)

0 Members and 1 Guest are viewing this topic.

fatesjoke03

  • Coppermine newbie
  • Offline Offline
  • Posts: 12

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.
« Last Edit: February 09, 2008, 09:55:20 am by Joachim Müller »
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Switched hosts, I can see images from before but cannot upload new ones
« Reply #1 on: February 08, 2008, 09:45:26 am »

Quote
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.

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.
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

fatesjoke03

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Switched hosts, I can see images from before but cannot upload new ones
« Reply #2 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?
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Switched hosts, I can see images from before but cannot upload new ones
« Reply #3 on: February 08, 2008, 04:41:02 pm »

Yes, and set permissons. If you feel unsure, make a backup.
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

fatesjoke03

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Switched hosts, I can see images from before but cannot upload new ones
« Reply #4 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Switched hosts, I can see images from before but cannot upload new ones
« Reply #5 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.
Logged

fatesjoke03

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Switched hosts, I can see images from before but cannot upload new ones
« Reply #6 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.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Switched hosts, I can see images from before but cannot upload new ones
« Reply #7 on: February 08, 2008, 07:55:25 pm »

From the permissions section of the docs:
Quote
If 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.
Logged

fatesjoke03

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Switched hosts, I can see images from before but cannot upload new ones
« Reply #8 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.