#2030 closed defect (bug) (fixed)
call_user_func_array() expects parameter 1 to be a valid callback, non-static method BBP_Replies_Widget::register_widget() should not be called statically
Reported by: | nerrad | Owned by: | |
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | trunk |
Component: | API - Widgets | Keywords: | has-patch |
Cc: | nerrad |
Description
Getting the above notice on our bbPress site running PHP 5.3.18
Stack trace:
…ll_user_func_array called at /public_html/wp-includes/plugin.php (403)
…ntesp/public_html/wp-content/plugins/bbpress/bbp-includes/bbp-core-actions.php (402)
in bbp_widgets_init called at ? (?)
…ll_user_func_array called at /public_html/wp-includes/plugin.php (403)
…do_action called at /public_html/wp-includes/default-widgets.php (1181)
in wp_widgets_init called at ? (?)
…ll_user_func_array called at /public_html/wp-includes/plugin.php (403)
in do_action called at /public_html/wp-settings.php (302)
in require_once called at /public_html/wp-config.php (134)
in require_once called at /public_html/wp-load.php (29)
in require_once called at /public_html/wp-blog-header.php (12)
in require called at /public_html/index.php (17)
looks like this applies to all bbPress widget calls. Would be better to declare all register_widget methods in the extended widgets as "static"?