[buddypress-trac] [BuddyPress Trac] #6324: Debug notices when extending BP_Component

buddypress-trac noreply at wordpress.org
Fri Mar 27 12:57:42 UTC 2015


#6324: Debug notices when extending BP_Component
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  API           |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I'm getting a few debug notices when trying to extend {{{BP_Component}}}

 To check it wasn't me doing something wrong, I installed the
 [https://github.com/boonebgorges/buddypress-skeleton-component BP Skeleton
 Component] and got the same. I've pasted below the notices I get on
 activation of that plugin:

 {{{
 Strict Standards: Declaration of BP_Example_Component::setup_globals()
 should be compatible with BP_Component::setup_globals($args = Array) in
 /wp-content/plugins/buddypress-skeleton-component/includes/bp-example-
 loader.php on line 362

 Strict Standards: Declaration of BP_Example_Component::includes() should
 be compatible with BP_Component::includes($includes = Array) in /wp-
 content/plugins/buddypress-skeleton-component/includes/bp-example-
 loader.php on line 362

 Strict Standards: Declaration of BP_Example_Component::setup_nav() should
 be compatible with BP_Component::setup_nav($main_nav = Array, $sub_nav =
 Array) in /wp-content/plugins/buddypress-skeleton-component/includes/bp-
 example-loader.php on line 362
 }}}

 As an aside, I also get these notices when activating the Skeleton
 Component (although I'm not sure if they're related to extending
 {{{BP_Component}}}) so they may need another ticket.

 {{{

 Warning: Cannot modify header information - headers already sent by
 (output started at /wp-content/plugins/buddypress-skeleton-
 component/includes/bp-example-loader.php:362) in /wp-
 includes/pluggable.php on line 1178

 Warning: Cannot modify header information - headers already sent by
 (output started at /wp-content/plugins/buddypress-skeleton-
 component/includes/bp-example-loader.php:362) in /wp-includes/option.php
 on line 748

 Warning: Cannot modify header information - headers already sent by
 (output started at /wp-content/plugins/buddypress-skeleton-
 component/includes/bp-example-loader.php:362) in /wp-includes/option.php
 on line 749
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6324>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list