Buddypress Activity Post Error

Hi Themeco

I’ve been working on my site extensively recently, working the UI of the buddypress activity stream. I found a bug, that I hadn’t noticed before - and I’ve spent all day trying to track it down.

When someone posts on the activity stream, the ajax that runs the buddypress post works fine the first time, - but on the second the JavaScript that carries out the Ajax request listens for a click on #aw-whats-new-submit, doesn’t refresh the active variable and disables the post button!

It uses some focus and blur javascript that does form checking in
plugins/buddypress/bp-themes/bp-default/_inc/global.js

I have the dev environment slimmed down to only the latest X, Cornerstone and Buddypress. I cleansed my .htaccess to make sure nothing complex, cached or strange could be here. It still disables the post button on the second post.

When a standard Wordpress (2017) theme is used, the error goes away. Please help me trackdown this bug.

I’ll do a private post of the site admin information.

Theres a real beauty in using forums. I was of course at my wits end by the time I posted here!

I’m using a script called “perfmatters” that lets me turn off js or css files, individually per page. With this tool, I found that this file:

/wp-content/themes/x/framework/js/dist/site/x-buddypress.js

This file is commenting out the buddypress form checking starting at lines 41, 62 and 97 to disable the post animations. Uncommenting it brought the functionality back.

I would suggest taking a look at this functionality for all my fellow X webmasters using buddypress.

Hey @bluedotproductions,

Thanks for sharing your findings. I have replicated this issue in my test site so I’ll post this to our issue trackers so our development team could be made aware once they go through the list of reports.

Thanks.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.