"output handler 'ob_gzhandler' cannot be used twice&quo

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   "output handler 'ob_gzhandler' cannot be used twice&quo
carcinogen
CZ Newbie
carcinogen has been a member for over 20 year's 20 Year Member
Age: 37
Gender: Female
Status: Offline
Joined: Jul 10, 2004
0.00 posts per day
Posts: 16
Points: 1,986
   
Recently I've installed several different mods and other addons both from this site and others. The only problems I encountered were very minor ones that I fixed without much trouble. However, after sorting out a small parsing error in one of the files associated with Remote Avatar Size Control mod, I started getting the warning in the thread title, which is odd because the files it says are corrupted aren't in any way related to the mods I installed -- not even the avatar one.

This is the error I get when I try accessing anything within the Forum admin panel. The rest of the page loads and functions fine but this keeps showing up at the top of every single page:



Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /public_html/main/modules/Forums/admin/page_header_admin.php on line 81


The section of code in the page_header_admin.phph around line 81 is as follows:


{
        $phpver = phpversion();

        $useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ?

$_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;

        if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') ||

strstr($useragent,'Gecko') ) )
        {
                if ( extension_loaded('zlib') )
                {
                        ob_start('ob_gzhandler');
                }
        }


Then I get this similar error whenever I load any of the publicly viewable forum pages. Again, everything seems to be working fine, just that this shows up at the top of every page:



Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /public_html/main/includes/page_header.php on line 96


And the section of code around line 96 of page_header.php:


{
        $phpver = phpversion();

        $useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ?

$_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;

        if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') ||

strstr($useragent,'Gecko') ) )
        {
                if ( extension_loaded('zlib') )
                {
                        ob_start('ob_gzhandler');
                }
        }


Could somebody please help me translate this error, and suggest ways of fixing it ?


Back to top Reply with quote
#2   re: "output handler 'ob_gzhandler' cannot be used twice
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
You can get rid of that error by going into your forums admin section > cofiguration, and disable GZip Compression in the settings.

Simple explanation: The data is already compressed by the server, so enabling it in the forums would be like trying to compress it twice.



Back to top Reply with quote
#3   
carcinogen
CZ Newbie
carcinogen has been a member for over 20 year's 20 Year Member
Age: 37
Gender: Female
Status: Offline
Joined: Jul 10, 2004
0.00 posts per day
Posts: 16
Points: 1,986
   
Ah, that explains it. Thanks ! =]

Btw, does this mean that I don't have to worry about enabling GZip Compression in the future ? (I'm not sure what exactly it does to begin with, but, just thought I'd make sure that particular setting isn't something I'll need to change at some point later on.)



Back to top Reply with quote
#4   re: "output handler 'ob_gzhandler' cannot be used twice
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
I can't predict the future, but for now you don't need it. icon_smile.gif



Back to top Reply with quote
#5   
carcinogen
CZ Newbie
carcinogen has been a member for over 20 year's 20 Year Member
Age: 37
Gender: Female
Status: Offline
Joined: Jul 10, 2004
0.00 posts per day
Posts: 16
Points: 1,986
   
Right, thanks again !



Back to top Reply with quote
#6   re: "output handler 'ob_gzhandler' cannot be used twice
cceller
CZ Super Newbie
 Codezwiz Site Donator
cceller has been a member for over 20 year's 20 Year Member
usa.gif northcarolina.gif
Gender: Male
Website:
Status: Offline
Joined: Aug 01, 2004
0.00 posts per day
Posts: 36
Points: 3,766
   
What if you are getting the error BUT you already have GZIP disabled?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

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
You cannot attach files in this forum
You cannot download files in this forum