coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: fulcan on June 01, 2006, 02:30:36 PM

Title: Fatal error: Call to undefined function: ob_clean()
Post by: fulcan on June 01, 2006, 02:30:36 PM
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
Title: Re: Fatal error: Call to undefined function: ob_clean()
Post by: Nibbler on June 01, 2006, 02:37:33 PM
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.
Title: Re: Fatal error: Call to undefined function: ob_clean()
Post by: fulcan on June 01, 2006, 02:44:17 PM
I am unable to upgrade at this stage.  Is it possible to post the code change?

Thanks
Title: Re: Fatal error: Call to undefined function: ob_clean()
Post by: Nibbler on June 01, 2006, 02:46:32 PM
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 {
Title: Re: Fatal error: Call to undefined function: ob_clean()
Post by: fulcan on June 01, 2006, 02:55:25 PM
Thanks Nibbler
Greatly appreicated
Title: Re: Fatal error: Call to undefined function: ob_clean()
Post by: Joachim Müller on June 01, 2006, 10:48:23 PM
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.