Creating new media items on media fields causing error.

Created on 11 January 2022, almost 3 years ago
Updated 2 May 2023, over 1 year ago

Oddly this was working locally but not on our dev environment, but what is happening is When I try to add a Brandfolder asset to a media field on a paragraph, I am able to load the media library modal, search for and select an image and hit insert selected.

The field will show the throbber momentarily and then nothing will be attached. If i look in the watchdog I see the following errors:

There was an error saving a new media entity for Brandfolder attachment !attachment_id.

Drupal\Core\Entity\EntityMalformedException: Could not map attachment ID [REDACTED] to an asset. in brandfolder_media_presave() (line 1447 of /svn/web/modules/contrib/brandfolder/brandfolder.module).

I have tried on a couple of fields with the same result. I have also tried selecting different assets assuming perhaps there was something wrong with the asset.

Environment Details:
Drupal 8.9.19
PHP 7.4.21
Mysql 5.7.30

πŸ› Bug report
Status

Fixed

Version

2.0

Component

User interface

Created by

πŸ‡¨πŸ‡¦Canada mikeohara Moncton, NB

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024