Possible Whitespace

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
hbourchi
Posts: 5
Joined: 01 Jun 2010, 10:39

Possible Whitespace

Post 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.
atrol
Site Admin
Posts: 8538
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Possible Whitespace

Post by atrol »

Did you update by following the steps which are described in file doc/INSTALL of MantisBT 1.2.1 ?
Please use Search before posting and read the Manual
hbourchi
Posts: 5
Joined: 01 Jun 2010, 10:39

Re: Possible Whitespace

Post 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...
atrol
Site Admin
Posts: 8538
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Possible Whitespace

Post by atrol »

is there the same problem when you start admin/install.php?
Please use Search before posting and read the Manual
hbourchi
Posts: 5
Joined: 01 Jun 2010, 10:39

Re: Possible Whitespace

Post 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.
atrol
Site Admin
Posts: 8538
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Possible Whitespace

Post by atrol »

which PHP version do you use?
Maybe 5.3.0 or 5.3.1?
Please use Search before posting and read the Manual
hbourchi
Posts: 5
Joined: 01 Jun 2010, 10:39

Re: Possible Whitespace

Post 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
atrol
Site Admin
Posts: 8538
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Possible Whitespace

Post 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;
Please use Search before posting and read the Manual
hbourchi
Posts: 5
Joined: 01 Jun 2010, 10:39

Re: Possible Whitespace

Post 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.
jeffreywilson
Posts: 1
Joined: 03 Feb 2011, 06:19
Contact:

Re: Possible Whitespace

Post 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 ?
philou2024
Posts: 12
Joined: 02 Nov 2010, 13:12
Location: France

Re: Possible Whitespace

Post by philou2024 »

Hi,

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