When groups are deleted which were associated with datasets or references, there remains orphaned group content linked to the old gid of the group.

This causes errors on the /search page

TypeError: Argument 1 passed to Drupal\group\Access\GroupAccessResult::allowedIfHasGroupPermissions() must implement interface Drupal\group\Entity\GroupInterface, null given, called in /var/www/html/drupal/web/modules/contrib/group/src/Plugin/GroupContentAccessControlHandler.php on line 145 in Drupal\group\Access\GroupAccessResult::allowedIfHasGroupPermissions() (line 57 of 
/var/www/html/drupal/web/modules/contrib/group/src/Access/GroupAccessResult.php)

Issue fork ekan-3261676

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

thtas created an issue. See original summary.

  • thtas committed 249b21b on 1.0.x
    Issue #3261676: Error on search page after deleting groups.
    
drasgardian’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.