TypeError: Drupal\private_messenger\Form\PrivateMesseng ?>erMessageForm::__construct(): Argument #1 ($entity_repository) must be of type

Created on 30 July 2023, over 1 year ago
Updated 2 August 2023, over 1 year ago

Problem/Motivation

I have the error after going to the page /admin/content/private-messenger-message

TypeError: Drupal\private_messenger\Form\PrivateMesseng
?>erMessageForm::__construct(): Argument #1 ($entity_repository) must be of type Drupal\private_messenger\Form\EntityRepositoryInterface, Drupal\Core\Entity\EntityRepository given, called in /app/web/modules/contrib/private_messenger/src/Form/PrivateMessengerMessageForm.php on line 53 in Drupal\private_messenger\Form\PrivateMessengerMessageForm->__construct() (line 35 of /app/web/modules/contrib/private_messenger/src/Form/PrivateMessengerMessageForm.php)

Steps to reproduce

1- After Enabling private messenger
2- go to /admin/content/private-messenger-message
3- Error.

Proposed resolution

Import the class.

πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡ΈπŸ‡¦Saudi Arabia abdulaziz zaid Riyadh

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

Comments & Activities

Production build 0.71.5 2024