Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Unable to authorize groum membership requests


r-a-y
Keymaster

@r-a-y

Just experienced the OP’s problem.

I looked into it and found a tentative fix… though a BP dev will need to look at the code.

In “bp-core/bp-core-notifications.php”, look for the bp_core_notifications_for_user() function.

Then look for these lines:

$item_id = ( 1 == $action_item_count ) ? $component_action_items[0]->item_id : false;
$secondary_item_id = ( 1 == $action_item_count ) ? $component_action_items[0]->secondary_item_id : false;

Change this to:

$item_id = $component_action_items[0]->item_id;
$secondary_item_id = $component_action_items[0]->secondary_item_id;

I don’t know why there was a check done for only 1 item and then returning false for more than 1… if a BP dev can explain why, that’d be great.

Let me know if anyone encounters any problems.

Trac ticket made.

Skip to toolbar