NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Error Messages

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-14-2006, 02:02 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
a1nerd's Avatar
Join Date: Apr 2004
Posts: 548
a1nerd is on a distinguished road
 



Error Messages


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
a1nerd is offline  
Old 05-14-2006, 02:35 PM   #2 (permalink)
Senior Member
 
Constantin's Avatar
Join Date: Jan 2006
Posts: 1,130
Constantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud of
 



You don't have write permissions on the folder you want to put the file.

Add write permission (via SSH or FTP program).
Constantin is offline  
Old 05-14-2006, 03:54 PM   #3 (permalink)
NamePros Regular
 
cvxdes's Avatar
Join Date: Oct 2005
Location: Milford MA
Posts: 692
cvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud of
 



Chmod the dir to 777
cvxdes is offline  
Old 05-14-2006, 08:06 PM   #4 (permalink)
New Member
Join Date: May 2006
Posts: 9
prototypexx is an unknown quantity at this point
 



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
prototypexx is offline  
Old 05-14-2006, 08:13 PM   #5 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
chmod 777 /images/
chmod 777 /images/dir/
chmod 777 /images/dir/thumbs/
__________________
Nabaza.com - Amaia
weblord is offline  
Old 05-14-2006, 08:26 PM THREAD STARTER               #6 (permalink)
NamePros Regular
 
a1nerd's Avatar
Join Date: Apr 2004
Posts: 548
a1nerd is on a distinguished road
 



Do you think my host chaged the permissions since i never changed them to where they are at now?
a1nerd is offline  
Old 05-14-2006, 08:44 PM   #7 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
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.
__________________
Nabaza.com - Amaia
weblord is offline  
Old 05-14-2006, 08:45 PM THREAD STARTER               #8 (permalink)
NamePros Regular
 
a1nerd's Avatar
Join Date: Apr 2004
Posts: 548
a1nerd is on a distinguished road
 



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
a1nerd is offline  
Old 05-14-2006, 09:00 PM   #9 (permalink)
New Member
Join Date: May 2006
Posts: 9
prototypexx is an unknown quantity at this point
 



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 ?
prototypexx is offline  
Old 05-14-2006, 09:11 PM   #10 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
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
__________________
Nabaza.com - Amaia
weblord is offline  
Old 05-15-2006, 09:12 AM   #11 (permalink)
NamePros Member
Join Date: Apr 2005
Posts: 117
mikesherov will become famous soon enoughmikesherov will become famous soon enough
 



sounds like if you haven't changed anything, you ran out of disk space.
mikesherov is offline  
Old 05-15-2006, 09:53 AM   #12 (permalink)
Senior Member
 
Xyzer's Avatar
Join Date: Aug 2005
Location: United Kindom
Posts: 1,502
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
 


Tsunami Relief AIDS/HIV
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.
Xyzer is offline  
Old 05-15-2006, 04:36 PM   #13 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
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
BillyConnite is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:39 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger