Welcome Guest ( Log In | Register )



2 Pages V   1 2 >  
Reply to this topicStart new topic
> Annoying Me. Cannot Upload Avatars, Grrr.
twitch
post May 4 2005, 06:20 AM
Post #1





Guests






When I try to upload an avatar to my forums (for me) it wont let me.

This is the error i get when it does.


"Warning: copy(./images/avatars/169878766642786a237ad13.gif): failed to open stream: Permission denied in /home/twitch/public_html/forums/includes/usercp_avatar.php on line 239

Warning: Cannot modify header information - headers already sent by (output started at /home/twitch/public_html/forums/includes/usercp_avatar.php:239) in /home/twitch/public_html/forums/includes/page_header.php on line 475

Warning: Cannot modify header information - headers already sent by (output started at /home/twitch/public_html/forums/includes/usercp_avatar.php:239) in /home/twitch/public_html/forums/includes/page_header.php on line 477

Warning: Cannot modify header information - headers already sent by (output started at /home/twitch/public_html/forums/includes/usercp_avatar.php:239) in /home/twitch/public_html/forums/includes/page_header.php on line 478"

Why me? :cry:

Oh, and how can I fix it.
Go to the top of the page
 
+Quote Post
jet
post May 4 2005, 06:40 AM
Post #2


Advanced Member
Group Icon

Group: Members
Posts: 140
Joined: 24-April 05
From: Australia
Member No.: 4,289



I have honestly never seen or heard of that before.. I can only recommend the usual stuff - check whether is it the right size and stuff?
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post May 4 2005, 07:32 AM
Post #3


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411



QUOTE(twitch @ May 4 2005, 01:20 PM)
When I try to upload an avatar to my forums (for me) it wont let me.

This is the error i get when it does.
"Warning: copy(./images/avatars/169878766642786a237ad13.gif): failed to open stream: Permission denied in /home/twitch/public_html/forums/includes/usercp_avatar.php on line 239

Why me? :cry:

Oh, and how can I fix it.
*



Check your first line - see that Permission denied message ?? Most likely the read permissions for your avatar directory are not set properly.. use your FTP tool or the cPanel file manager to change the permissions for your avatar dir to +777 initially and test. If it works out, change it back to 755. That should do the trick.
Go to the top of the page
 
+Quote Post
twitch
post May 5 2005, 02:42 PM
Post #4





Guests






Thank you. Thank you. Thank you. Thank you.

I forgot all about the permissions. rolleyes.gif

I have just changed it and it works. m^e you deserve a medal or two.
Go to the top of the page
 
+Quote Post
leafbunk
post Dec 20 2006, 07:08 AM
Post #5


Member - Active Contributor
Group Icon

Group: Members
Posts: 76
Joined: 7-December 06
Member No.: 18,008



Ok well I'm having an avatar problem as well, but I thought instead of posting a new topic I'd post here to keep the avatar issues together in the same topic.

I have changed the permissions to 777 for the avatars folder where all the avatars should be stored, so that solved my problem of getting the same error that the original creator of this topic had. My problem now though is that the avatars won't show up on the forum even though they have actually been successfully uploaded. Under avatar settings I have "enable uploading" checked yes, and "enable remote avatars" checked yes as well. The file size I've specified is under 50kb and no larger than 100x100 pixels. The image I uploaded meets all these requirements, and is in the directory, but won't show up on the forum, nor in the "Profile" options. All users are able to "display avatars", as that option is checked yes as well.

Anyways, I'd really appreciate it if someone might be able to help me figure out my problem. It might just be something I totally overlooked....but thanks in advance for any suggestions you might have to fix this. cool.gif


Go to the top of the page
 
+Quote Post
vhortex
post Dec 22 2006, 03:43 AM
Post #6


Guilty Until Proven Innocent
Group Icon

Group: Members
Posts: 372
Joined: 13-April 05
Member No.: 3,937



QUOTE(leafbunk @ Dec 20 2006, 03:08 PM) *

Ok well I'm having an avatar problem as well, but I thought instead of posting a new topic I'd post here to keep the avatar issues together in the same topic.

I have changed the permissions to 777 for the avatars folder where all the avatars should be stored, so that solved my problem of getting the same error that the original creator of this topic had. My problem now though is that the avatars won't show up on the forum even though they have actually been successfully uploaded. Under avatar settings I have "enable uploading" checked yes, and "enable remote avatars" checked yes as well. The file size I've specified is under 50kb and no larger than 100x100 pixels. The image I uploaded meets all these requirements, and is in the directory, but won't show up on the forum, nor in the "Profile" options. All users are able to "display avatars", as that option is checked yes as well.

Anyways, I'd really appreciate it if someone might be able to help me figure out my problem. It might just be something I totally overlooked....but thanks in advance for any suggestions you might have to fix this. cool.gif


what script are you using to upload the avatar?

***

i can help if you can be specific on what you are using, what version and i hope it was also hosted on asta since i can mirror ur problem here..
Go to the top of the page
 
+Quote Post
leafbunk
post Dec 22 2006, 10:29 PM
Post #7


Member - Active Contributor
Group Icon

Group: Members
Posts: 76
Joined: 7-December 06
Member No.: 18,008





My most sincere apologies, but....I have absolutely no idea how to answer that question because I don't understand it. It's my very first time creating a site and having a forum, and I have no idea what you mean by script. Perhaps if I give you more information, it may magically be the answer you are looking for...

