Simple Password Reset has compatibility issues with the Message Subscribe Email Module. When Message Subscribe Email Module is enabled, it creates the action message_subscribe_email_flag_action_access() which will call \Drupal::service('flag')->getAllEntityFlaggings($flaggable, $account);
The action will be triggered even if the Flags associated with this action are disabled. When a user attempts a password reset and is in the process of being logged in by Simple Password Reset, the Message Subscribe Email action is invoked and attempts to retrieve all flaggings related to the user. The following error will result:
LogicException: An anonymous user must be identifed by session ID. in Drupal\flag\FlagService->getAllEntityFlaggings() (line 171 of /var/www/http/modules/contrib/flag/src/FlagService.php).
This error is thrown because the action attempts to retrieve flaggings associated with the anonymous user, but doesn't pass a session ID to the getAllEntityFlaggings service in doing so.
Message Subscribe Email Module does not attempt to retrieve flaggings for users upon a password reset. This issue only appears when Message Susbscribe Email Module is paired with Simple Password Reset and can be resolved by disabling Simple Password Reset.
Of course, you could alternately disable Message Subscribe Email Module, but I also ran into another module (Force Password Change) whose logic is also corrupted by the shortcut introduced by Simple Password Reset so I expect that it'll be less hassle to just disable this module instead of hunting down additional dependent issues.
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.