[wp-trac] [WordPress Trac] #4342: gzhandler warning

WordPress Trac wp-trac at lists.automattic.com
Sat May 26 18:46:37 GMT 2007


#4342: gzhandler warning
--------------------------+-------------------------------------------------
 Reporter:  F3rn4nd0      |       Owner:  anonymous
     Type:  defect        |      Status:  new      
 Priority:  normal        |   Milestone:  2.4      
Component:  Optimization  |     Version:  2.2      
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 Sometimes I can see a warning in the upper side like this:
 ''Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after
 'URL-Rewriter'''  related to file functions.php

 I found a patch using:

 {{{
   if ( extension_loaded('zlib') )
       {
          ob_end_clean();
          ob_start('ob_gzhandler');
       }
    }
 }}}

 instead of


 {{{
       if ( extension_loaded('zlib') )
       {
          ob_start('ob_gzhandler');
       }
    }
 }}}

 It seems to work

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4342>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list