- ๐บ๐ธUnited States mlncn Minneapolis, MN, USA
Cannot begin to explain why, but this is also happening repeatedly to us.
Steps to reproduce:
1. Install Drutopia distribution (Can get the code and set up project in DDEV with
ddev composer create -y drutopia/drutopia_dev_template:dev-main --no-interaction
, then use the web UI to install, select "Everything" at the what to install step.
2. Go to Content types ยป Action ยป Manage Fields
3. For field_image select Clone to Media
4, Select Create a new Media Image field
5. Leave the default, field_image_media or change it to field_media_image, doesn't matterThe processing bar won't move, will stay stuck on "Cloning is starting" and the reported error will be in the logs, AH01071: Got error 'PHP message: Uncaught PHP Exception InvalidArgumentException: "Field field_media_image is unknown." at /var/www/html/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php line 583', referer: https://drutopia-dev-site.ddev.site/batch?id=3&op=start
- ๐บ๐ธUnited States mlncn Minneapolis, MN, USA
Ah OK the steps to reproduce are much easierโ simply fail to have any media types, or i suppose any media image type, and it'll happen.
I don't know at some point i expected it to create the media image for us even though i think i knew at one point that it doesn't.
Creating the media type image would be a cool feature.
But i guess the minor bug report here is that there should be no way to start the processing, or there should be a clear error with explanation thrown.
Creating the media type image would be a cool feature.
Isn't it created by default after installing the "Media" module?
- ๐บ๐ธUnited States mlncn Minneapolis, MN, USA
Only if you have Drupal core's standard profile enabled, i believeโ the code that does this lives here:
https://git.drupalcode.org/project/drupal/-/tree/10.1.x/core/profiles/st...
(adding that code to Drutopia now, but definitely possible for sites to start off with Minimal or other profiles.)
I added the requirement of creation of the "Image" media type to the "Uses" section on the project's page.
- Status changed to Closed: won't fix
over 1 year ago 8:55pm 19 August 2023 - Assigned to wombatbuddy
- Status changed to Active
over 1 year ago 5:55am 20 August 2023 - @wombatbuddy opened merge request.
- Status changed to Needs review
over 1 year ago 4:24pm 28 August 2023 -
wombatbuddy โ
committed 6d17efd6 on 2.x
Issue #3274349: Field field_media_image is unknown. in Drupal\Core\...
-
wombatbuddy โ
committed 6d17efd6 on 2.x
- Status changed to Fixed
about 1 year ago 9:08pm 5 October 2023 - Status changed to Fixed
about 1 year ago 9:08pm 5 October 2023 - ๐บ๐ธUnited States mlncn Minneapolis, MN, USA
Really impressive, thank you!!