Fatal error: Call to undefined function: ob_clean() Fatal error: Call to undefined function: ob_clean()
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Fatal error: Call to undefined function: ob_clean()

Started by fulcan, June 01, 2006, 02:30:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fulcan

Hi all,
I have just upgragded from 1.1 to 1.4 following the instructions in the documentation.

I have just tried to run the version check and I get the following
Fatal error: Call to undefined function: ob_clean() in /home/httpd/vhosts/123bikini.us/httpdocs/include/init.inc.php on line 153

Can anyone provide some help on
1. what this means and
2. how I might fix it?

Many thanks

Nibbler

Best idea is to update your PHP to 4.2 or higher. If you can't do that then I'll post a code change for you.

fulcan

I am unable to upgrade at this stage.  Is it possible to post the code change?

Thanks

Nibbler

include/init.inc.php, find


// Include config and functions files
if(file_exists('include/config.inc.php')){
ob_start();
require_once 'include/config.inc.php';
ob_clean();
} else {


change to


// Include config and functions files
if(file_exists('include/config.inc.php')){
//ob_start();
require_once 'include/config.inc.php';
//ob_clean();
} else {

fulcan


Joachim Müller

Keep in mind that older PHP versions have known issues - you will probably run into issues sooner or later that can't be fixed that easily. Particularly security issues existing in older PHP versions make it mandatory to upgrade asap. Don't forget that there are minimum requirements for running Coppermine.