Forums | Mahara Community

Support /
Could not instantiate mail funcion


Ali Hastie's profile picture
Posts: 145

22 December 2009, 7:28

Hi

When I add a friend, send a message etc i receive this error: 

Could not instantiate mail function. ERROR - something bad happened after headers have been sent. Check the error log for more information.

I have looked through the Mahara.org posts related to the above error and tried all the recommendations but still receive the same error. We also have Moodle on the same server as our two Mahara installs and Moodle is sending mail with no problems.

ERROR LOGS:

[WAR] 0e (lib/web.php:2090) Headers already sent when redirect() was called (output started in /data/httpdata/v-hosts/mahara.barony.ac.uk/htdocs/lib/phpmailer/class.phpmailer.php on line 527, referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

Call stack (most recent first):, referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

 * redirect("/user/myfriends.php") at /data/httpdata/v-hosts/mahara.barony.ac.uk/htdocs/user/sendmessage.php:119, referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

* sendmessage_submit(object(Pieform), array(size 3)) at Unknown:0, referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

* call_user_func_array("sendmessage_submit", array(size 2)) at /data/httpdata/v-hosts/mahara.barony.ac.uk/htdocs/lib/pieforms/pieform.php:430, referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

 * Pieform->__construct(array(size 3)) at /data/httpdata/v-hosts/mahara.barony.ac.uk/htdocs/lib/pieforms/pieform.php:170, referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

 * Pieform::process(array(size 3)) at /data/httpdata/v-hosts/mahara.barony.ac.uk/htdocs/lib/pieforms/pieform.php:71, referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

* pieform(array(size 3)) at /data/httpdata/v-hosts/mahara.barony.ac.uk/htdocs/user/sendmessage.php:97, referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

[error] [client 10.10.15.149] , referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

 [error] [client 10.10.15.149] File does not exist: /srv/barony/mahara.barony.ac.uk/htdocs/theme/raw/static/images/icon-user.gif, referer: http://mahara.barony.ac.uk/user/sendmessage.php?id=1&replyto=898

We are using:

Samba Ubuntu 8.10, php v5.2.6, mysql v5.0.67 and Mahara v1.2.2

All the messages, friends being added are working if we go back within the browser. I am also not receiving emails from our Mahara forums. Any help would be appreciated.

Merry Christmas

Ali

     

16 January 2011, 21:43

Hi, Did you ever figure out the solution to this?  I have encountered the same problem with a new install of Mahara 1.3.3 

16 January 2011, 22:39

This is some of what's in the log files;

[Sun Jan 16 21:33:45 2011] [error] [client 87.250.253.243] Failed loading /usr/lib64/php/zend/ZendOptimizer-5.2.so: /usr/lib64/php/zend/ZendOptimizer-5.2.so: undefined symbol: zend_opcode_handlers [Sun Jan 16 21:33:49 2011] [error] [client 66.249.67.149] Failed loading /usr/lib64/php/zend/ZendOptimizer-5.2.so: /usr/lib64/php/zend/ZendOptimizer-5.2.so: undefined symbol: zend_opcode_handlers [Sun Jan 16 21:33:50 2011] [error] [client 209.85.238.85] Failed loading /usr/lib64/php/zend/ZendOptimizer-5.2.so: /usr/lib64/php/zend/ZendOptimizer-5.2.so: undefined symbol: zend_opcode_handlers [Sun Jan 16 21:33:52 2011] [error] [client 66.249.67.48] Failed loading /usr/lib64/php/zend/ZendOptimizer-5.2.so: /usr/lib64/php/zend/ZendOptimizer-5.2.so: undefined symbol: zend_opcode_handlers

Does anyone have any idea what this means?  Thanks.

3 results