- π¨πSwitzerland handkerchief
A similar Problem here:
Core: 10.1.4Not sure if the error in the screenshot is related to this issue. Because I didn't find a useful pattern of the error. But when I clicked the "Add media" Button, nothing is happening besides the ajax loading gif.
- Status changed to Postponed: needs info
3 months ago 4:18am 26 March 2024 - π³πΏNew Zealand DanielVeza Brisbane, AU
I'm unable to replicate this issue on a fresh 11.x install of Drupal.
I've followed these steps:
- Install a fresh Drupal 11 standard site
- Enable Media, Media library & Layout Builder
- Add Layout Builder and allow content item overrides to the article content type.
- Add a media field to the basic block block type with the media library widget
- Add media library to the basic_html text format
- Create an article and go to Layout Builder
- Add a basic block to the article. Verify that the media library opens correctly both in CKEditor & in the Media library field.
Since this can't be replicated I'm marking this as postponed. If you can replicate this with just core please update this with the steps. Thanks!
- π¨πΊCuba ccolumbie
In d10.2.2 editing a block with layout builder and the media library widget in existing blocks I have the following error when trying to add a Media or select an existing one:
message: '\nAn AJAX HTTP error occurred.\nHTTP Result Code: 403\nDebugging information follows.\nPath: /media-library?destination=/node/8/layout&_wrapper_format=drupal_ajax&ajax_form=1&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_hc_image%3A-settings-block_form&media_library_opener_parameters%5Bentity_type_id%5D=block_content&media_library_opener_parameters%5Bbundle%5D=hotel_counters&media_library_opener_parameters%5Bfield_name%5D=field_hc_image&media_library_opener_parameters%5Bentity_id%5D=3329&media_library_opener_parameters%5Brevision_id%5D=28621&hash=R00G-VI2Jd-tylep7AkBs4y4KjJiYQYYbDpLcDZsRXk&views_display_id=widget\nStatusText: Forbidden\nResponseText: {"message":"Non-reusable blocks must set an access dependency for access control."}'
β
name: "AjaxError"
β
stack: "@http://localhost:8080/core/misc/ajax.js?v=10.2.5:196:32\n@http://localhost:8080/core/misc/ajax.js?v=10.2.5:1916:3\n"Without creating a new block it doesn't happen. Can somebody help me? I see that this error message comes from the checkAccess function in core/modules/block_content/src/BlockContentAccessControlHandler.php