- Issue created by @akbarBakhshi
- 🇪🇸Spain javitan
I'm having the same issue, but I'm not sure the issue is related with this module. I can create a new node, and then I'm having the same problem updating any image of any block with an image field inside. I'm using layout builder. Were you able to solve it?
- 🇮🇳India Krishna Mishra
Hi, If you are using group module try this patch.
https://www.drupal.org/project/group/issues/3071489 🐛 Incorrect Access Check on Media Library RTBC - 🇮🇳India santhosh@21
I also has the same issue in my site
Did anyone got solution ? - 🇪🇸Spain javitan
I avoided the problem using Entity Browser → instead of the media library (changing it from the form display).
- 🇮🇳India santhosh@21
With Entity browser still there is an below error
"\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /layout_builder/update/block/overrides/node.232/0/second/6097a8ed-fd54-4a5e-b859-d17c3f6a9a1d?destination=/node/232/layout&_wrapper_format=drupal_dialog&ajax_form=1\nStatusText: error\nResponseText: The website encountered an unexpected error. Please try again later.TypeError: key(): Argument #1 ($array) must be of type array, null given in key() (line 424 of modules/contrib/entity_browser/src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php). Drupal\\entity_browser\\Plugin\\Field\\FieldWidget\\EntityReferenceBrowserWidget::processEntityBrowser(Array, Object, Array)\ncall_user_func_array(Array, Array) (Line: 1012)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 1075)\nDrupal\\Core\\Form\\FormBuilder->doBuildForm('layout_builder_update_block', Array, Object) (Line: 449)\nDrupal\\Core\\Form\\FormBuilder->rebuildForm('layout_builder_update_block', Object, Array) (Line: 633)\nDrupal\\Core\\Form\\FormBuilder->processForm('layout_builder_update_block', Array, Object) (Line: 325)\nDrupal\\Core\\Form\\FormBuilder->buildForm(Object, Object) (Line: 73)\nDrupal\\Core\\Controller\\FormController->getContentResult(Object, Object)\ncall_user_func_array(Array, Array) (Line: 123)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 592)\nDrupal\\Core\\Render\\Renderer->executeInRenderContext(Object, Object) (Line: 124)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 181)\nSymfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object, 1) (Line: 76)\nSymfony\\Component\\HttpKernel\\HttpKernel->handle(Object, 1, 1) (Line: 58)\nDrupal\\Core\\StackMiddleware\\Session->handle(Object, 1, 1) (Line: 48)\nDrupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object, 1, 1) (Line: 106)\nDrupal\\page_cache\\StackMiddleware\\PageCache->pass(Object, 1, 1) (Line: 85)\nDrupal\\page_cache\\StackMiddleware\\PageCache->handle(Object, 1, 1) (Line: 48)\nDrupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)\nDrupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object, 1, 1) (Line: 49)\nDrupal\\remove_http_headers\\StackMiddleware\\RemoveHttpHeadersMiddleware->handle(Object, 1, 1) (Line: 51)\nDrupal\\Core\\StackMiddleware\\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)\nDrupal\\Core\\DrupalKernel->handle(Object) (Line: 19)\n"
- 🇪🇸Spain javitan
I guess you are using a Entity Browser view on the widget settings, right?
Also, on the form display you have changed the widget to use the Entity Browser.
- 🇮🇳India Veershetty
Hello, I am still facing the issue for drupal 9 when I try upload image in layout builder using media browser. Anyone found solution?