The file I downloaded and am using for the forum says phpBB 2.0.21. I set the permissions for the avatar folder to 777, so now the pictures actually upload....and they're in the avatar folder, but they just don't show up on the forum at all. And to upload them, I just selected the "enable uploading of avatars" button and found the file on my computer and uploaded it. I'm sure that it's sounds like it's a bloody miracle that I got that forum up and running since I've no idea what the hell I'm talking about.
Go to the top of the page
 
+Quote Post
WeaponX
post Dec 22 2006, 11:59 PM
Post #8


Way Out Of Control - You need a life :)
Group Icon

Group: Members
Posts: 1,086
Joined: 21-June 05
From: New York
Member No.: 6,440



You are not using any script to do this. It's all in the phpBB forum software.

Had to play around with it a little on my local computer before I figured out the problem. The issue is that you MUST create a folder to store these avatar images into. The default images/avatars/gallery/ is not enough. Create a folder inside the gallery folder and give it a descriptive name. You can create more folders to categorize the images. This creates the different drop down menu in the Avatar (Profile) settings. So create the new folder/folders and put your images into them accordingly.

It worked perfectly over here smile.gif
Go to the top of the page
 
+Quote Post
leafbunk
post Dec 23 2006, 04:16 AM
Post #9


Member - Active Contributor
Group Icon

Group: Members
Posts: 76
Joined: 7-December 06
Member No.: 18,008



I can't get it to work at all for some reason. I created a two new folders and now this is the path - images/avatars/gallery/user_avatars/test. This means that the category that should show up under the gallery dropdown menu is "test", right? Well I can't get anything to show up at all there. I changed the permissions for the folder to 777 too to see if that was it, but it didn't change anything.

And I've also got a question about not just the gallery avatars, but the personal avatars as well. I want to allow users to upload their own avatar and so I specified a path in images/avatars/users (a folder I created for personal avatars users upload), and I successfully uploaded a picture into that folder. The problem is though that under "profile options" for the user, the avatar doesn't even show up to be selected. When I (as the administrator) view my own profile by clicking "management" under "user admin" I can see the avatar plain as day. However, when I click the "profile" button, like I'm just going to edit my personal profile, the avatar doesn't show up. Does that make sense? I don't know what to do, and it's really confusing me especially since the pictures are in the files, but they're just not showing up at all to be selected.

Am I totally missing something? It seems like I really must be if it works for you and not me. I did follow your directions, and I did change the path so it stores them in the right place.... sad.gif Thank you by the way for helping me. Sorry my problem is turning out to be a big pain.
Go to the top of the page
 
+Quote Post
WeaponX
post Dec 24 2006, 03:17 AM
Post #10


Way Out Of Control - You need a life :)
Group Icon

Group: Members
Posts: 1,086
Joined: 21-June 05
From: New York
Member No.: 6,440



You can not create another sub directory folder under the other new folder you created (user_avatars). You MUST create just a top/parent folder in the gallery folder. Like user_avatars or anything else. So just put your images directly into that user_avatars and any other folder you created under gallery. Do not create any more new folders inside the other folder (like user_avatars) or it will NOT show up. Create as many folders you like inside the gallery folder though. Images will appear.

I just left the avatar storage directories by default. It doesn't cause any problems. The thing missing was creating the new folders inside the gallery folder.

If you can't see the pictures next to your posts in the forum, then you probably haven't enabled it yet. Go back into the Administrator panel->General Admin->Configuration and scroll down to the Avatar Settings area. Under Enable gallery avatars, make sure it's set to Yes. Save the changes and go into your Profile. Scroll down to the Avatar control panel and click on Show Gallery. Everything should work from there.
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. IE And It's Annoying NBSP (Non-Breakable Space)(2)
  2. Annoying Virus!(3)
  3. Astahost Forums Now Ads Free!(38)
  4. How Do U Upload Music?(10)
  5. How To Download/upload File Through A Ftp Proxy Server With 'curl'(3)
  6. Uploading File Using Delphi To A Php Upload Script(4)
  7. Upload Button In Php(2)
  8. Problems With Vbulletin Upload(4)
  9. Php File Upload(3)
  10. Having Trouble Deleting .pureftpd-upload...(3)
  11. Why Does Youtube Degrade The Quality Of Your Video Upon Upload?(5)
  12. Cpanel File Manager - File Upload Problem - Permission Denied - Pleasse Help.(13)
  13. No Internet(6)
  14. What Folder Do I Upload Vbulletin To?(9)
  15. A New Beta Of Google Talk(6)
  1. Worst "trojan" Ever And It Takes Over Iexplore(15)
  2. Free Large-file Sharing Host(12)
  3. Need Help To Write Code To Upload/download (FTP)(3)
  4. File Upload With AJAX(1)
  5. PHP Script To Upload A File(13)
  6. File Upload Instructions For New Users(15)
  7. Putfile(1)
  8. PHP File Upload Works... But Stupid IE(3)
  9. Looking For Upload Scripts That Support Over 150MB(3)
  10. Can I Upload Audio And Video Files?(8)
  11. Avatars(4)
  12. Php.ini Limits Upload_max_filesize(14)
  13. What Is The Upload Amount Of My Account ?(10)
  14. I Need A File Upload Script In Asp (stores To Db)(2)
  15. Webhost - Very Annoying Process(6)


 



- Lo-Fi Version Time is now: 6th July 2008 - 11:45 PM