Skip to:
Content

bbPress.org

Opened 14 years ago

Closed 14 years ago

#1508 closed defect (bug) (fixed)

"Unknown column reply.post_status" error on recount

Reported by: coolkevman's profile Coolkevman Owned by:
Milestone: 2.0 Priority: normal
Severity: normal Version:
Component: General - Administration Keywords: has-patch
Cc:

Description

Using latest bbPress plugin version (SVN trunk at r3061), I get the following error message while using the recount tool in the WordPress admin interface:

Notice: Undefined variable: bbp in /home/kevin/Desktop/wordpress-import/wp-content/plugins/bbpress/bbp-admin/bbp-functions.php on line 220
Notice: Trying to get property of non-object in /home/kevin/Desktop/wordpress-import/wp-content/plugins/bbpress/bbp-admin/bbp-functions.php on line 220
WordPress database error: [Unknown column 'reply.post_status' in 'where clause']
INSERT INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) ( SELECT `forum`.`ID`, '_bbp_last_topic_id', `topic`.`ID` FROM `wp_posts` AS `forum` INNER JOIN `wp_posts` AS `topic` ON `forum`.`ID` = `topic`.`post_parent` WHERE `reply`.`post_status` IN ( 'publish' ) AND `forum`.`post_type` = 'forum' AND `topic`.`post_type` = 'topic' GROUP BY `forum`.`ID` );

To reproduce the bug, just go to the reounct tool in the administration interface and check all checkboxes.

Attachments (1)

1508.001.diff (526 bytes) - added by cnorris23 14 years ago.

Download all attachments as: .zip

Change History (3)

@cnorris23
14 years ago

#1 @cnorris23
14 years ago

  • Keywords has-patch added; recount recounting removed

Patch adds missing $bbp global

#2 @johnjamesjacoby
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r3098. Pre commit hook missed it because of typo in commit message.

Note: See TracTickets for help on using tickets.