[buddypress-trac] [BuddyPress] #2361: Posting reports missing table error wp_bp_user_blogs_blogmeta

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Apr 30 22:45:49 UTC 2010


#2361: Posting reports missing table error wp_bp_user_blogs_blogmeta
-----------------------+----------------------------------------------------
 Reporter:  ianhaycox  |       Owner:     
     Type:  defect     |      Status:  new
 Priority:  major      |   Milestone:  1.3
Component:  Core       |    Keywords:     
-----------------------+----------------------------------------------------
 Wordpress 2.9.1, Buddypress plugin 1.2.3 Default theme.

 Create/update a post and the error

 WordPress database error: [Table 'worldcup.wp_bp_user_blogs_blogmeta'
 doesn't exist]
 SELECT * FROM wp_bp_user_blogs_blogmeta WHERE blog_id = 1 AND meta_key =
 'last_activity'

 WordPress database error: [Table 'worldcup.wp_bp_user_blogs_blogmeta'
 doesn't exist]
 INSERT INTO wp_bp_user_blogs_blogmeta ( blog_id, meta_key, meta_value )
 VALUES ( 1, 'last_activity', '2010-04-30 22:40:40' )

 Warning: Cannot modify header information - headers already sent by
 (output started at /home/ian/Projects/world-cup-predictor/wp-includes/wp-
 db.php:615) in /home/ian/Projects/world-cup-predictor/wp-
 includes/pluggable.php on line 868

 is displayed.  This is not a multi-site installation and the table
 wp_bp_user_blogs_blogmeta was not created. This may or may not be correct.
 I don't know.

 However, the problem highlighted itself because normally this fails
 silently, however installing a plugin with the call

 $wpdb->show_errors();

 in the main plugin file, or class constructor, makes buddypress report the
 error and prevents posting.

 Ian.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2361>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list