Uploading Avatar

If you have problems with logging in please use the password recovery procedure.

Moderator: Forum Guards

Uploading Avatar

Postby Gustertote » Sun Jun 05, 05 2:22 am

Hey, im having a problem with uploading pictures from my machine onto my avatar...it wont let me for some reason...altho i can guess from what it sez at the top....

Warning: copy(./images/avatars/211572731242a2535cad596.jpg): failed to open stream: Permission denied in /home/dxalpha/public_html/forum/includes/usercp_avatar.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 482

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 484

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 485


wtf?

help please...
BLUE and RED
User avatar
Gustertote
Addict
 
Posts: 503
Joined: Thu Dec 11, 03 6:54 pm
Location: LONDON

Postby Alistair » Sun Jun 05, 05 3:43 am

gayed
User avatar
Alistair
Forum Hero
 
Posts: 2575
Joined: Sun Jan 30, 05 2:02 pm
Location: England, UK

Postby Alex » Sun Jun 05, 05 9:09 am

Maybe the premissions aren't set right.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby ~ô¿ô~Nobody~ » Sun Jun 05, 05 11:06 am

btw.. i wasn't able to upload an attachment for a post in my MPKeypad topic too
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby James » Sun Jun 05, 05 11:19 am

I'll let Darren fix this.
I am dead.
User avatar
James
Alpha
 
Posts: 28885
Joined: Sun Oct 26, 03 9:14 pm
Location: Home

Postby ~D[A]rren~ » Sun Jun 05, 05 12:52 pm

~[A]LTKJAY~ wrote:I'll let Darren fix this.


Nah you won't, It's a database error, "Calls for Dae" 8)

JC
~D[A]rren~
Alpha
 
Posts: 2851
Joined: Fri Nov 07, 03 8:04 pm
Location: Preston, Lancs, England

Postby DarkKnight » Sun Jun 05, 05 1:01 pm

~D[A]rren~ wrote:
~[A]LTKJAY~ wrote:I'll let Darren fix this.


Nah you won't, It's a database error, "Calls for Dae" 8)

JC


Unless you store you avatars in the db, it is a file permission problem ;)

Warning: copy(./images/avatars/211572731242a2535cad596.jpg): failed to open stream: Permission denied in /home/dxalpha/public_html/forum/includes/usercp_avatar.php on line 238


It can not open a stream to copy it.

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 482

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 484

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 485


Those are caused by the first error sending the headers early.
Image
I'm a lover, that's why I do this posting.
I don't need the forum,
I do it to save you ignorant bastards from your self.
User avatar
DarkKnight
Forum Super Hero
 
Posts: 4064
Joined: Wed Dec 10, 03 10:01 am
Location: Under the bridge.

Postby ~D[A]rren~ » Sun Jun 05, 05 1:03 pm

DarkKnight wrote:
~D[A]rren~ wrote:
~[A]LTKJAY~ wrote:I'll let Darren fix this.


Nah you won't, It's a database error, "Calls for Dae" 8)

JC


Unless you store you avatars in the db, it is a file permission problem ;)

Warning: copy(./images/avatars/211572731242a2535cad596.jpg): failed to open stream: Permission denied in /home/dxalpha/public_html/forum/includes/usercp_avatar.php on line 238


It can not open a stream to copy it.

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 482

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 484

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 485


Those are caused by the first error sending the headers early.


That's what I meant. :P He deals with that too, unless you can tell me what to do?

JC
~D[A]rren~
Alpha
 
Posts: 2851
Joined: Fri Nov 07, 03 8:04 pm
Location: Preston, Lancs, England

Postby DarkKnight » Sun Jun 05, 05 1:11 pm

~D[A]rren~ wrote:
DarkKnight wrote:
~D[A]rren~ wrote:
~[A]LTKJAY~ wrote:I'll let Darren fix this.


Nah you won't, It's a database error, "Calls for Dae" 8)

JC


Unless you store you avatars in the db, it is a file permission problem ;)

Warning: copy(./images/avatars/211572731242a2535cad596.jpg): failed to open stream: Permission denied in /home/dxalpha/public_html/forum/includes/usercp_avatar.php on line 238


It can not open a stream to copy it.

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 482

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 484

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 485


Those are caused by the first error sending the headers early.


That's what I meant. :P He deals with that too, unless you can tell me what to do?

JC


