Firefox PHP

getting started,but a fatal error in common.php

Posted by godo biker 
getting started,but a fatal error in common.php
June 23, 2008 10:44PM
Hello,

I've searched the db if this error was already asked, but didn't find a result.

I try to instal the phorum, made a database, uploaded the files, and when i open the admin page i get the next error:

Fatal error: Call to undefined function: ob_get_status() in [weburl]/phorum/common.php on line 1689

in the script it says the next code:


function phorum_ob_clean()
{
// Clear out all output that PHP buffered up to now.
for (;;) {
$status = ob_get_status(); [this is line 1689 in the script!!]
if (!$status ||
$status['name'] == 'ob_gzhandler' ||
!$status['del']) break;
ob_end_clean();
}
}


there i'm a newbe i'm totaly blind after searching for a error...

sorry, but i cannot match the error with the script...so please help me where I have to look or change the script!!!???
Re: getting started,but a fatal error in common.php
June 23, 2008 10:50PM
ob_get_status() is a standard PHP function that is part of PHP since version 4.2.0.
Are you running a PHP version older than that by any chance?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: getting started,but a fatal error in common.php
June 23, 2008 10:59PM
Yep, just checked the version at the hosting server, they run 4.1.2

can i change anything in the script to undoo this line??
Re: getting started,but a fatal error in common.php
June 23, 2008 11:10PM
You can delete that code, but it is better to kick the hosting provider, check if they can give you PHP5 or find a different hosting provider that knows how to provide up-to-date services. You will probably run into a lot of more issues if you start hacking the code for compatibility with such an old PHP version (it's more than 5 years old I think). We recommend PHP5 for running Phorum.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: getting started,but a fatal error in common.php
June 23, 2008 11:16PM
I've just send a mail to the host, so i hope they will help me with that part.

Thanks so far for the help en quick answers!!!

Gerard
Re: getting started,but a fatal error in common.php
June 23, 2008 11:23PM
You're welcome and good luck.
I hope your host will help you out on this one.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login