
November 3rd, 2004, 09:15 AM
|
|
Registered User
|
|
Join Date: Nov 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Need Help: Fatal Error installing M2F on phpBB 2.0.8
I just installed the Mail 2 Forum hack on a brand new install of phpBB 2.0.8. (This hack makes the forum work kind of like yahoo groups, where you can either use the forum or respond to posts via email)
I am able to use the admin panel just fine, and members are able to register, but nobody can post, due to this error:
Quote: | Fatal error: Cannot instantiate non-existent class: m2f_forum_post in /home/so/public_html/tmr/includes/functions_post.php on line 366 | And here is some code from functions_post.php - line 366 is in red, but I've included extra just in case
Quote: {
global $m2f_handler;
// Build post
$m2f_forum_post = new m2f_forum_post();
$m2f_forum_post->body = $post_message;
$m2f_forum_post->title = $post_subject;
$m2f_forum_post->forum_id = $forum_id;
$m2f_forum_post->topic_id = $topic_id;
$m2f_forum_post->post_id = $post_id;
$m2f_forum_post->user_id = $userdata['user_id'];
$m2f_forum_post->user_data = $userdata;
if ($user_id!=ANONYMOUS)
{
// Find the user's email
$sql = "SELECT u.user_email
FROM " . USERS_TABLE . " u
WHERE u.user_id = " . $userdata['user_id'];
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not obtain user email', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$m2f_forum_post->user_email = $row['user_email'];
}
else
{
$m2f_forum_post->user_email = '';
} |
|