undefined function: ob_clean() error after successful install. Can't run. undefined function: ob_clean() error after successful install. Can't run.
 

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

undefined function: ob_clean() error after successful install. Can't run.

Started by FuzzieDice, June 20, 2006, 11:28:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FuzzieDice

I successfully installed Coppermine 1.4.8 and all went well. I got to the last screen which had the "Let's Continue!" button. I clicked it and I keep getting this error below. Note that I replaced the actual pathname in this post to [my_path_to_coppermine]. In the actual error message, the path is correct.

Fatal error: Call to undefined function: ob_clean() in [my_path_to_coppermine]/include/init.inc.php on line 153

I can't run coppermine at all. Even if I go to my coppermine site, I get the same error.

Is there a work-around for this problem?

Sami

this is regular php function if you can't run it then it means that your php version is old or somthing miss with your php
(PHP 4 >= 4.2.0, PHP 5)
‍I don't answer to PM with support question
Please post your issue to related board


FuzzieDice

Thank you for the link. :) I was just about to write the code myself and post it as a suggestion but I see I don't have to reinvent the wheel. I appreciat the help. :)

FuzzieDice

I forgot to mention, the server I'm running Coppermine on, I can not at all change the installation of PHP because it's on a hosting company. Most all hosting companies do not change the versions of what they run at user's requests. So I have to use what they have or find something that works on it. Using the code snippet would work. However, you could replace ob_clean() with the old ob_end_clean() and I'd imagine it'd still work. But I don't know if using ob_end_clean() is the same or recommended.

One more addition: One could code in to check the phpversion() and if it is newer, use ob_clean() but if it's older to use ob_end_clean() instead, perhaps.

Joachim Müller

Quote from: FuzzieDice on June 21, 2006, 12:01:36 AM
I forgot to mention, the server I'm running Coppermine on, I can not at all change the installation of PHP because it's on a hosting company. Most all hosting companies do not change the versions of what they run at user's requests.
As suggested in my posting on the thread Nibbler refered to: the PHP version is outdated and should be updated by your webhost for security reasons, as older PHP versions have known security issues. If they won't, I'd consider finding a new webhost.

mava70

this mods appear woking:


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



Joachim Müller

Sure this will work for that particular error message. However, the coppermine minimum requirements still are not being met with your outdated PHP versions. Output buffering tricks are being used by several coppermine scripts, so you may get behind the initial problem of installing, but prepare yourself for more trouble later. Don't use the workaround, but do as suggested instead and see to it to have your PHP version updated! If you don't, you're on your own with running Coppermine - using it with outdated PHP versions goes unsupported.