Drupal\group\Entity\Storage\GroupRoleStorage::loadByUserAndGroup(): Argument #1 ($account) must be of type Drupal\Core\Session\AccountInterface, null

Created on 9 May 2024, 6 months ago
Updated 24 May 2024, 6 months ago

Problem/Motivation

After upgrading drupal 9.5 to 10.2.5, i am getting an error for logged in user only.

TypeError: Drupal\group\Entity\Storage\GroupRoleStorage::loadByUserAndGroup(): Argument #1 ($account) must be of type Drupal\Core\Session\AccountInterface, null given, called in /modules/contrib/group/src/Entity/GroupMembershipTrait.php on line 19 in Drupal\group\Entity\Storage\GroupRoleStorage->loadByUserAndGroup() (line 104 of modules/contrib/group/src/Entity/Storage/GroupRoleStorage.php).
🐛 Bug report
Status

Needs review

Version

2.2

Component

Code

Created by

🇳🇵Nepal lalustine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024