Facebook Theme Message board error

Whenever a user ( who is not an admin ) post on another users wall

i'll get this error

An unrecoverable error has occurred and has been logged. Contact the site administrator with the following information:

Exception #1359363399.

i have search the elgg comunntiy and it turns out that i am not the only one having this problem

i have also tried fixing it myself but i'm not fimiliar with how to go about fixing this kind of stuff

i opened the composer.php in the messageboard folder of the facebook theme 

<?php
//hack! Elgg engine should take care of this, or blog/save form should be coded better
if (elgg_is_xhr() && isset($vars['entity_guid'])) {
elgg_set_page_owner_guid($vars['entity_guid']);
}
echo elgg_view_form('messageboard/add', array(), $vars);

 

image

Does anyone have any idea on how to fix this?

it seems to only happen when i post on a user's mesageboard / wall 

when i log in as admin it works fine. i can post on anyone's wall but whenever a normal user does it

it gives me that error.

Please Help 

i appreciate it :)


i ran into 4 topics that also had this problem

also, i know it's the theme because whenever i disable it it'll work fine and i can comment on a user's wall

  • Go to the log file and find this number "1359363399" and you will able to see the issue.

  • where is the log file located?

    i searched the theme, elgg but didn't find anything...

     

  • I fixed it!!!!!!!!

    yes!!!

    ok the error was, where i thought it was all along

    the composer.php of the theme should be

    <?php
    //hack! Elgg engine should take care of this, or blog/save form should be coded better
    if (elgg_is_xhr() && isset($vars['entity_guid'])) {
    elgg_set_page_owner_guid($vars['entity_guid']);
    }
    echo elgg_view_form('messageboard/add', array('name' => 'elgg-messageboard'));

    instead of 

    <?php
    //hack! Elgg engine should take care of this, or blog/save form should be coded better
    if (elgg_is_xhr() && isset($vars['entity_guid'])) {
    elgg_set_page_owner_guid($vars['entity_guid']);
    }
    echo elgg_view_form('messageboard/add', array(), $vars);


    the only thing that changes is the last name :)