Problem/Motivation

currently it is not possible in the layout builder to upload a new media item or to change it to another element is not working

Steps to reproduce

testet here: https://www.drupal.eu/node/23/layout
tried to upload a new image.
Please spot the errors and screenshot

When uploading new media items within the layout builder, there are no buttons after selecting an image.
When selecting a new media item, JS Errors pop up and nothing happens

Proposed resolution

Remaining tasks

CommentFileSizeAuthor
CleanShot 2026-05-07 at 08.27.28@2x.png858.24 KBgrienauer

Issue fork la_eu-3588882

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

grienauer created an issue. See original summary.

taran2l’s picture

Related issues: +#3587540: File upload broken

Could be related to #3587540: File upload broken

taran2l’s picture

We have spent some time digging into it and basically the rabbit hole is quite deep.

The source of the issue is the fact that inline block usage is not being recorded when content is being created by the default_content module

However, there is more - when a project is being installed from config - usage for default inline blocks in the layout is not recorded as well

There are a few patches, but not a single one works for all the use cases.

More to that - the extra thing is that existing content needs to be updated to include inline block usage.

So, the proposed solution:

  1. Get rid of the default banner block, as its usage cannot be reliably recorded (i.e. we do not see a quick way of fixing this)
  2. Amend and apply patch from #3062819: Duplicated and new entities with inline blocks do not duplicate their inner blocks and/or track their usage
  3. Record missing inline block usage for the existing content

Let me know what do you think

grienauer’s picture

I deleted this block and recreated it.
Let's keep so and don't spend extra time here… would be great to have this solved but if deleting and recreating it once fixes this problem it is ok at least for me.
thx for clarification and effort to find the problem.

grienauer’s picture

Status: Active » Needs review
esmoves’s picture

Agreed with the path forward. I will check for other broken blocks within existing content and document the process to replace them.

Thank you for finding this!

  • taran2l committed 03bc3380 on staging
    fix: #3588882 Media Upload and Media selection does not work
    
    By:...
taran2l’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • taran2l committed 03bc3380 on 2.x
    fix: #3588882 Media Upload and Media selection does not work
    
    By:...

  • taran2l committed 03bc3380 on downstream/la_nl
    fix: #3588882 Media Upload and Media selection does not work
    
    By:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.