Error when creating a group

Created on 28 February 2025, about 2 months ago

Problem/Motivation

Using this module and create a group launch a Fatal error on Drupal 11.1.3 and Group 3.3.4.
It's just a issue on function compatibility.

Fatal error: Declaration of Drupal\group_permissions\Plugin\Validation\Constraint\UniqueEntityReferenceConstraint::validatedBy() must be compatible with Symfony\Component\Validator\Constraint::validatedBy(): string in /var/www/html/web/modules/contrib/group_permissions/src/Plugin/Validation/Constraint/UniqueEntityReferenceConstraint.php on line 29

Steps to reproduce

- Using Group permissions 2.x with Group 3.3.4 and Group permissions template on Drupal 11.1.3.
- Try to create a group.
- Click to save on step 2 (step with url alias)
- See the fatal error above.

Proposed resolution

See patch group_permissions-fix-validatedBy.patch

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇭Switzerland OlivierG

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

Comments & Activities

Production build 0.71.5 2024