[buddypress-trac] [BuddyPress] #3750: bp_core_get_root_options() working incorrectly on secondary sites in MS

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Nov 15 14:57:50 UTC 2011


#3750: bp_core_get_root_options() working incorrectly on secondary sites in MS
--------------------------+--------------------------
 Reporter:  boonebgorges  |      Owner:  boonebgorges
     Type:  defect (bug)  |     Status:  new
 Priority:  critical      |  Milestone:  1.5.2
Component:  Core          |    Version:  1.5
 Severity:  normal        |   Keywords:
--------------------------+--------------------------
 During the startup procedure, BP loads its options in
 bp_core_get_root_options(). It should be looking for the root blog options
 in the root blog; but instead it looks in $wpdb->options, which
 corresponds to the *current* blog.
 http://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-
 functions.php#L1055 As a result, it tries copying over necessary settings
 from the root blog. This is improper behavior when not in multiblog mode.

 In my case, the excessive switch_to_blog()s (called by bp_update_option()
 http://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-
 functions.php#L1085) are causing out-of-memory errors. In any case, it
 will result in some options getting out of sync. Marking the ticket
 critical for these reasons.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3750>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list