WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When trying to create a new topic in a BuddyPress installation with integrated bbpress, I keep getting the "There was an error when creating the topic" error message.

I've tried the following list of suggestions I found around the Internet:

  • uncheck/check "enable forums"
  • delete group, recreate it
  • chmod 755 all of buddypress
  • re-setup bbpress in wp-admin
  • delete from wp_bp_groups_groupmeta where meta_key='forum_id';

Of course I tried enabling WP_DEBUG and staring at the errors for a while, but that isn't very useful when BuddyPress and bbpress generate hundreds of errors on every page.

WordPress 3.1.2, BuddyPress 1.2.8, bbpress 1.0.3.

share|improve this question

If you have migrated the site to a new server - don't forget to edit the database details of the new site in - bbconfig.php.

In the same location as wpconfig.php.

This will fix the issue.

share|improve this answer

I know this is an old question but i recently had a very similar issue.

Buddypress v1.6.1 in bp-forums-function.php inside bp_forums_insert_post() the defaults have 'poster_id' => $_SERVER['REMOTE_ADDRESS'].

It turns out that $_SERVER['REMOTE_ADDRESS'] was returning an ipv6 address causing the insert to bomb because the poster_id field length is set to 15.

Updating the column to a length of 50 fixes the issue for me.

share|improve this answer

Go to phpmyadmin,select your installation db and run this query.

$bb_queries['posts'] = "CREATE TABLE IF NOT EXISTS `$bbdb->posts` (
    `post_id` bigint(20) NOT NULL auto_increment,
    `forum_id` int(10) NOT NULL default 1,
    `topic_id` bigint(20) NOT NULL default 1,
    `poster_id` int(10) NOT NULL default 0,
    `post_text` text NOT NULL,
    `post_time` datetime NOT NULL default '0000-00-00 00:00:00',
    `poster_ip` varchar(15) NOT NULL default '',
    `post_status` tinyint(1) NOT NULL default 0,
    `post_position` bigint(20) NOT NULL default 0,
    PRIMARY KEY (`post_id`),
    KEY `topic_time` (`topic_id`, `post_time`),
    KEY `poster_time` (`poster_id`, `post_time`),
    KEY `post_time` (`post_time`),
    FULLTEXT KEY `post_text` (`post_text`)

It should run just fine.Now try to create a topic.

share|improve this answer
That wasn't the problem it seems. The table already existed, and it didn't fix it after I ran that query. Thanks though. – holizz Oct 12 '11 at 18:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.