Skip to:
Content

Opened 3 years ago

Closed 3 years ago

#3055 closed defect (bug) (fixed)

Unexpected output during activation

Reported by: 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 3 years ago.

Download all attachments as: .zip

Change History (3)

SergeyBiryukov3 years ago

comment:1 DJPaul3 years ago

  • Milestone changed from Awaiting Review to 1.3

comment:2 djpaul3 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.