Depends on your setup, try this: chmod -R 0775 /home/dxalpha/avatars/
(Assuming thats where the avatars are kept.)
Image
I'm a lover, that's why I do this posting.
I don't need the forum,
I do it to save you ignorant bastards from your self.
User avatar
DarkKnight
Forum Super Hero
 
Posts: 4064
Joined: Wed Dec 10, 03 10:01 am
Location: Under the bridge.

Postby ~D[A]rren~ » Sun Jun 05, 05 1:14 pm

DarkKnight wrote:
~D[A]rren~ wrote:
DarkKnight wrote:
~D[A]rren~ wrote:
~[A]LTKJAY~ wrote:I'll let Darren fix this.


Nah you won't, It's a database error, "Calls for Dae" 8)

JC


Unless you store you avatars in the db, it is a file permission problem ;)

Warning: copy(./images/avatars/211572731242a2535cad596.jpg): failed to open stream: Permission denied in /home/dxalpha/public_html/forum/includes/usercp_avatar.php on line 238


It can not open a stream to copy it.

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 482

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 484

Warning: Cannot modify header information - headers already sent by (output started at /home/dxalpha/public_html/forum/includes/usercp_avatar.php:238) in /home/dxalpha/public_html/forum/includes/page_header.php on line 485


Those are caused by the first error sending the headers early.


That's what I meant. :P He deals with that too, unless you can tell me what to do?

JC


Depends on your setup, try this: chmod -R 0775 /home/dxalpha/avatars/
(Assuming thats where the avatars are kept.)


So I just set the chmod number on that folder to 0775?

JC
~D[A]rren~
Alpha
 
Posts: 2851
Joined: Fri Nov 07, 03 8:04 pm
Location: Preston, Lancs, England

Postby DarkKnight » Sun Jun 05, 05 1:17 pm

Indeed.

Although doing it recursivly is always good. :)
Image
I'm a lover, that's why I do this posting.
I don't need the forum,
I do it to save you ignorant bastards from your self.
User avatar
DarkKnight
Forum Super Hero
 
Posts: 4064
Joined: Wed Dec 10, 03 10:01 am
Location: Under the bridge.

Postby ~D[A]rren~ » Sun Jun 05, 05 1:19 pm

DarkKnight wrote:Indeed.

Although doing it recursivly is always good. :)


What does that mean? :P and it isn't that folder, the folder I can find with all the uploaded files in is called 'files' and its CHMOD properties are set to 755 not 775, should it be set to 775?

JC
~D[A]rren~
Alpha
 
Posts: 2851
Joined: Fri Nov 07, 03 8:04 pm
Location: Preston, Lancs, England

Postby DarkKnight » Sun Jun 05, 05 1:30 pm

Ok, chmod changes the permissions on any given file/directory.

0775 is just the code that really means this:
~~~~~~~Read~~~Write~~~Execute
Owner~~~~X~~~~~X~~~~~~X~~
Group ~~~~X~~~~~X~~~~~~X~~
Others~~~~X~~~~~~~~~~~~X~~

In other words, the group and the ownder can write to it.
The code to allow anyone to write to it would be 0777, but thats a bad idea.

Also, your avatars are held in a different place to the files (although possibly in the files dir), if uploads work, simply give avatars the same permissions. :)
Image
I'm a lover, that's why I do this posting.
I don't need the forum,
I do it to save you ignorant bastards from your self.
User avatar
DarkKnight
Forum Super Hero
 
Posts: 4064
Joined: Wed Dec 10, 03 10:01 am
Location: Under the bridge.

Postby ~D[A]rren~ » Sun Jun 05, 05 2:05 pm

DarkKnight wrote:Ok, chmod changes the permissions on any given file/directory.

0775 is just the code that really means this:
~~~~~~~Read~~~Write~~~Execute
Owner~~~~X~~~~~X~~~~~~X~~
Group ~~~~X~~~~~X~~~~~~X~~
Others~~~~X~~~~~~~~~~~~X~~

In other words, the group and the ownder can write to it.
The code to allow anyone to write to it would be 0777, but thats a bad idea.

Also, your avatars are held in a different place to the files (although possibly in the files dir), if uploads work, simply give avatars the same permissions. :)


Ok, I found the avatars folder, the uploading files don't work on 755, or 775 so whats the point changing the avatars one? DK, got any ideas?

