Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#3055 closed defect (bug) (fixed)

Unexpected output during activation

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by:
Milestone: 1.5 Priority: normal
Severity: Version: 1.5
Component: Core Keywords: has-patch
Cc:

Description

Trying to get a value of $wpdb->base_prefix during activation results in error message:

The plugin generated 968 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

The output is:

PHP Notice:  Undefined variable: wpdb in ...buddypress/bp-loader.php on line 40
PHP Notice:  Trying to get property of non-object in ...buddypress/bp-loader.php on line 40
PHP Notice:  Undefined variable: wpdb in ...buddypress/bp-loader.php on line 43
PHP Notice:  Trying to get property of non-object in ...buddypress/bp-loader.php on line 43

Attachments (1)

3055.patch (504 bytes) - added by SergeyBiryukov 14 years ago.

Download all attachments as: .zip

Change History (3)

#1 @DJPaul
14 years ago

  • Milestone changed from Awaiting Review to 1.3

#2 @djpaul
14 years ago

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

(In [4030]) Prevent PHP notice on plugin activation. Fixes #3055, props SergeyBiryukov

Note: See TracTickets for help on using tickets.