"max entity cardinality was reached" when node with media reference is saved

Created on 25 November 2023, 12 months ago
Updated 10 September 2024, 2 months ago

Problem/Motivation

On a site using Group Media 8.x-2.2 with "Enable media tracking" option enabled on media content plugins:

When a node with a Media entity reference is added to a group the referenced media entity is added to the group, per the configuration, with no errors. When the node is edited and saved, the following message appears in the db log:

groupmedia	Debug	{media name} was not assigned to group {group name} because max entity cardinality was reached


This may be similar to issue #3340364.

Steps to reproduce

- Enable Media module
- Install and enable Group 8.x-1.6, Group Media 8.x-2.2
- Configure a node type, eg article, with a Media reference field
- Configure a group type with group content plugins for node and media types, making sure tracking is enabled on media types
- Create a node with a media attachment
- Add the node to group
- Check "All entities for group" tab to insure node and media are now in the group
- Edit and save the node
- View the db log

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.2

Component

Code

Created by

🇨🇦Canada dale42 Vancouver, Canada

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

Comments & Activities

Production build 0.71.5 2024