I cannot add media to the specific field when creating a subgroup
The following issue does not exist if you edit the subgroup (leave empty the field and then add the media when editing the subgroup)
- Enable modules "Media" and "Media library"
- Create Group types "Parent" and "Child"
- Add relationship between groups "Parent" as parent and "Child" as child group
- On Group type "Child" add a field "Reference media" and select a media type (it doesn't matter which)
- Add a Group "Parent"
- Click to add a "Child" subgroup
- At the field to add a Media, click on "Add media" to open the popup of the media library
- Upload a file or use one existing media (if you added on your own beforehand)
- What should happen:
Go back to the form with the selected media inserted onto the field
- What happens:
Get error both on browser console and dblog with the following message
message: "An AJAX HTTP error occurred. HTTP Result Code: 403 Debugging information follows.
Path: /media-library?media_library_opener_id=media_library.opener.field_widget&media_library_allowed_types%5Baudio%5D=audio&media_library_allowed_types%5Bdocument%5D=document&media_library_selected_type=audio&media_library_remaining=1&media_library_opener_parameters%5Bfield_widget_id%5D=field_media&media_library_opener_parameters%5Bentity_type_id%5D=group&media_library_opener_parameters%5Bbundle%5D=child&media_library_opener_parameters%5Bfield_name%5D=field_media&hash=m84IYoJFRh2UN6t8_MZkzORvpingZFcuAg0SwiQYsN4&ajax_form=1&_wrapper_format=drupal_ajax. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: Cannot create a group globally if its group type is a non-root leaf of a tree. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 120 of /var/www/html/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
What is weird (for me) is that it throws this error message
Cannot create a group globally if its group type is a non-root leaf of a tree
where the actions I do, do not create a group, it's just adding a media to the field and then create the group, after filling in other fields
Do you have any idea?
Needs work
1.0
Miscellaneous
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.