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

buddypress-trac noreply at wordpress.org
Fri Mar 27 13:09:34 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        |  Resolution:
 Keywords:                |

Comment (by sbrajesh):

 The error is not related to BP_Component class.
 it is related to how that class was extended.
 If you see the above message, you are on php 5.4 or above.

 You just need to use the proper method signature while overriding a method
 from parent class.
 For example, in setup_global, changing signature to

 public function setup_globals( $args = array() )

 will fix the error.

 Make sure to follow the method signatures from the BP_Component class
 while extending it and there will be no error.

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

More information about the buddypress-trac mailing list