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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.