Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Delta-9 on July 03, 2007, 10:51:37 PM

Title: PHP Warning: Cannot modify header information - headers already sent
Post by: Delta-9 on July 03, 2007, 10:51:37 PM
my email is working, but I see this in the error log each time I send a message.

I just upgraded from 0.1beta2 to the latest, but this error was happening back on the previous version, too. I noticed it in the error log when I was troubleshooting my upgrade. Fixed my problem with the upgrade, but this persists.

PHP Warning: Cannot modify header information - headers already sent in /xxxxxxxxxxxx/program/include/rcube_shared.inc on line 154

any ideas on how to fix this?
Title: Re: PHP Warning: Cannot modify header information - headers already sent
Post by: GunFro on July 04, 2007, 04:07:47 PM
.......................
Title: Re: PHP Warning: Cannot modify header information - headers already sent
Post by: smeagol on July 05, 2007, 03:07:49 AM
Have a look at this thread/answer: http://roundcubeforum.net/forum/index.php?topic=1644.0 (http://roundcubeforum.net/forum/index.php?topic=1644.0)
Title: Re: PHP Warning: Cannot modify header information - headers already sent
Post by: Delta-9 on July 05, 2007, 08:59:49 AM
That doesn't have anything to do with my problem / error.

You linked me to a post titled "rev 583 - Spanish language failing display"
Title: Re: PHP Warning: Cannot modify header information - headers already sent
Post by: mess-mate on July 05, 2007, 09:24:02 AM
Well..i've the same problem; therefor can't connect to the database.
Setting the loglevel to 4 displays 3 warnings inclusive that above.
 :(
Could it be a 1-rc1 bug ?
Title: Re: PHP Warning: Cannot modify header information - headers already sent
Post by: smeagol on July 05, 2007, 09:29:40 AM
Which language do you use?

I had the same problem (on line 154) with de_DE. And the de_DE/message.inc had these strange (UTF or whatever) characters before the
Title: Re: PHP Warning: Cannot modify header information - headers already sent
Post by: mess-mate on July 05, 2007, 09:39:45 AM
charset ISO-8859-1 at line 154. Must it be UTF-8 ??
In the table: en
here are the 3 errors:
DB Error in /var/www/webmail/program/include/rcube_db.inc (105): DB Error: connect failed

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent in /var/www/webmail/program/include/main.inc on line 61

Warning: Cannot modify header information - headers already sent in /var/www/webmail/program/include/rcube_shared.inc on line 154
RoundCube Webmail

Title: Re: PHP Warning: Cannot modify header information - headers already sent
Post by: mess-mate on July 05, 2007, 03:10:20 PM
There is someting wrong sending ( or space syndrom ?) somewhat before the cookie !!
But can't find where exactly.

Anybody found it ?
Title: Re: PHP Warning: Cannot modify header information - headers already sent
Post by: mess-mate on July 05, 2007, 06:12:29 PM
Deleting lines 152-156 in /program/include/rcube_shared.inc solved this warning:
Warning: Cannot modify header information - headers already sent in /var/www/webmail/program/include/rcube_shared.inc on line 154

But can't find what was done before the session_start in /program/include/main.inc
to solve problem:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent in /var/www/webmail/program/include/main.inc on line 61
Title: Re: PHP Warning: Cannot modify header information - headers already sent
Post by: mess-mate on July 05, 2007, 07:31:57 PM
Ok if it can help somebody...solved the rest of these warnings:
for
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent in /var/www/webmail/program/include/main.inc on line 61
in /program/include/main.inc
cutted session_start() and putted between line 51 and 53.

for
DB Error in /var/www/webmail/program/include/rcube_db.inc (105): DB Error: connect failed
in /config/db.inc.php
changed "$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';"
to
$rcmail_config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcubemail';
as mentioned in the INSTALL file.

It runs ;D
and now go to the test of it.