Please Help "Warning: ob_start(): second array member is not a valid method"

Hi;

I’m using a php nuke web site for many years and today i’m getting this error when i try to open the web site.

Warning: ob_start(): second array member is not a valid method in /home/…/public_html/mainfile.php on line 89. I showed line 89 with bold text.

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 (ereg(“MSIE”, $_SERVER[‘HTTP_USER_AGENT’])) {
header(‘Content-Encoding: gzip’);
}
}
}
}

However when i entered the “MySQL Databases” menu in my Cpanel, i see the warning message below.

“This server is running an unsupported MySQL version (5.1). Ask your system administrator to upgrade MySQL to improve security and features.”

Unfortunately i have no chance to get any support from anyone.

Any recommendation is about this error? Otherwise it’s too difficult to find a solution for me.

Removed the array function but this time i only see blank pages when i try to enter the any page of website. Please help me about the solution. Cannot do anything.

Is there anyone who can help me with this?

Sponsor our Newsletter | Privacy Policy | Terms of Service