Opened 14 years ago
Closed 14 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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [4030]) Prevent PHP notice on plugin activation. Fixes #3055, props SergeyBiryukov