Possible Whitespace
Moderators: Developer, Contributor
Possible Whitespace
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.
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
yes, I am trying the 3e step of upgrading, where it says:
Point your browser to http://path/to/mantisbt/admin/check.php...
Point your browser to http://path/to/mantisbt/admin/check.php...
Re: Possible Whitespace
Yes. I get the same error.atrol wrote:is there the same problem when you start admin/install.php?
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
PHP version = 5.2.13atrol wrote:which PHP version do you use?
Maybe 5.3.0 or 5.3.1?
MYSql = mysql Ver 14.12 Distrib 5.0.51b, for Win32 (ia32)
IIS = IIS V6.0
Re: Possible Whitespace
Sorry, I have no experience with thishbourchi wrote: IIS = IIS V6.0
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
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.atrol wrote:Sorry, I have no experience with thishbourchi wrote: IIS = IIS V6.0
Maybe you can try Apache?
Just a speculation, try entering this line in config_inc.phpCode: Select all
$g_compress_html = OFF;
-
jeffreywilson
- Posts: 1
- Joined: 03 Feb 2011, 06:19
- Contact:
Re: Possible Whitespace
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
Hi,
Don't forget your custom files must be encoded in utf8 without BOM (see notepad++).
Don't forget your custom files must be encoded in utf8 without BOM (see notepad++).