Code: Select all
Darren AKA [A]JCDenton says:
DK? I'm confused
Stevie/123 164 145 166 151 145 says:
About what?
Darren AKA [A]JCDenton says:
http://www.dxalpha.com/forum/viewtopic.php?p=73053#73053
Stevie/123 164 145 166 151 145 says:
Ah.
Darren AKA [A]JCDenton says:
The uploading files dont work on the original number of 755, and then i chmodded the folder to the 775 number and it still dont work
Stevie/123 164 145 166 151 145 says:
Damn...
Stevie/123 164 145 166 151 145 says:
What kind of host is this?
Stevie/123 164 145 166 151 145 says:
Pro host?
Darren AKA [A]JCDenton says:
www.collateralfx.net
Stevie/123 164 145 166 151 145 says:
(Linux I'm assuming)
Darren AKA [A]JCDenton says:
yes
Stevie/123 164 145 166 151 145 says:
Ok, try this real quick, chmod the directory to 0777. Try uploading an avvie, and if it doesn't work, chmod it back to 0755
Darren AKA [A]JCDenton says:
ok hang on
Darren AKA [A]JCDenton says:
Upload Error: Could not upload Attachment to ./files/1_125.jpg.
 

Stevie/123 164 145 166 151 145 says:
Does it state why?
Darren AKA [A]JCDenton says:
no
Stevie/123 164 145 166 151 145 says:
Ah, thats files
Stevie/123 164 145 166 151 145 says:
Not avvies
Darren AKA [A]JCDenton says:
yes
Stevie/123 164 145 166 151 145 says:
Did you chmod files instead of avvies?
Darren AKA [A]JCDenton says:
yes, becuase there the same number, 755
Stevie/123 164 145 166 151 145 says:
Ah.
Stevie/123 164 145 166 151 145 says:
Hmmm...
Stevie/123 164 145 166 151 145 says:
How very strange...
Darren AKA [A]JCDenton says:
yes
Darren AKA [A]JCDenton says:
im going to try and chmod avvies to 775 and see if they work
Stevie/123 164 145 166 151 145 says:
I'd probly have to be sitting in front of it to help anymore 
Stevie/123 164 145 166 151 145 says:
If it doesn't work as 0777, then it isn't a file permission problem... :-k
Darren AKA [A]JCDenton says:
im going to try avvies though, files might be a different problem
Stevie/123 164 145 166 151 145 says:
Yeah.
Stevie/123 164 145 166 151 145 says:
just so you know; 0777 would let any user on the server write to that file.
If that fixes the problem, then your web host has PHP running as a user it would seem...
Stevie/123 164 145 166 151 145 says:
user with a lower uid anyways.
Darren AKA [A]JCDenton says:
k avvies work on 777
Darren AKA [A]JCDenton says:
well it says avatars must be less than 20kb so its working
Stevie/123 164 145 166 151 145 says:
Cewl.
Stevie/123 164 145 166 151 145 says:
You should talk to your web hoster and see if there is anyway to get them working besides using 0777, since it isn't 100% secure.
Darren AKA [A]JCDenton says:
i will do when he comes back online, or get dae to, but why dosent files work?
Stevie/123 164 145 166 151 145 says:
Does it spit out any errors?
Darren AKA [A]JCDenton says:
no, just that Upload Error: Could not upload Attachment to ./files/1_125.jpg.
 

Stevie/123 164 145 166 151 145 says:
Also, are you using IE or Firefox?
Darren AKA [A]JCDenton says:
IE, but other people have had the prob
Stevie/123 164 145 166 151 145 says:
Ah, nm, it would give more errors...
Darren AKA [A]JCDenton says:
k ill talk to dae and hoster,thanks
Stevie/123 164 145 166 151 145 says:
no worries.
Stevie/123 164 145 166 151 145 says:
It'll probly be something small.
Darren AKA [A]JCDenton says:
cool
Stevie/123 164 145 166 151 145 says:
Although no doubt it will need to be set as 0777 if that got the avvies working...
Stevie/123 164 145 166 151 145 says:
Ah well, wait for dae.
Darren AKA [A]JCDenton says:
Yeah i will, thanks mate.

:?

JC
~D[A]rren~
Alpha
 
Posts: 2851
Joined: Fri Nov 07, 03 8:04 pm
Location: Preston, Lancs, England


Return to Site and forum questions

Who is online

Users browsing this forum: No registered users and 23 guests
cron