Author Topic: multiple issues  (Read 7152 times)

Offline blackwoodie

  • Newbie
  • *
  • Posts: 1
multiple issues
« on: August 26, 2006, 02:54:13 PM »
Hi everybody !!

I have several questions about roundcube ..

Yesterday I install roundcube and until now it is working fine with minor problems in the setup, and gave access to some of my users to start using it (testing), and this is what I need to answer

1.- Have Mailscanner installed in my mailserver with spamassassin, and it marks the messages fine, and want to know if can I setup roundcube to send the marked messages {Spam not delivered} to the junk folder automaticaly instead the inbox ??

2.- Don't know if this is a PHP issue or what but in php.ini I need to set the memory_limit to 64 mb in order to be able to send mails with attach of 5-6 mb (planed as limit) is this manner correct or can I do something else in order to send attachments of that size ??

3.- Checking the web error log, got this :

[client x.x.x.x] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: http://vwmail/?_task=mail&_action=show&_uid=13397&_mbox=INBOX&_safe=1
[client x.x.x.x] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: http://vwmail/?_task=mail

Is this bad or normal or what :-[ and can I fix it ??

Thanks to all of you and hope you can help me !! ;)

Thanks !!
Blackwoodie

reefnet

  • Guest
Re: multiple issues
« Reply #1 on: August 28, 2006, 06:16:16 PM »
I am also experiencing #3...namely, PHP warnings all over my Apache 2 log files...They all read the same for me:

Code: [Select]
PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0
Any ideas why this is happening? Roundcube seems to work just fine, but I hate errors/warnings...

Offline mooseman089

  • Newbie
  • *
  • Posts: 4
Re: multiple issues
« Reply #2 on: October 09, 2006, 02:03:39 PM »
I know this thread is slightly old but I just setup roundcube and I have the same issue from #3 to the headers already sent are all over my apache's error.log but I haven't noticed any big problems with roundcube so I was wondering what that message is supposed to mean.

Offline zyzzyvas

  • Jr. Member
  • **
  • Posts: 20
Re: multiple issues
« Reply #3 on: October 09, 2006, 07:56:52 PM »
This bug is in the roudcube bug tracker at

http://trac.roundcube.net/trac.cgi/ticket/1483926

I bet this problem is far more widespread than it appears. Most people don't look in their error logs and would never know this junk is in there.

Anyone having this problem should add to the bug listing so it gets more attention. I think the bug itself is pretty simple...the error has to do with blank spaces being inserted before PHP header() statements...I bet one (or more) of the PHP files has a stray space at the top or something.

If I had more time, I'd try and find the problem myself. Alas, I'm too busy USING roundcube to try to fix it. :)

Offline kali

  • Jr. Member
  • **
  • Posts: 57
Re: multiple issues
« Reply #4 on: October 10, 2006, 12:34:40 AM »
Solution appears to be in /program/include/rcube_shared.inc line 132

That line calls "header", but I think it's a stray... and should be deleted. It is the offending line for the errors - for certain - and the actual header is built on the next line anyway. I have commented out 132 and it has stopped the errors.

If I've misinterpreted something here, please let me know - but there is no function called "header".

Also - PLEASE check for correct starting and ending (especially ending) php tags in the following files:

/program/lib/Mail/mime.php
/program/lib/Net/SMTP.php
/program/lib/Net/Socket.php

kali

Offline daashag

  • Full Member
  • ***
  • Posts: 198
Re: multiple issues
« Reply #5 on: October 10, 2006, 08:25:46 AM »
Kali, I did what you said, however I am still getting the error.

Offline zyzzyvas

  • Jr. Member
  • **
  • Posts: 20
Re: multiple issues
« Reply #6 on: October 10, 2006, 08:54:24 AM »
Quote from: kali
That line calls "header", but I think it's a stray...there is no function called "header".

Sure there is. The header() function is a standard PHP function.

Kali, I suggest that you add whatever findings you've made to the bug tracker thread: http://trac.roundcube.net/trac.cgi/ticket/1483926

You should also create a bug entry for the messed-up PHP formatting that you found. Even in the Beta stage, forgotten PHP end tags really shouldn't happen...that's a rookie mistake.

I think the entire code base needs to be inspected for issues like this.

bloui

  • Guest
Re: multiple issues
« Reply #7 on: October 25, 2006, 02:48:07 PM »
Usually the header errors comes up if THERE'S empty line at the beginning OR at the end of php script.
to avoid this error use this function - ob_start() - @ the top before the header.

for more details check this link:
http://www.zend.com/zend/art/buffering.php

Offline fmal

  • Newbie
  • *
  • Posts: 1
Re: multiple issues
« Reply #8 on: December 17, 2006, 06:34:42 AM »
I had a lot of "Cannot modify header information - headers already sent" messages and I was able to resolve it at least partially, following the http://trac.roundcube.net/trac.cgi/ticket/1483926 suggestion, AND by editing ALL the files in roundcube tree: i found several missing php terminations and some extra empty lines at bottom, but i noticed that some apparently correct files needed to be rewrited after editing to have a correct unix end-of file.

After this radical editing I reduced the messages to only one case: I have an error for each sent message, and ever in the same location:

[14-Dec-2006 18:07:27] PHP Warning: Cannot modify header information - headers already sent in /usr/local/roundcubemail-0.1beta2/program/include/rcube_shared.inc on line 132