Updating comment is not working on production site but is working on my dev site. So that’s frustrating because it makes it hard to trouble shoot.
On production — after clicking save, the process gets stuck on “updating…” In Developer Tools->Network tab I can see that ajax is echoing the content prematurely and then returning content => false in the actual response.
for example:
[HTML content here] {"success":true,"data":{"id":"3793469","content":false}}
At the same time, edit activity (aka top level buddypress post) is working as expected.
I assume there’s some server setting that’s causing this, since
update_comment()
works on my dev but not production. On the other hand, sinceupdate_activity()
does work as expected on production, there must be something (or a lack of something) inupdate_comment()
.I did observe that
update_activity()
has anob_start()
andupdate_comment()
does not. I addedob_start()
toupdate_comment
after line 145, beforeload_template( $template, false );
.On my first attempt to update a comment on production after this, it was successful. However, attempting to edit additional comments reverted to the same problem as before (“content”:false).
Hi Max,
Welcome to BuddyDev forums.The problem seems to be some plugin generating extra content and corrupting the expected json output. Please allow us to test and get back to you in next 24 hours.
Regards
BrajeshHi Max,
I did test it.
I am not seeing anything like that and it is working fine(for activity editing, comment and reply editing). I used BuddyPress 10.0, WordPress 5.9.1 and the latest version of this plugin with BP Nouveau template pack.From your topic, It seems to me that you have a plugin generating extra content. Try disabling some of the plugins related to activity stream to find the culprit.
Please let me know if you are able to find the conflict.
Regards
Brajesh
You must be logged in to reply to this topic.