Hi @nuovoutente,
I could reproduce the issue on my test site that you have explained.
To resolve this issue along with the above provided code try editing the following BuddyPress Activity Plus plugin file on line number 44 as displayed below.
BuddyPress Activity Plus plugin file :
buddypress-activity-plus/js/bpfb_interface.js
Before Editing:
var createVideoPreview = function () {
var url = $('#bpfb_video_url').val();
if (!url) return false;
$('.bpfb_preview_container').html('<div class="bpfb_waiting"></div>');
$.post(ajaxurl, {"action":"bpfb_preview_video", "data":url}, function (data) {
$('.bpfb_preview_container').empty().html(data);
$('.bpfb_action_container').html(
'<p><input type="button" class="button-primary bpfb_primary_button" id="bpfb_submit" value="' + l10nBpfb.add_video + '" /> ' +
'<input type="button" class="button" id="bpfb_cancel" value="' + l10nBpfb.cancel + '" /></p>'
);
$("#bpfb_cancel_action").hide();
});
};
After Editing:
var createVideoPreview = function () {
var url = $('#bpfb_video_url').val();
if (!url) return false;
$('.bpfb_preview_container').html('<div class="bpfb_waiting"></div>');
$.post(ajaxurl, {"action":"bpfb_preview_video", "data":url}, function (data) {
$('.bpfb_preview_container').empty().html(data);
if( data != 'There has been an error processing your request' ){
$('.bpfb_action_container').html(
'<p><input type="button" class="button-primary bpfb_primary_button" id="bpfb_submit" value="' + l10nBpfb.add_video + '" /> ' +
'<input type="button" class="button" id="bpfb_cancel" value="' + l10nBpfb.cancel + '" /></p>'
);
$("#bpfb_cancel_action").hide();
}
});
};
Note: You are making changes in the plugin file and these changes will be overwritten and lost when you update the plugin and you will have to make these again after plugin updation.
Regards,
WPMU DEV