random error message

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

random error message

Post by macangelo »

Hi,

suddenly, I sometimes get, as far as I can tell randomly, at the top of the page the following error message:
Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /var/www/web37/html/index.php on line 52
the rest of the page is displayed correctly. When I punch reload everything is fine again.

I tried to read the index.php and found around line 52 the following:
if($phpwcms["compress_page"]) {
if(ini_get('zlib.output_compression')) {
ini_set( 'zlib.output_compression', '1' );
ini_set( 'zlib.output_compression_level', $phpwcms["compress_page"] );
ob_start();
} else {
ob_start("ob_gzhandler"); //with old style GZ Compression
}
} else {
ob_start(); //without Compression (or use browsers default)
}
the URL of this page is http://www.artexpression.de . Thanks for any help.
macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Q: Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in ...

A: This happens because Apache already compresses the output due to your php.ini settings. You may have to lower or disable the compression setting in "config.inc.php":

Code: Select all

$phpwcms["compress_page"]     = 3;        //wenn 1 = Seite komprimieren, 0 = Kompresion aus
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Post by macangelo »

Thanks,

I set it to "0". Tested and it didn't appear. I'll have to observe it since it happened randomly.
$phpwcms["compress_page"]     = 0;        //wenn 1 = Seite komprimieren, 0 = Kompression aus
thanks a lot

macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
Post Reply