View Full Version : [fixed] Avatars don't work after 2.6 upgrade
VenusGirl
Mon 27th May '02, 9:04pm
Hi
Title says it all, they no longer work after my 2.6 upgrade from 2.5.
Kim
Steve Machol
Mon 27th May '02, 9:31pm
Do you have a phpinfo.php file? If not create a text file with this content:
<?php
phpinfo();
?>Upload it to your forum directory and post the URL here.
VenusGirl
Mon 27th May '02, 9:35pm
Originally posted by smachol
Do you have a phpinfo.php file? If not create a text file with this content:
<?php
phpinfo();
?>Upload it to your forum directory and post the URL here.
Here you are:
http://www.agirlonvenus.com/phpinfo.php
Mike Sullivan
Mon 27th May '02, 10:00pm
(I assume you mean avatar uploading)
Ok, this is the second person to report this. I had to change some code related to uploads to handle register_globals being off. So, questions:
1. Do attachments work? (How about any other file uploading areas at all?)
2. Do you get any error messages?
<edit>
Correction: I believe you are the first person to report this, related to 2.2.6. So if NO uploading works, my next question becomes:
3. Would it be at all possible to get FTP access to see if I can figure out the problem?
</edit>
VenusGirl
Mon 27th May '02, 10:03pm
Originally posted by Ed Sullivan
(I assume you mean avatar uploading)
Ok, this is the second person to report this. I had to change some code related to uploads to handle register_globals being off. So, questions:
1. Do attachments work? (How about any other file uploading areas at all?)
2. Would it be at all possible to get FTP access to see if I can figure out the problem?
I dont allow attachments since this board is hosted on my own server (my computer), Because of this I won't allow ftp access.
Avatars can be uploaded, they just are not showing up since the upgrade, it is just the empty box with an x in it's place.
Kim
Steve Machol
Mon 27th May '02, 10:03pm
I don't see anything in your PHP info that would cause a problem. Try setting 'Allow Image Size Checking Failure?' to yes in your Admin CP to see if this fixes the problem.
VenusGirl
Mon 27th May '02, 10:08pm
Originally posted by smachol
I don't see anything in your PHP info that would cause a problem. Try setting 'Allow Image Size Checking Failure?' to yes in your Admin CP to see if this fixes the problem.
No that doesn't fix it either.
Kim
Steve Machol
Mon 27th May '02, 10:10pm
Fill out a support ticket at:
http://www.vbulletin.com/members/support.php
Be sure to include the login info to your Admin CP and FTP.
bigmattyh
Mon 27th May '02, 11:15pm
I don't know if you've fixed it in the hour since your last post, but I can see avatars on your board just fine.
VenusGirl
Mon 27th May '02, 11:20pm
Originally posted by bigmattyh
I don't know if you've fixed it in the hour since your last post, but I can see avatars on your board just fine.
I restored the avatar file.
Kim
Mike Sullivan
Mon 27th May '02, 11:26pm
Originally posted by VenusGirl
I restored the avatar file. Ok, I need you to bring back the non-working avatar.php. If you don't want to break avatars, save it as avatarnew.php or something non-standard.
VenusGirl
Mon 27th May '02, 11:29pm
Originally posted by Ed Sullivan
Ok, I need you to bring back the non-working avatar.php. If you don't want to break avatars, save it as avatarnew.php or something non-standard.
Ok what will this do?
Kim
Mike Sullivan
Mon 27th May '02, 11:47pm
Originally posted by VenusGirl
Ok what will this do?
Kim Allow me to analyze the problem. "It doesn't work" doesn't really give me much to go on... :)
bigmattyh
Mon 3rd Jun '02, 8:00am
Mike (Ed) --
I just realized that I have this problem too. I'm running 2.2.6, under PHP 4.2.1 and RedHat 7.1. The problem definitely seems to be in the new avatar.php file, because after restoring the 2.2.5 file, everything worked the way it should.
Basically, none of the avatars were showing for any users who had chosen custom avatars.
phpinfo() here. (http://forum.icomix.com/admin/phpinfo.php) (Please note: this is a test board, although it will be active shortly.)
Mike Sullivan
Mon 3rd Jun '02, 12:07pm
I committed what should be a fix for this a little while ago. It'll be in the final version.
bigmattyh
Mon 3rd Jun '02, 8:26pm
Well, I just upgraded to 2.2.6 final, and avatars are broken again. I replaced the old 2.2.5 avatar.php file (which was working) with the newly-released 2.2.6 avatar.php, and it's returning broken image links again.
The above link still works if you need it.
Mike Sullivan
Mon 3rd Jun '02, 9:50pm
Upload the broken version so I can take a look at what's happening. Rename it to something other than avtar.php if you want to.
I still can't reproduce this problem and the 2.2.6 final version should behave EXACTLY likely the 2.2.5 version that you say works.
bigmattyh
Mon 3rd Jun '02, 9:54pm
This is the new 2.2.6 version. (http://forum.icomix.com/avatar1.php?userid=1)
This is the old (working) 2.2.5 version. (http://forum.icomix.com/avatar.php?userid=1)
phpinfo() (http://forum.icomix.com/admin/phpinfo.php)
I'm baffled, myself. :)
Mike Sullivan
Mon 3rd Jun '02, 9:58pm
Ahh, crap. I see why now. Turn your error_reporting down in php.ini to not report notices (E_ALL & ~E_NOTICE) or stick "$debug = 0;" in your config.php.
*thinks for a sec, then goes to look at avatar.php*
What the...? Line 9 is "@error_reporting(7);". avatar.php already tries to do what I just asked you to do. Weird.
bigmattyh
Mon 3rd Jun '02, 10:07pm
In php.ini, I have display_errors set to On... might that be the problem? (It's a non-standard setting.)
Mike Sullivan
Mon 3rd Jun '02, 10:09pm
Actually, this might be an obscure PHP bug...
Remove the @ from the @error_reporting(7); line I posted and it works correctly. The @ -- which is just supposed to surpress error messages -- also causes it to return 0 (false?) instead of the previous error_reporting value.
bigmattyh
Mon 3rd Jun '02, 10:12pm
All right, it works now. Thanks, Mike!
Mike Sullivan
Mon 3rd Jun '02, 10:16pm
Ok, it seems it's not a bug: http://bugs.php.net/bug.php?id=17438 . *sigh* I'll mention this to John and see what he wants to do with the zip file's version.
CReverse4Care
Tue 4th Jun '02, 6:56am
Originally posted by Ed Sullivan
Remove the @ from the @error_reporting(7); line I posted and it works correctly. The @ -- which is just supposed to surpress error messages -- also causes it to return 0 (false?) instead of the previous error_reporting value.
i have the same 'custom avatar problem' after upgrading to v. 2.2.6 (did it today).
there is no @ in the error_reporting(7); line in the avatar.php. what's wrong?
if i try to view the avatar in for example netscape (using right-click + view image), it says
Warning: Undefined variable: debug in E:\WC\C02042201\www\vb\avatar.php on line 18
Warning: Cannot add header information - headers already sent by (output started at E:\WC\C02042201\www\vb\avatar.php:18) in
E:\WC\C02042201\www\vb\avatar.php on line 54
Warning: Cannot add header information - headers already sent by (output started at E:\WC\C02042201\www\vb\avatar.php:18) in
E:\WC\C02042201\www\vb\avatar.php on line 56
Warning: Cannot add header information - headers already sent by (output started at E:\WC\C02042201\www\vb\avatar.php:18) in
E:\WC\C02042201\www\vb\avatar.php on line 57
Warning: Cannot add header information - headers already sent by (output started at E:\WC\C02042201\www\vb\avatar.php:18) in
E:\WC\C02042201\www\vb\avatar.php on line 58
Warning: Cannot add header information - headers already sent by (output started at E:\WC\C02042201\www\vb\avatar.php:18) in
E:\WC\C02042201\www\vb\avatar.php on line 59
Warning: Cannot add header information - headers already sent by (output started at E:\WC\C02042201\www\vb\avatar.php:18) in
E:\WC\C02042201\www\vb\avatar.php on line 60
ÿØÿà6‡S!)Ã.î^ÒÙ9åXç¬ôsU]Ey?l·Ì*y(y e;¸”v§ŸR+»<ó4©¹%fCC#sŠZqÖR
8ôªö¯…\Æ™ŸI!Lc*ÂÁøÏ§——¨ûRá«‹™ìðáéŸÅu£+Bp“2k-Ô/_VÆØ’?ܸïxn¤uœGÐŽz)j?ˆwŽ£?¬/êRpØÑU_íYK_Œ•Ÿ^s©Ç®;å.j2øÓ•Kû2SRtòíïŒ_•‡
(this error is on Zero's avatar on this page (http://www.billy-corgan.com/vb/showthread.php?s=&threadid=225) (same error for every user's avatar), if it's of any interest)
Mike Sullivan
Tue 4th Jun '02, 12:23pm
There has to be a @ on that line, otherwise you wouldn't be having the problem. It's the first character there.
Either way, there are still two other ways to deal with it:
Turn your error_reporting down in php.ini to not report notices (E_ALL & ~E_NOTICE) or stick "$debug = 0;" in your config.php.
BTW, nice site. :)
CReverse4Care
Tue 4th Jun '02, 4:55pm
Originally posted by Ed Sullivan
There has to be a @ on that line, otherwise you wouldn't be having the problem. It's the first character there.
Either way, there are still two other ways to deal with it:
no, no @ in that line, but it got fixed using $debug = 0; in config.php. thanks for good & quick helping :)
Originally posted by Ed Sullivan
BTW, nice site. :)
thanks! :o :)
Fuitad
Mon 10th Jun '02, 4:44pm
How come we don't all have this bug in 2.2.6? I'm curious...
Ren
Mon 17th Jun '02, 1:43am
I have this bug in 2.2.6 attachments and uploading avatars don't work
Steve Machol
Mon 17th Jun '02, 1:47am
Did you apply the fix Ed posted?
Ren
Mon 17th Jun '02, 1:57am
yes sir , now I don't get a error for attachments but they don't even show now ..trying the avatar now.
I used the $debug = 0; fix in the config.php
Update , the avatar doesn't work ethier . Once I try to upload it takes me to the password recovery page .
Steve Machol
Mon 17th Jun '02, 2:00am
Do you have a phpinfo.php file? If not create a text file with this content:
<?php
phpinfo();
?>Then upload it to your forum directory and post the URL here.
Ren
Mon 17th Jun '02, 2:08am
Php Info (http://www.10sixtalk.com/forum/info.php)
Steve Machol
Mon 17th Jun '02, 2:23am
Thanks. The php info looks Ok.
What's the URL to your forums? Did you upgrade from a previous version? And finally do you have any hacks installed?
Ren
Mon 17th Jun '02, 2:32am
http://www.10sixtalk.com/forum/
Yes I upgraded from 2.2.5 and No hacks other than chat Installed
I have used this same design since 2.2.5 and everything worked fine til 2.2.6
Ren
Mon 17th Jun '02, 1:32pm
I don't know if this will help but I took the config.php line out that you suggested which took the error away but when you did a attachment nothing showed up.
So here is the error I get when trying to upload a attachment.
Method Not Implemented
ÚÁbð·¹ÆC'e*T€xÒl€Ð,±ˆi}MšCjp to /index.htm not supported.
Invalid method in request ÚÁbð·¹ÆC'e*T€xÒl€Ð,±ˆi}MšCjp
Also did a Fresh install of just VB 2.2.6 for testing purposes of course and It gives me the same error on a fresh install.
Ren
Mon 17th Jun '02, 8:40pm
so am I just screwed or what ? I never had a problem with VB til php 4.2 and 2.2.6 now all hell is breaking lose:(
Steve Machol
Mon 17th Jun '02, 10:04pm
Fill out a support ticket at:
http://www.vbulletin.com/members/support.php
Be sure to include the login info to your Admin CP and FTP.
Ren
Tue 18th Jun '02, 12:12am
I figured out my own problem ..I forgot to chmod the /tmp folder to 777 and it fixed it :p
Steve Machol
Tue 18th Jun '02, 12:46am
Glad to hear it. :)
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights