PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
blastwood
New Member
New Member


Joined: Sep 11, 2010
Posts: 8
Location: Bucharest

PostPosted: Tue Oct 04, 2011 10:21 am Reply with quote Back to top

I installed RN in my servars and you get in my pages above the first line of above ground site there is an error

Code:
Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' conflicts with 'zlib output compression' in /home/mpbestor/public_html/mainfile.php on line 68


You can see the error and
Only registered users can see links on this board!
Get registered or login to the forums!

It is found on this forum about installing Google Tap goat or something?

Thanks
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Tue Oct 04, 2011 2:30 pm Reply with quote Back to top

Have your webhost turn off zlib output compression in php.ini
View user's profile Send private message Send e-mail Visit poster's website
blastwood
New Member
New Member


Joined: Sep 11, 2010
Posts: 8
Location: Bucharest

PostPosted: Tue Oct 04, 2011 2:32 pm Reply with quote Back to top

and can not do anything?
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Wed Oct 05, 2011 6:17 am Reply with quote Back to top

If your host will not turn off zlib output compression, you could comment out the code in mainfile.php.

Look in main file around line 57 to 73 and find this section of code:

Code:

if ($phpver >= '4.0.4pl1' && isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'],'compatible')) {
   if (extension_loaded('zlib')) {
      @ob_end_clean();
      ob_start('ob_gzhandler');
   }
} elseif ($phpver > '4.0' && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && !empty($_SERVER['HTTP_ACCEPT_ENCODING'])) {
   if (strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
      if (extension_loaded('zlib')) {
         $do_gzip_compress = true;
         ob_start(array('ob_gzhandler',5));
         ob_implicit_flush(0);
         if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
            header('Content-Encoding: gzip');
         }
      }
   }
}


and change to:

Code:

if ($phpver >= '4.0.4pl1' && isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'],'compatible')) {
   if (extension_loaded('zlib')) {
      @ob_end_clean();
      ob_start('ob_gzhandler');
   }
//} elseif ($phpver > '4.0' && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && !empty($_SERVER['HTTP_ACCEPT_ENCODING'])) {
//   if (strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
//      if (extension_loaded('zlib')) {
//         $do_gzip_compress = true;
//         ob_start(array('ob_gzhandler',5));
//         ob_implicit_flush(0);
//         if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
//            header('Content-Encoding: gzip');
//         }
//      }
//   }
}

View user's profile Send private message Send e-mail Visit poster's website
blastwood
New Member
New Member


Joined: Sep 11, 2010
Posts: 8
Location: Bucharest

PostPosted: Wed Oct 05, 2011 4:48 pm Reply with quote Back to top

thanks
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum