Skip to:
Content

BuddyPress.org

Opened 6 years ago

Closed 6 years ago

#7147 closed defect (bug) (fixed)

Since r10902 installing components is generating fatals

Reported by: imath Owned by: imath
Milestone: 2.7 Priority: highest
Severity: blocker Version:
Component: Core Keywords: has-patch
Cc:

Description

That's because r10902 removed the require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); and dbDelta is then not available.

I've fixed my trouble using the attached patch

Attachments (2)

7147.patch (3.2 KB) - added by imath 6 years ago.
7147.02.patch (583 bytes) - added by imath 6 years ago.

Download all attachments as: .zip

Change History (5)

@imath
6 years ago

#1 @imath
6 years ago

  • Keywords has-patch added

Since @djpaul moved up the require into bp_version_updater() i guess we should probably do something similar when components are deactivated/activated from the corresponding setting screen.

This is a really annoying bug as i currently need to often deactivate components. So if no objections, i'll probably commit 7147.02.patch very soon.

@imath
6 years ago

#2 @DJPaul
6 years ago

7147.02.patch is good.

#3 @imath
6 years ago

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

In 10934:

Make sure the function dbDelta() is available when activating/deactivating components.

Fixes #7147

Note: See TracTickets for help on using tickets.