Forums | Mahara Community

Support /
Mahara 1.4 headers already sent


Thomas Edwards's profile picture
Posts: 9

11 July 2011, 6:16

Hi all

I have installed Mahara 1.4 but I seem to be having issues with the headers already being sent.

Every time I try to send a message to another user I receive the following error:

'Invalid address: ERROR - something bad happened after headers have been sent. Check the error log for more information.



Here are the lines from my error log:

[Mon Jul 11 12:02:04 2011] [error] [client 10.10.3.10] [WAR] 72 (W:\\xampp\\htdocs\\mahara\\lib\\web.php:2286) Headers already sent when redirect() was called (output started in W:\\xampp\\htdocs\\mahara\\lib\\phpmailer\\class.phpmailer.php on line 464, referer: http://mahara.cumbernauld.ac.uk/user/sendmessage.php?id=6&replyto=2040&returnto=inbox
[Mon Jul 11 12:02:04 2011] [error] [client 10.10.3.10] Call stack (most recent first):, referer: http://mahara.cumbernauld.ac.uk/user/sendmessage.php?id=6&replyto=2040&returnto=inbox
[Mon Jul 11 12:02:04 2011] [error] [client 10.10.3.10]   * redirect("/account/activity") at W:\\xampp\\htdocs\\mahara\\user\\sendmessage.php:98, referer: http://mahara.cumbernauld.ac.uk/user/sendmessage.php?id=6&replyto=2040&returnto=inbox
[Mon Jul 11 12:02:04 2011] [error] [client 10.10.3.10]   * sendmessage_submit(object(Pieform), array(size 3)) at Unknown:0, referer: http://mahara.cumbernauld.ac.uk/user/sendmessage.php?id=6&replyto=2040&returnto=inbox
[Mon Jul 11 12:02:04 2011] [error] [client 10.10.3.10]   * call_user_func_array("sendmessage_submit", array(size 2)) at W:\\xampp\\htdocs\\mahara\\lib\\pieforms\\pieform.php:512, referer: http://mahara.cumbernauld.ac.uk/user/sendmessage.php?id=6&replyto=2040&returnto=inbox
[Mon Jul 11 12:02:04 2011] [error] [client 10.10.3.10]   * Pieform->__construct(array(size 3)) at W:\\xampp\\htdocs\\mahara\\lib\\pieforms\\pieform.php:161, referer: http://mahara.cumbernauld.ac.uk/user/sendmessage.php?id=6&replyto=2040&returnto=inbox
[Mon Jul 11 12:02:04 2011] [error] [client 10.10.3.10]   * Pieform::process(array(size 3)) at W:\\xampp\\htdocs\\mahara\\lib\\pieforms\\pieform.php:71, referer: http://mahara.cumbernauld.ac.uk/user/sendmessage.php?id=6&replyto=2040&returnto=inbox
[Mon Jul 11 12:02:04 2011] [error] [client 10.10.3.10]   * pieform(array(size 3)) at W:\\xampp\\htdocs\\mahara\\user\\sendmessage.php:76, referer: http://mahara.cumbernauld.ac.uk/user/sendmessage.php?id=6&replyto=2040&returnto=inbox
[Mon Jul 11 12:02:04 2011] [error] [client 10.10.3.10] , referer: http://mahara.cumbernauld.ac.uk/user/sendmessage.php?id=6&replyto=2040&returnto=inbox

Many thanks in advance for any help with this.

Thomas

François Marier's profile picture
Posts: 411

11 July 2011, 18:26

Hi Thomas,

If you take a look at the first file that is mentioned in the error message (W:\\xampp\\htdocs\\mahara\\lib\\phpmailer\\class.phpmailer.php on line 464):

  echo $this->Lang('invalid_address').': '.$address;

Then it looks like that user has an invalid email address and Mahara can't send the email.

Cheers,

Francois

Thomas Edwards's profile picture
Posts: 9

12 July 2011, 5:36

Hi Francois,

Thanks for getting back to me. The thing is the message does send despite the error. Every user in our system is authenticated by ldap which reads in the e-mail address from Active Directory. Any ideas on why this would be invalid?

Thanks again

Thomas

3 results