[buddypress-trac] [BuddyPress Trac] #6195: Ajax Activity Update Fails to Post When Akismet Enabled

buddypress-trac noreply at wordpress.org
Fri Feb 6 22:25:02 UTC 2015


#6195: Ajax Activity Update Fails to Post When Akismet Enabled
----------------------------------+------------------------------
 Reporter:  SlothLoveChunk        |       Owner:  boonebgorges
     Type:  defect (bug)          |      Status:  reviewing
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Component - Activity  |     Version:  2.2
 Severity:  normal                |  Resolution:
 Keywords:  reporter-feedback     |
----------------------------------+------------------------------
Changes (by boonebgorges):

 * keywords:   => reporter-feedback


Comment:

 Hm. I activated Akismet locally and can't reproduce the problem. Activity
 posts are being properly checked against Akismet, and a success result is
 returned to the AJAX request.

 SlothLoveChunk, could you help with a bit more debugging? Could you enable
 debug logging (`define( 'WP_DEBUG', true ); define( 'WP_DEBUG_DISPLAY',
 false ); define( 'WP_DEBUG_LOG', true );`) and see if anything of note
 pops up in wp-content/debug.log? If not, could you try digging into
 buddypress/src/bp-activity/bp-activity-akismet.php to see if you can
 figure out exactly where execution is getting held up? By the looks of
 things, I'd say that the failing line is the following in
 `BP_Akismet::update_activity_akismet_meta()`:

 {{{
 bp_activity_update_meta( $activity->id, '_bp_akismet_result', 'false' );
 }}}

 Is this function returning false? Or true? Or are you getting a fatal
 error during its execution?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6195#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list