Problem/Motivation

When uploading an image when fields are mapped, if specific metadata is not found for a mapped field, errors will be shown, e.g.:

Warning: Undefined array key "caption" in Drupal\exif\Hook\ExifHooks->entityPresave() (line 167 of modules/contrib/exif/src/Hook/ExifHooks.php).

Warning: Undefined array key "keywords" in Drupal\exif\Hook\ExifHooks->entityPresave() (line 177 of modules/contrib/exif/src/Hook/ExifHooks.php).

Steps to reproduce

Map a metadata field to a media field.
Upload an image that doesn't have that element.

Proposed resolution

Fix the bug =)

Remaining tasks

Fix the bug =)

User interface changes

No errors.

API changes

n/a

Data model changes

n/a

Issue fork exif-3626097

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

damienmckenna created an issue. See original summary.

  • damienmckenna committed c5136521 on 8.x-2.x
    Issue #3626097 by DamienMcKenna: Don't fail if mapped metadata not found...
damienmckenna’s picture

Assigned: damienmckenna » Unassigned
Status: Active » Fixed

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.