Skip to:

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#4323 closed defect (bug) (no action required)

php errors in php5.4

Reported by: unsalkorkmaz's profile unsalkorkmaz Owned by:
Milestone: Priority: normal
Severity: major Version: 1.6
Component: Core Keywords:


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)

#1 @r-a-y
12 years ago

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.

#2 @unsalkorkmaz
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' );
		$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

Last edited 12 years ago by unsalkorkmaz (previous) (diff)

#3 @unsalkorkmaz
12 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#4 @DJPaul
12 years ago

  • Milestone Awaiting Review deleted

#5 @johnjamesjacoby
9 years ago

  • Version changed from 1.6-beta to 1.6

#6 @DJPaul
8 years ago

  • Component changed from Tools - Warnings/Notices to Core
Note: See TracTickets for help on using tickets.