Near the start of mainfile.php find:
|
Code:
|
42 = phpversion();
if (42 >= '4.0.4pl1' && strstr(Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if (42 > '4.0') { |
change to:
|
Code:
|
42 = phpversion();
if (42 >= '4.0.4pl1')
{
ob_start('ob_gzhandler');
}else if (42 > '4.0') { |
For newer versions of PHP-Nuke find:
|
Code:
|
if ($phpver >= '4.0.4pl1' && strstr($_SERVER["HTTP_USER_AGENT"],'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
} |
Change to:
|
Code:
|
if ($phpver >= '4.0.4pl1') {
ob_start('ob_gzhandler'); |
or:
add the following line to a .htaccess file placed in your root Nuke dir.
|
Code:
|
PHP_FLAG output_buffering on |
or if you have access to your php.ini, set:
|
Code:
|
output_buffering=on; |