Switched hosts, I can see images from before but cannot upload new ones Switched hosts, I can see images from before but cannot upload new ones
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Switched hosts, I can see images from before but cannot upload new ones

Started by fatesjoke03, February 07, 2008, 10:55:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fatesjoke03

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.

just_some_guy

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

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?

just_some_guy

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

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?

Joachim Müller

Make the folder writable by applying permissions as suggested. Read up the permissions section of the docs.

fatesjoke03

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.


Joachim Müller

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

fatesjoke03

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.