Error calling user data

Created on 23 August 2021, about 3 years ago
Updated 18 March 2023, over 1 year ago

Thank you so much for taking this on. A set of projects had overwhelmed my ability to maintain this project. Now I must come for support!

Problem/Motivation

In my install, using the user email access method, I get an error message:

Recoverable fatal error: Object of class Drupal\Core\Session\AccountProxy could not be converted to string in Drupal\Core\Entity\EntityStorageBase->buildCacheId() (line 131 of ***/core/lib/Drupal/Core/Entity/EntityStorageBase.php)

It seems this error is triggered by about line 81 of the module code. Commenting it out eliminates the error and allows the access to function
//$control_entity = User::load(\Drupal::currentUser());

Proposed resolution

Comment out line 81 as above

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Cayenne

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024