Skip to:

Opened 8 years ago

Closed 8 years ago

#7147 closed defect (bug) (fixed)

Since r10902 installing components is generating fatals

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


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 8 years ago.
7147.02.patch (583 bytes) - added by imath 8 years ago.

Download all attachments as: .zip

Change History (5)

8 years ago

#1 @imath
8 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.

8 years ago

#2 @DJPaul
8 years ago

7147.02.patch is good.

#3 @imath
8 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.