Dynadot โ€” .com Registration $8.99

Error Messages

Spaceship Spaceship
Watch

a1nerd

Established Member
Impact
3
Just to start this off i know nothing whatsoever about PHP or how to program. I have a site where i upload images to online gallerys. When i upload a picture i get this error message everytime.

Warning: copy(/home/chicks/public_html/images/dir/1.jpg): failed to open stream: Permission denied in /home/chicks/public_html/classes/imageupload.class.php on line 24
There was an issue
Warning: imagejpeg(): Unable to open '/home/chicks/public_html/images/dir/thumbs/1.jpg' for writing in /home/chicks/public_html/classes/imageupload.class.php on line 57
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
You don't have write permissions on the folder you want to put the file.

Add write permission (via SSH or FTP program).
 
0
•••
Chmod the dir to 777
 
0
•••
If you don't know how to chmod it, it's very simple.

In your favorite FTP client, right click the directory where the online gallery is.


Choose Permissions or something similar, and change the numeric value to 777.


thats about it
 
0
•••
chmod 777 /images/
chmod 777 /images/dir/
chmod 777 /images/dir/thumbs/
 
0
•••
Do you think my host chaged the permissions since i never changed them to where they are at now?
 
0
•••
usually server owners/admins will change chmod when they see an abusive script. if it's 755 they change it to 777 so that it will not execute. other than that i don't see any good reasons to do that.
 
0
•••
I just changed all the permission like suggested to 777 and i'm still getting this error message

Warning: copy(/home/chicks/public_html/images/dir/5.jpg): failed to open stream: Permission denied in /home/chicks/public_html/classes/imageupload.class.php on line 24
There was an issue
Warning: imagejpeg(): Unable to open '/home/chicks/public_html/images/dir/thumbs/5.jpg' for writing in /home/chicks/public_html/classes/imageupload.class.php on line 57

Problem In resizing
 
0
•••
theres the Permission denied error again.. dont know what to say.


ive had this problem before and i think what i did was chmod the files and not the dir..


so in your case chmod imageupload.class.php ?
 
0
•••
what's on line 24 and line 57 for imageupload.class.php ? pls. paste it here.
chmod 777 also this one /classes/
and also where did you got the script or care to paste just the readme.txt or install.txt ?
let us solve this together. im here to help :)
 
0
•••
sounds like if you haven't changed anything, you ran out of disk space.
 
0
•••
If the dir was chmodded and it doesnt work, youve got problems, if you never did chmod the dir, thats what you need to do, the host shouldnt have touched it.
 
0
•••
a1nerd,

There could have been a small problem when chmodding the directories.

If you did it in FTP, DON'T! Many ftp clients don't change the permissions at all (from experience), the best way to do it is using the CPanel file manager. SmartFTP is the main problem client, not sure why.

Report back :)
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back