Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

#5406 closed defect (bug) (fixed)

Error while simulating upgrade to 2.0

Reported by: imath Owned by: boonebgorges
Milestone: 2.0 Priority: normal
Severity: major Version:
Component: Core Keywords: has-patch
Cc:

Description

i've just simulated an upgrade (changing the db raw version to a value < to 7892) and it causes a fatal error on a non multisite config : undefined function add_blog_option

I think it's due to changeset 7893

Should we check is_multisite() and use add_option if false ?

Attachments (2)

5406.diff (1.8 KB) - added by imath 8 years ago.
5406.02.patch (568 bytes) - added by boonebgorges 8 years ago.

Download all attachments as: .zip

Change History (6)

@imath
8 years ago

#1 @DJPaul
8 years ago

I suggest adding add_blog_option to bp-core-wpabstraction.php

#2 follow-up: @boonebgorges
8 years ago

imath - Good catch. This should only happen with add_blog_option(), because it was not defined in our abstraction file. Can you test 5406.02.diff?

#3 in reply to: ↑ 2 @imath
8 years ago

Replying to boonebgorges:

Can you test 5406.02.diff?

Just tested, i confirm it solves the issue :)

#4 @boonebgorges
8 years ago

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

In 7916:

Define add_blog_option() in abstraction file for non-multisite

This prevents fatal errors when using bp_add_option() in non-multisite
environments.

Fixes #5406

Props imath, DJPaul

Note: See TracTickets for help on using tickets.