Fatal Error Exception #1342161062 messageboard/add

When a user publishes a post on the wall of another get error:

Error Fatal
An unrecoverable error has occurred and has been logged. Contact the site administrator with the following information:
Exception #1342161062.

in dominio.com/action/messageboard/add

Does not occur with the administrator user


  • @Steve Clay On another thread (spanish) Ve says the problem is the theme. Let's wait for his answer. I use spam login filter on a elgg 1.8.8 installation with no issues

    @Ve Let's stick to this thread ok?

    Rodolfo Hernandez

    Arvixe/Elgg Community Liaison

  • @Ve  yes I have the same error with 1.8.6, then I tested 1.8.7 and now testing 1.8.8 but same Fatal error I am getting :(

  • @Steve Clay: I disabled spam_login_filter and the problem persists. You can see the code of start.php/spam_login_filter here: http://community.elgg.org/plugins/774755/1.8.1/spam-login-filter

    None of the start.php in the mod´s contain the closing tag for php ("?>")

    I suspect the problem is with the theme

  • https://github.com/TheTrueBumba/spam_login_filter/blob/master/start.php


    spam login filter has some deprecated functions, but I don't think that's the issue.

    @Ve there should not be a closing tag, that is correct

  • MattBeckett: If a file contains pure PHP code, it is preferable to omit the closing tag of PHP at the end of the file. This prevents the addition of blank spaces or new lines after the closing PHP tag, which can cause unwanted effects because PHP output buffer start when there was no intention by the developer to send any output in the point in the script.

    The correct error log is:

    Apache server error log

    [Fri Jul 13 03:31:02 2012] [error] [client xxxxxxxx] Exception #1342161062: exception 'SecurityException' with message 'Redirect could not be issued due to headers already being sent. Halting execution for security. Search http://docs.elgg.org/ for more information.' in /home/xxxxx/domains/domain.com/public_html/engine/lib/elgglib.php:151, referer: http://www.domain.com/profile/admin

  • Got the same error at the Group Messageboard with Admin, haven't tried with normal User, yet. at my local it works 100%. Also the post with normal user on walls.

  • Have you tried what happens if you disable ALL 3rd party plugins/themes? Does the error occur then also or not? If yes, it's an core issue and we can investigate further. If not, one of the 3rd party plugins on your site is causing the issue. If you know a plugin is causing the issue you can investigate further by enabling them one (or a few) at a time to narror down the problematic plugin.

    If you can tell us which plugin is causing the issue (or it's caused by Elgg core) it might be much easier to find the bug.

  • @Ve Did you tried what @iionly says? Do it and report back.

    @iionly I strongly believe that the 'Cool Theme' is causing this error. I remember using it a long time ago and getting this same error.

    Rodolfo Hernandez

    Arvixe/Elgg Community Liaison

  • @rjcalifornia: "Cool theme" (and maybe the FB theme) likely causes such an issue - but maybe other plugins cause the same error, too. I also got the "header already being sent" error also when testing the original FB theme quite some time ago. I never did much further testing of this plugin as it seemed to mess up my test site a lot (don't know if this was due to bugs in the plugin or due to me not configuring the site properly to use it. I suspected I would need to disable several "unneeded" core plugins for the FB theme to work but there seemed no install instructions available). I don't know if all the issues reported for this plugin have been fixed at any time in the past - I suspect rather not - and they might all be included in the "Cool theme", too. The FB theme/Cool theme overwrites just too many core views. I don't wanna know how many possible errors still remain in these plugins that have already been fixed in Elgg core in the meantime.

  • Hello everyone, this is my very first post on elgg community and I hope I'm not saying anything stupid.

    Anyways, I'm trying elgg (1.8.8) using the Cool Theme and I was experiencing the exact same "Headers already sent" problem.

    I think I just solved it by commenting echo $output; at the line 28 of the file elgg/mod/messageboard/add.php

    What do you guys think?

    There was some other weird stuff going on (with the theme?), like comments on posts appearing inline below the post and again on top. I'm trying to fix 'em and having some luck.

    Happy for my first post on Elgg's community :)