Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
blastwood
New Member
New Member



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

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

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! ]
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: 2024
Location: North Carolina

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

Have your webhost turn off zlib output compression in php.ini

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
blastwood







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

and can not do anything?
 
nuken







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

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');
//         }
//      }
//   }
}

 
blastwood







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

thanks
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©