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).

CommentFileSizeAuthor
Screenshot 2022-12-12 19.59.41.png192.87 KBzenimagine

Comments

zenimagine created an issue. See original summary.

larowlan’s picture

Category: Bug report » Support request
Issue tags: +Bug Smash Initiative
zenimagine’s picture

I 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.

zenimagine’s picture

It seems that the problem is created by the Group module

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)
zenimagine’s picture

zenimagine’s picture

Status: Postponed (maintainer needs more info) » Active

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

cilefen’s picture

Status: Active » Closed (duplicate)