group menu with no Friends plugin

By And

Elgg 3.3.15 with inactive Friends plugin

"Invite friends" menu displayed for owner and admin. How to remove it?


  • This is a bug. PR is opened already.

    Until this issue is fixed you can temporarily do the following:

    In the file:


    Under on:

    function _groups_title_menu(\Elgg\Hook $hook) {

    Comment this part (lines 896-902):

    $result[] = \ElggMenuItem::factory([
          'name' => 'groups:invite',
          'icon' => 'user-plus',
          'href' => elgg_generate_entity_url($group, 'invite'),
          'text' => elgg_echo('groups:invite'),
          'link_class' => 'elgg-button elgg-button-action',
    Save and run 'Flush the caches' via administration.
  • Thanks a lot, Nikolai! It works...