Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3750 closed defect (bug) (fixed)

bp_core_get_root_options() working incorrectly on secondary sites in MS

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
Milestone: 1.5.2 Priority: critical
Severity: normal Version: 1.5
Component: Core Keywords:
Cc:

Description

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.

Change History (2)

#1 @boonebgorges
13 years ago

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

(In [5335]) Look in root blog when pulling up root options en masse in bp_core_get_root_options(). Fixes #3750

#2 @boonebgorges
13 years ago

(In [5336]) Look in root blog when pulling up root options en masse in bp_core_get_root_options(). Fixes #3750

Note: See TracTickets for help on using tickets.