FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » upload avatar failure
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
upload avatar failure [message #18638] Tue, 01 June 2004 08:40 Go to next message
bayboy is currently offline  bayboy   United States
Messages: 3
Registered: June 2004
Karma: 0
Junior Member
I just installed fudforum 2.6.3 and trying to upload avatar for user. But I always got error:

Warning: unlink(c:/program files/apache group/apache/htdocs/goluck/FUDforum/tmp/) [function.unlink]: Permission denied in c:\program files\apache group\apache\htdocs\goluck\fudforum2\theme\English\register.php on line 1769

My system:

1) windows 2000 professional
2) php 4.3.0
3) fud 2.6.3
4) I tried to delete .htaccess under fudforum/tmp dir but still no luck.

Pls help. Thanks.

Re: upload avatar failure [message #18641 is a reply to message #18638] Tue, 01 June 2004 12:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Make sure that the webserver has write permissions to that directory.

FUDforum Core Developer
Re: upload avatar failure [message #18647 is a reply to message #18641] Tue, 01 June 2004 17:06 Go to previous messageGo to next message
bayboy is currently offline  bayboy   United States
Messages: 3
Registered: June 2004
Karma: 0
Junior Member
I am using win 2000 pro with FAT32 system. that directory is accessible to anyone.

I have removed .htaccess ( deny from all ) from that directory and restarted apache 1.3.28. but it still got same error.

All it says :

"the specified url does not contain a valid image"

But it does.

Could you let me know what's wong ?

You can try on my website:

http://www.goluck.com/fudforum2/ with user bayboy/bayboy

Thanks
Re: upload avatar failure [message #18648 is a reply to message #18647] Tue, 01 June 2004 18:10 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This looks like a windows specific problem. Please give me admin access to the forum (send info via private message) and I can try to figure out the cause and the solution to the problem.

FUDforum Core Developer
Re: upload avatar failure [message #18649 is a reply to message #18648] Tue, 01 June 2004 19:11 Go to previous messageGo to next message
bayboy is currently offline  bayboy   United States
Messages: 3
Registered: June 2004
Karma: 0
Junior Member
I have send admin access to you. Thanks a lot for your help.
Re: upload avatar failure [message #19341 is a reply to message #18649] Sun, 11 July 2004 20:57 Go to previous messageGo to next message
laurenz is currently offline  laurenz   Norway
Messages: 6
Registered: July 2004
Location: Norway
Karma: 0
Junior Member
Have you found a solution to the problem? I have run into the same thing when trying to upload files.

Laurenz
Re: upload avatar failure [message #19348 is a reply to message #19341] Mon, 12 July 2004 14:48 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I was unable to get admin access to the forum/site. So no resolution yet, all I can say is that I cannot replicate the problem.

FUDforum Core Developer
Re: upload avatar failure [message #19355 is a reply to message #19348] Tue, 13 July 2004 14:04 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The problem has been found and fixed. The patch can be found here:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=2894


FUDforum Core Developer
Re: upload avatar failure [message #19371 is a reply to message #19355] Wed, 14 July 2004 08:58 Go to previous messageGo to next message
laurenz is currently offline  laurenz   Norway
Messages: 6
Registered: July 2004
Location: Norway
Karma: 0
Junior Member
Thank that helped!

But now I have run into another problem.

After uploading an avatar, which works fine now, I cannot update. This is what I get:

Quote:

Warning: copy(C:/W3Sites/www.jernbane.net/root/www/postvogna/images/custom_avatars/) : failed to open stream: Permission denied in C:\W3Sites\www.jernbane.net\root\www\postvogna\theme\default\register.php on line 1965

Warning: Cannot modify header information - headers already sent by (output started at C:\W3Sites\www.jernbane.net\root\www\postvogna\theme\default\register.php:1 965) in C:\W3Sites\www.jernbane.net\root\www\postvogna\theme\default\register.php on line 1200



Does that make any sense?

Laurenz
Re: upload avatar failure [message #19374 is a reply to message #19371] Wed, 14 July 2004 12:54 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Send me the login info and I'll take a look.

FUDforum Core Developer
Re: upload avatar failure [message #19478 is a reply to message #19374] Sat, 24 July 2004 16:43 Go to previous messageGo to next message
laurenz is currently offline  laurenz   Norway
Messages: 6
Registered: July 2004
Location: Norway
Karma: 0
Junior Member
Hi!

I send a PM some time ago, did you get a change to take a look?
No rush, just wondering.

Best regards,
Laurenz
Re: upload avatar failure [message #24212 is a reply to message #19478] Wed, 20 April 2005 02:44 Go to previous messageGo to next message
Lurker is currently offline  Lurker   United States
Messages: 7
Registered: April 2005
Karma: 0
Junior Member
I seem to be having the EXACT same issue, you would think someone would fix it by 2005. Well anyway I would much appreciate a link to a patch that works, as this one is broken! Sad

[Updated on: Wed, 20 April 2005 02:45]

Report message to a moderator

Re: upload avatar failure [message #24213 is a reply to message #24212] Wed, 20 April 2005 02:47 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The forum bug was fixed, what's left is a permissions issue on the system of the forum not having write access to a certain directory.

FUDforum Core Developer
Re: upload avatar failure [message #24216 is a reply to message #24213] Wed, 20 April 2005 02:52 Go to previous messageGo to next message
Lurker is currently offline  Lurker   United States
Messages: 7
Registered: April 2005
Karma: 0
Junior Member
Oh yeah? Tell that to my forum Confused I get the same exact error as he did same situation (different paths of course)

Warning: copy(c:/wamp/www/forum/images/custom_avatars/) [function.copy]: failed to open stream: Permission denied in c:\wamp\www\forum\theme\default\register.php on line 2019

Warning: Cannot modify header information - headers already sent by (output started at c:\wamp\www\forum\theme\default\register.php:2019) in c:\wamp\www\forum\theme\default\register.php on line 2055

its windows so there are no write permissions on the folder, and the folder does exist so whats the problem? Whats strange is in the admin area you can upload avatars, but if you try to change user avatars it won't upload period, i get the same error.

[Updated on: Wed, 20 April 2005 02:54]

Report message to a moderator

Re: upload avatar failure [message #24227 is a reply to message #24216] Wed, 20 April 2005 13:42 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Problem found and resolved, it was actually a bug in Windows' implementation of tempnam() function.

Patch can be found here:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=3507

Completely new register.php.t at:
http://cvs.prohost.org/c/index.cgi/FUDforum/getfile/install/forum_data/src/ register.php.t?v=1.147

Once you've replaced the file, rebuild your theme.


FUDforum Core Developer
Re: upload avatar failure [message #24236 is a reply to message #18638] Wed, 20 April 2005 15:25 Go to previous messageGo to next message
laurenz is currently offline  laurenz   Norway
Messages: 6
Registered: July 2004
Location: Norway
Karma: 0
Junior Member
No Message Body

[Updated on: Wed, 20 April 2005 15:26]

Report message to a moderator

Re: upload avatar failure [message #24237 is a reply to message #24227] Wed, 20 April 2005 15:26 Go to previous messageGo to next message
laurenz is currently offline  laurenz   Norway
Messages: 6
Registered: July 2004
Location: Norway
Karma: 0
Junior Member
Is the patch intergrated in the full download as well?

Best regards,
Laurenz Edelman
Re: upload avatar failure [message #24238 is a reply to message #24237] Wed, 20 April 2005 15:30 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
yes, the full download includes the latest (with the fix) version of that file.

FUDforum Core Developer
Re: upload avatar failure [message #24241 is a reply to message #24238] Wed, 20 April 2005 16:03 Go to previous messageGo to next message
laurenz is currently offline  laurenz   Norway
Messages: 6
Registered: July 2004
Location: Norway
Karma: 0
Junior Member
Thank you!

I'll give it a try.

Laurenz
Re: upload avatar failure [message #24253 is a reply to message #24241] Thu, 21 April 2005 03:38 Go to previous message
Lurker is currently offline  Lurker   United States
Messages: 7
Registered: April 2005
Karma: 0
Junior Member
Thanks for looking into it, I know there was something screwy going on. Anyway glad I could help point out a problem!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: trsahpenguenb.ttf font problems
Next Topic: maillist, SQL syntax, near '{SQL_TABLE_PREFIX}fl_5 WRITE'
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 08:52:23 GMT 2024

Total time taken to generate the page: 0.03754 seconds