Logo
FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
Avatars
Goto page Previous  1, 2
 
Post new topic   Reply to topic    www.fanart-central.net Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Edward_Elric_1308
Elder Than Dirt


Joined: 07 Jul 2005
Posts: 5013
Location: My account's gonna be deleted

PostPosted: Thu Apr 03, 2008 6:47 am    Post subject: Reply with quote

I think what the problem is, is trying to upload an avvie that's bigger han 64 x 64. I tried that earlier with a pic over 100 x 100. Anything bigger than 64 x 64 will give you the error message. Confused
Back to top
View user's profile Send private message
Stratadrake
Elder Than Dirt


Joined: 05 May 2004
Posts: 13724
Location: Moo

PostPosted: Thu Apr 03, 2008 9:15 am    Post subject: Reply with quote

If it has problems resizing avvies over 64x64, why would it resize avvies over 100x100 without problem?
_________________
Strata here: [url=http://www.nanowrimo.org/eng/user/242293]Nanowrimo[/url] - [url=www.fanart-central.net/user-Stratadrake.php]FAC[/url] - [url=http://stratadrake.deviantart.com]dA[/url] - [url=www.furaffinity.net/user/Stratadrake/]FA[/url]
[size=9]Disclaimer: Posts may contain URLs. Click [url=http://tvtropes.org/pmwiki/pmwiki.php/Main/TVTropesWillRuinYourLife]at your own risk.[/url][/size]
Back to top
View user's profile Send private message
Edward_Elric_1308
Elder Than Dirt


Joined: 07 Jul 2005
Posts: 5013
Location: My account's gonna be deleted

PostPosted: Thu Apr 03, 2008 10:19 am    Post subject: Reply with quote

The system is obviously buggy. It worked fine before.
Back to top
View user's profile Send private message
Sora121
Developer


Joined: 02 Oct 2006
Posts: 2591
Location: I'm here some place

PostPosted: Thu Apr 03, 2008 3:27 pm    Post subject: Reply with quote

It's hard to say what the problem could be, seeing as any of the changes we made last update could have effected this in some small way.
That file isn't exactly small nor simple.

Edward, could you copy and paste all the error text (The output in the header) from that picture you posted, I would like to know where the problem is halted so I could try and back trace it.

Thanks.
Back to top
View user's profile Send private message MSN Messenger
Edward_Elric_1308
Elder Than Dirt


Joined: 07 Jul 2005
Posts: 5013
Location: My account's gonna be deleted

PostPosted: Thu Apr 03, 2008 4:08 pm    Post subject: Reply with quote

Here they are. Looks like a bug.

[quote][u][b]Error[/b][/u]
Error resizing[/quote]

[quote][function.unlink]: No such file or directory in [b]/usr/home/sites/www.fanart-central.net/www/register.php[/b] on line 191[/quote]


It's unusual. My current skin was the New one, and I chose a new file to be my new avvie, then I switched the New skin with the Silver one, and I got both messages.

When you try to change your avvie using the New skin, but not changing the skin, you only get the first error message.
Back to top
View user's profile Send private message
Sora121
Developer


Joined: 02 Oct 2006
Posts: 2591
Location: I'm here some place

PostPosted: Thu Apr 03, 2008 7:08 pm    Post subject: Reply with quote

Thanks, I'll look into it further and get back to you ASAP.

Sorry, we killed your Avatar again... Sad
Back to top
View user's profile Send private message MSN Messenger
Edward_Elric_1308
Elder Than Dirt


Joined: 07 Jul 2005
Posts: 5013
Location: My account's gonna be deleted

PostPosted: Thu Apr 03, 2008 7:10 pm    Post subject: Reply with quote

O.o, I just noticed that. It's no problem.

You're welcome. Glad I could help! Wink
Back to top
View user's profile Send private message
Sora121
Developer


Joined: 02 Oct 2006
Posts: 2591
Location: I'm here some place

PostPosted: Thu Apr 03, 2008 9:14 pm    Post subject: Reply with quote

Think I've found it.

This would explain why it only works when people upload .jpg images.
[code:1]
if(!file_exists(AVATAR_DIR.'/'.$uid.'-'.$time.'.jpg'))
{
fatal_error("Error resizing");
}
[/code:1]

As you can see the code here (~ Line 221 in beta file) uses ".jpg" as its extension when the file is saved with the uploaded files extension (.jpg/.gif/.png/etc).

As for any other problems, I'd have to do more looking. I'm heading out for the night, though. I've made changes to Beta to correct the .jpg only error.
Back to top
View user's profile Send private message MSN Messenger
cstdenis
Evil Overlord


Joined: 31 Dec 1969
Posts: 6490
Location: In the tubes.

PostPosted: Thu Apr 03, 2008 10:07 pm    Post subject: Reply with quote

Looks like I broke it a while ago when I added timestamps to avatar filenames quite a while ago to fix the problem of avatars not appearing to change due to browser caching.

Fix it in beta then port the patch to stable when it works.
_________________
You will obey or molten silver will be poured into your ears.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.fanart-central.net Forum Index -> General Help All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum