Topic: Install... Headers Already Sent

Please see:  http://www.tameri.com/cgi-bin/forums/index.php

I have checked config.php multiple times. There are no unusual line breaks or other characters. The only issue I wonder about is the fact the site is hosted. I already had to move the folder to cgi-bin because Interland's servers wouldn't let me have code outside that folder. (I had this same issue with a guestbook I am testing -- had to be off cgi-bin.)

Any help would be greatly, greatly appreciated.

- Scott Wyatt
http://www.tameri.com

Re: Install... Headers Already Sent

if you put ?> at the end of the config file. you might have put some extra space after it.

Re: Install... Headers Already Sent

I already checked that, thinking something might be off there. I keep checking it without any new insights. I've "xxx'd" out the database information:

<?php

$db_type = 'mysql';
$db_host = 'XXX.XXX.255.141';
$db_name = 'XXXXXXX';
$db_username = 'XXXXXXX';
$db_password = 'XXXXXXX';
$db_prefix = 'tameri_';
$p_connect = false;

$cookie_name = 'punbb_cookie';
$cookie_domain = '.tameri.com';
$cookie_path = '/';
$cookie_secure = 0;
$cookie_seed = '1d8b8b36';

define('PUN', 1);

?>

Re: Install... Headers Already Sent

try removing the ?> and see if that fixes it

Re: Install... Headers Already Sent

No change... with a break and without after the remaining ";" if I pull the ?> from the PHP.

This is frustrating. I have to be close to getting this working... it can't be brain surgery.

- Scott

Re: Install... Headers Already Sent

I did a complete re-install... same problem. I dropped the database, re-created things, and ended up with the same issue. I've been working on this for about four hours now.

- Scott

Re: Install... Headers Already Sent

i did some testing and i got the same error you have by puting a space before <?php. see if you have a space there.

Re: Install... Headers Already Sent

Nope, no characters where they don't belong. The only issue I keep coming back to is the path. Is there any potential that the root should be set? If so, how?

Seriously bummed...
- Scott

Re: Install... Headers Already Sent

Exact errors, no matter how many times I install and reconfigure, check the config.php, etc...

Warning: Cannot modify header information - headers already sent by (output started at /home/cust1/user1069267/cgi-bin/forums/config.php:1) in /home/cust1/user1069267/cgi-bin/forums/header.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home/cust1/user1069267/cgi-bin/forums/config.php:1) in /home/cust1/user1069267/cgi-bin/forums/header.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/cust1/user1069267/cgi-bin/forums/config.php:1) in /home/cust1/user1069267/cgi-bin/forums/header.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home/cust1/user1069267/cgi-bin/forums/config.php:1) in /home/cust1/user1069267/cgi-bin/forums/header.php on line 34

Re: Install... Headers Already Sent

You have a space or a break before the <?php in config.php

and you should never have a ?> in config.php

Re: Install... Headers Already Sent

No, the space or break issue has already been checked multiple times.

Re: Install... Headers Already Sent

I just had an idea, which should have come to me sooner, to check the file in vi or pico instead of within Dreamweaver or BBEdit. In vi, there is an offset of some sort relating to unicode, I think. In pico, the same problem does not appear. The Mac editors are all UTF-8/UTF-16, no BOM, which might be complicating matters.

More fun, I suppose, will be tracking down if there is an extra byte and from what.

- Scott

13 (edited by poetcsw 2005-11-23 08:15)

Re: Install... Headers Already Sent

Problem identified / solved (sort of)... (styles, other features not working...)

The issue seems to be Mac related. When I saved the config.php file in BBEdit, I used Unicode-8, no BOM, which is my default setting. I also tried Dreamweaver's internal editor. Neither showed any problems with the file, nor did any other editor on the Mac.

Once I checked the file in vi, I saw an inverse-video "?" as the first character, indicating something wasn't right. So, whatever the Mac editors are doing, it isn't a good thing when uploading to a remote server. The Linux box clearly doesn't use the same encoding.

I'm up and running after six hours of staring at the files. I should have started with vi, I guess, but I'm pretty much a Dreamweaver junkie for everything I do on the Web.

- Scott

Re: Install... Headers Already Sent

The reasons your styles aren't working is that your web server doesn't seem to want to read them:

http://www.tameri.com/cgi-bin/forums/style/Cobalt.css

A 500 error can caused by one out of a million different things. Try downloading the tar.gz and untar:ing it on the linux box instead of uploading it file by file.

"Programming is like sex: one mistake and you have to support it for the rest of your life."