ccolumbie ā created an issue.
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
I have the same problem with core 10.2.4 and php 8.1.27.
Warning: Undefined array key "#type" in Drupal\Core\Form\FormHelper::processStates() (line 211 of /var/www/html/core/lib/Drupal/Core/Form/FormHelper.php)
#0 /var/www/html/core/includes/bootstrap.inc(164): _drupal_error_handler_real(2, 'Undefined array...', '/var/www/html/c...', 211)
#1 /var/www/html/core/lib/Drupal/Core/Form/FormHelper.php(211): _drupal_error_handler(2, 'Undefined array...', '/var/www/html/c...', 211)
#2 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(447): Drupal\Core\Form\FormHelper::processStates(Array)
#3 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender(Array)
#4 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender(Array)
#5 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#6 /var/www/html/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array)
#7 /var/www/html/sites/default/files/php/twig/6622a572537ab_table.html.twig_ikeuxK6Ycwitx_aR_t9weRlES/Oe2pFZrZIwFulnMpsjtykc9ByntX0dqg9YJBA7O0CQo.php(179): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#8 /var/www/html/vendor/twig/twig/src/Template.php(394): __TwigTemplate_2f87943cedf7089d68051b4bda7909e4->doDisplay(Array, Array)
#9 /var/www/html/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array)
#10 /var/www/html/vendor/twig/twig/src/Template.php(379): Twig\Template->display(Array)
#11 /var/www/html/vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render(Array)
#12 /var/www/html/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render(Array)
#13 /var/www/html/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('themes/contrib/...', Array)
#14 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('table', Array)
#15 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#16 /var/www/html/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array)
#17 /var/www/html/sites/default/files/php/twig/6622a572537ab_field-multiple-value-form__-fBpc5R0_baBczcTTpzZExu8/nHuKHFZqsTpyHoO-g8WhH2ASVtZYOt-c9hXp0vuV00c.php(50): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#18 /var/www/html/vendor/twig/twig/src/Template.php(394): __TwigTemplate_9e07f5bab0024d8e59863cb88ad5313b->doDisplay(Array, Array)
#19 /var/www/html/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array)
#20 /var/www/html/vendor/twig/twig/src/Template.php(379): Twig\Template->display(Array)
#21 /var/www/html/vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render(Array)
#22 /var/www/html/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render(Array)
#23 /var/www/html/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('core/modules/sy...', Array)
#24 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('field_multiple_...', Array)
#25 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender(Array)
#26 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender(Array)
#27 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#28 /var/www/html/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array)
#29 /var/www/html/sites/default/files/php/twig/6622a572537ab_node-edit-form.html.twig__t4CVA_vLT0YbXjC2AiwTdUJL/LgWlhhF15jRMIdiYbVnu3p5tmEaHRt38jKqFvwhA_RA.php(43): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#30 /var/www/html/vendor/twig/twig/src/Template.php(394): __TwigTemplate_61251f366ecd789d9923ce1207c62250->doDisplay(Array, Array)
#31 /var/www/html/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array)
#32 /var/www/html/vendor/twig/twig/src/Template.php(379): Twig\Template->display(Array)
#33 /var/www/html/vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render(Array)
#34 /var/www/html/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render(Array)
#35 /var/www/html/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('themes/contrib/...', Array)
#36 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('node_edit_form', Array)
#37 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#38 /var/www/html/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(238): Drupal\Core\Render\Renderer->render(Array, false)
#39 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#40 /var/www/html/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(239): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#41 /var/www/html/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#42 /var/www/html/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#43 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#44 /var/www/html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#45 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#46 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#47 /var/www/html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#48 /var/www/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#49 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#50 /var/www/html/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#51 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#52 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#53 /var/www/html/vendor/asm89/stack-cors/src/Cors.php(53): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#54 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Asm89\Stack\Cors->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#55 /var/www/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#56 /var/www/html/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#57 /var/www/html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#58 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#59 /var/www/html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#60 {main}
The #16 it's the only one that worked for me. Thanks leewbutler!!!
I discovered that a custom implementation interfered with the status operation in cloning. Sorry for my mistake. I close the ticket.
ccolumbie ā created an issue.