PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 3rd, 2004, 09:15 AM
skyye skyye is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 skyye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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 = '';
}

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Need Help: Fatal Error installing M2F on phpBB 2.0.8


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT