Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: marcnyc - helmikuu 02, 2005, 10:25:55 IP

Otsikko: problems adding avatars to profile
Kirjoitti: marcnyc - helmikuu 02, 2005, 10:25:55 IP
One of my users complains that she can't add an avatar from an URL.
I tried it myself and I got this error:

<b>Warning</b>:  unlink(attachments/avatar_317.png): No such file or directory in <b>/home/chaind00/domains/chaindlk.com/public_html/community/Sources/ManageAttachments.php</b> on line <b>311</b><br />
<br />
<b>Warning</b>:  imagepng(): Unable to open 'attachments/avatar_317.png.tmp' for writing in <b>/home/chaind00/domains/chaindlk.com/public_html/community/Sources/Subs-Graphics.php</b> on line <b>174</b><br />
<br />
<b>Warning</b>:  rename(attachments/avatar_317.png.tmp,attachments/avatar_317.png): No such file or directory in <b>/home/chaind00/domains/chaindlk.com/public_html/community/Sources/Subs-Graphics.php</b> on line <b>125</b><br />

The attachments directory (shouldn't it be the avatars folder anyway?) is chmodded to 777.
What else could be wrong?
Otsikko: Re: problems adding avatars to profile
Kirjoitti: marcnyc - helmikuu 04, 2005, 09:12:14 IP
any ideas?
Otsikko: Re: problems adding avatars to profile
Kirjoitti: [Unknown] - helmikuu 12, 2005, 03:19:09 AP
Your attachments path seems to be wrong, or not writable.

Use a full path, not just "attachments".

-[Unknown]