1
fredski
Warning [PHP] URL-Rewriter error
  • 2004/8/4 10:22

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I get the following error on my pages

Warning [PHP]: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in file include/cp_functions.php line 33

The following is the first few lines of my cp_functions.php file, can anyone see a problem with the code? I've never changed this file. When I turn off gzip compression the error goes away. Its not a big problem, it was just niggling me

define('XOOPS_CPFUNC_LOADED'1);

function 
xoops_cp_header()
{
    global 
$xoopsConfig$xoopsUser;
    if (
$xoopsConfig['gzip_compression'] == 1) {
        
ob_start("ob_gzhandler");
    } else {
        
ob_start();
    }
    if (!
headers_sent()) {
        
header ('Content-Type:text/html; charset='._CHARSET);
        
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
        
header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");
        
header('Cache-Control: no-store, no-cache, must-revalidate');
        
header("Cache-Control: post-check=0, pre-check=0"false);
        
header("Pragma: no-cache");
        }
    echo 
"<!DOCTYPE html PUBLIC '//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>";
    echo 
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'._LANGCODE.'" lang="'._LANGCODE.'">

Login

Who's Online

250 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 250


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits