Page 1 of 1

Possible Whitespace

Posted: 01 Jun 2010, 10:45
by hbourchi
Hello,

I am trying to upgarde from mantis 1.1.2 to mantis 1.2.1 but I get this error:

Possible Whitespace/Error in Configuration File - Aborting. Output so far follows: string(3) ""

this is my config file:

<?php
$g_database_name = 'mantis';
$g_db_username = 'mantis';
$g_db_password = '******';
?>

But I don't have any whitespace after ?>

I even tested it without ?> and no effect.
I also tested the config file without any lines (just <?php and ?> ) and I still get this error.

Any ideas?
Thanks.

Re: Possible Whitespace

Posted: 01 Jun 2010, 12:20
by atrol
Did you update by following the steps which are described in file doc/INSTALL of MantisBT 1.2.1 ?

Re: Possible Whitespace

Posted: 01 Jun 2010, 13:25
by hbourchi
yes, I am trying the 3e step of upgrading, where it says:

Point your browser to http://path/to/mantisbt/admin/check.php...

Re: Possible Whitespace

Posted: 02 Jun 2010, 08:18
by atrol
is there the same problem when you start admin/install.php?

Re: Possible Whitespace

Posted: 02 Jun 2010, 09:13
by hbourchi
atrol wrote:is there the same problem when you start admin/install.php?
Yes. I get the same error.

By the way: I added this line to core.php as line 137:

ob_end_clean();

just before:

if ( ($t_output = ob_get_contents()) != '') {
echo 'Possible Whitespace/Error in Configuration File - Aborting. Output so far follows:<br />';
echo var_dump($t_output);
die;
}


and I don't get that error anymore. But I don't know if this messes other things up.

Re: Possible Whitespace

Posted: 02 Jun 2010, 16:12
by atrol
which PHP version do you use?
Maybe 5.3.0 or 5.3.1?

Re: Possible Whitespace

Posted: 03 Jun 2010, 08:49
by hbourchi
atrol wrote:which PHP version do you use?
Maybe 5.3.0 or 5.3.1?
PHP version = 5.2.13
MYSql = mysql Ver 14.12 Distrib 5.0.51b, for Win32 (ia32)
IIS = IIS V6.0

Re: Possible Whitespace

Posted: 03 Jun 2010, 19:51
by atrol
hbourchi wrote: IIS = IIS V6.0
Sorry, I have no experience with this
Maybe you can try Apache?

Just a speculation, try entering this line in config_inc.php

Code: Select all

$g_compress_html = OFF;

Re: Possible Whitespace

Posted: 11 Jun 2010, 09:58
by hbourchi
atrol wrote:
hbourchi wrote: IIS = IIS V6.0
Sorry, I have no experience with this
Maybe you can try Apache?

Just a speculation, try entering this line in config_inc.php

Code: Select all

$g_compress_html = OFF;
I tried your code but no effect. trying apache is a bit difficult since the server is also used by others and other programs and tasks. But If that is the only solution I may be able to manage something.

Re: Possible Whitespace

Posted: 03 Feb 2011, 06:26
by jeffreywilson
amilaonline wrote:Hi All,

For me too got the same error and then I've added this line to core.php as line 137:

ob_end_clean();

Before:

if ( ($t_output = ob_get_contents()) != '') {
echo 'Possible Whitespace/Error in Configuration File - Aborting. Output so far follows:<br />';
echo var_dump($t_output);
die;
}

That was helpful Amila. It worked on my end. Thanks.

and It;s working perfectly up to now . But I my email settings not working anymore. Any idea about that ?

Re: Possible Whitespace

Posted: 25 Mar 2011, 09:00
by philou2024
Hi,

Don't forget your custom files must be encoded in utf8 without BOM (see notepad++).