Opened 14 years ago
Closed 14 years ago
#1508 closed defect (bug) (fixed)
"Unknown column reply.post_status" error on recount
Reported by: |
|
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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Patch adds missing $bbp global