#4323 closed defect (bug) (no action required)
php errors in php5.4
Reported by: | unsalkorkmaz | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 1.6 |
Component: | Core | Keywords: | |
Cc: |
Description
Getting those errors because of widgets tho:
WARNING: wp-content/plugins/bp-custom.php:110 - Missing argument 2 for BuddyPress::{closure}() WARNING: wp-content/plugins/bp-custom.php:110 - Missing argument 3 for BuddyPress::{closure}()
Change History (6)
#2
@
12 years ago
I must be sleeping.. I totally forgot bp-custom.php is my own function file and blaming buddypress.. Well i checked what i have in there:
add_filter( 'bp_core_get_last_activity', function($last_active, $last_activity_date, $string){
and that filter is in bp-core-functions.php:
function bp_core_get_last_activity( $last_activity_date, $string ) { if ( empty( $last_activity_date ) ) $last_active = __( 'Not recently active', 'buddypress' ); else $last_active = sprintf( $string, bp_core_time_since( $last_activity_date ) ); return apply_filters( 'bp_core_get_last_activity', $last_active, $last_activity_date, $string ); }
i changed to
add_filter( 'bp_core_get_last_activity', function($last_active){
and errors gone.. fyi
Note: See
TracTickets for help on using
tickets.
Can you list what you have on line 110 of your bp-custom.php file?
FYI, BuddyPress (and WordPress for that matter) does not officially support PHP 5.4 yet.