- Issue created by @zenimagine
- πΊπ¦Ukraine artem_sylchuk Lutsk
The fix is provided in π Error occurs after adding the private message link to the user display Active
Since updating the module to the latest version, when I visit a user account page, I have the error below in the logs. On all account pages, except my own account page.
The website has encountered an unexpected error.
TypeError: Drupal\private_message\Service\PrivateMessageService::Drupal\private_message\Service\{closure}(): Argument #1 ($user) must be of type Drupal\user\UserInterface, Drupal\Core\Session\AccountProxy given in Drupal\private_message\Service\PrivateMessageService->Drupal\private_message\Service\{closure}() (line 397 of /home/clients/481ecb1f0f3aebfa21480b334df59d23/sites/example.com/modules/contrib/private_message/src/Service/PrivateMessageService.php).
Active
3.0
Code
The fix is provided in π Error occurs after adding the private message link to the user display Active