I made the latest Drupal 9.4.9 update.
Now I have a problem with the Media field.
In my content types, I have a Media field that references images. Since the last Drupal update, I have errors in the console and in the logs.
When I create a new node, I open the media field library in the modal window and select an image. I click on the "Insert selected item" button and nothing happens. I just have errors in the console and the logs.
It works only I save the node without adding Media. Then you have to modify the node to be able to insert an image in the control.
I use the content_moderation module on my website.
Do you encounter this problem ? Thanks
Chemin : /media-library?ajax_form=1&_wrapper_format=drupal_ajax&media_library_opener_id=media_library.opener.field_widget&media_library_allowed_types%5Bimage%5D=image&media_library_selected_type=image&media_library_remaining=1&media_library_opener_parameters%5Bfield_widget_id%5D=field_event_image&media_library_opener_parameters%5Bentity_type_id%5D=node&media_library_opener_parameters%5Bbundle%5D=event&media_library_opener_parameters%5Bfield_name%5D=field_event_image&hash=Vw2Ww5FgYOmSNuRLk02mmIuGsMO9-ailtEIxcJGaim0&views_display_id=widget&_wrapper_format=drupal_ajax. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: dans Drupal\Core\Routing\AccessAwareRouter->checkAccess() (ligne 121 de /home/clients/788787666686868686866/sites/www.example.fr/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2022-12-12 19.59.41.png | 192.87 KB | zenimagine |
Comments
Comment #2
larowlanComment #3
zenimagine commentedI don't know how to reproduce. I have a media field in my group type and it works fine. I have a media field in my content types and it refuses to insert an image. It works for the admin account, but not for the authenticated user.
To make it work for the authenticated user, he must save the node and modify it to be able to add an image.
The problem occurs only for new node creation.
Comment #4
zenimagine commentedIt seems that the problem is created by the Group module
Comment #5
cilefen commentedComment #6
zenimagine commentedComment #7
zenimagine commentedComment #9
cilefen commented