Group admin cannot send invites on multilingual WP
I am having problem in my Buddypress Group where group admins cannot send invites.
Group admin can enter the Invite Members page, select members to invite, then clicked on Send Invites link with number of members to invite. Then a form appears to enter optional messages. Upon clicking the Send button there, a red alert shows that “Invitation failed for (number) users”. On buddypress version 6, the message was “You are not allowed to send invitations for this group”.
This happens on multilingual installation of WordPress (using WPML) and not selecting the default (English) language. If I choose English, the problem does not happen. I do translate some of the words there for non english version, but could it be the source of the problem?
Upon debugging into function bp_nouveau_ajax_send_group_invites(), it seems that function bp_get_current_group_id() and $_POST[group_id] both returns group_id = 0
Any idea on how i could fix this?
- You must be logged in to reply to this topic.