Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: sitewide activity validation error


wolfspirittt
Participant

@wolfspirittt

I had this problem too and it was very frustrating. The main pubDate was fine as it was just the last updated time, but the pubDate for each post was not in the correct format. I found a fix for this. It’s a hack to the buddypress code so I’ll give you all of the standard “enter at your own risk” warnings but at least until the buddypress team fixes this, this should solve your problem.

edit the following file and add the following lines (make sure you comment out the line I mention as well):

/wp-content/plugins/buddypress/bp-activity/bp-activity-templatetags.php

$formated_recorded_date = strtotime($activities_template->activity->date_recorded);

$formated_recorded_date = date (‘D, d M Y H:i:s T’, $formated_recorded_date );

return apply_filters( ‘bp_get_activity_feed_item_date’, $formated_recorded_date );

//return apply_filters( ‘bp_get_activity_feed_item_date’, $activities_template->activity->date_recorded );

Skip to toolbar