InvalidArgumentException: Field field_destination is unknown

Created on 10 June 2023, over 1 year ago
Updated 22 June 2023, over 1 year ago

Drupal 10 - latest versions of everything.

No matter what I do, I get the below. In my case, I select an image, save and get "The site encountered an unexpected error."

Below is the log report. Any help greatly appreciated!

InvalidArgumentException: Field field_destination is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of /[site]/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

I've tried to install media_entity_browser, BTW, but the composer install fails. See latest report over there. Thanks in advance!

πŸ’¬ Support request
Status

Closed: cannot reproduce

Version

2.9

Component

Field widget

Created by

πŸ‡ΊπŸ‡ΈUnited States bcobin

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

Comments & Activities

  • Issue created by @bcobin
  • Status changed to Closed: cannot reproduce over 1 year ago
  • πŸ‡¨πŸ‡¦Canada Nathan Tsai

    Normally this error comes from trying to do something like:

    $entity->get('field_destination')->...
    

    somewhere in a custom module or theme (or just code).

    Does this ring any bells?

    --------------------

    Also, closing the issue as the string "field_destination" does not exist in the entity_browser codebase:

    https://git.drupalcode.org/search?search=field_destination&nav_source=na...

    We'll need more information (e.g. a view you configured, a content type with the field_destination, etc.) to reproduce the error.

Production build 0.71.5 2024