LogicException: Getting the base fields is not supported for entity type Domain record

Created on 5 May 2023, about 1 year ago
Updated 21 May 2024, about 1 month ago

Problem/Motivation

When using the domain module in combination with this module, we're getting a LogicException: Getting the base fields is not supported for entity type Domain record when switching layout in the view modes on a content type.

Not sure if it is something in our setup or is on new installs also. Will verify that later.

I think the error is due to the fact the Domain entity is a config entity and it is not fieldable.

Proposed resolution

There must be some kind of check if the entity is fieldable.

Remaining tasks

Review patch

User interface changes

-

API changes

-

Data model changes

-

πŸ› Bug report
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium tim-diels Belgium πŸ‡§πŸ‡ͺ

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

Comments & Activities

  • Issue created by @tim-diels
  • πŸ‡§πŸ‡ͺBelgium tim-diels Belgium πŸ‡§πŸ‡ͺ
  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    10 pass
  • πŸ‡§πŸ‡ͺBelgium tim-diels Belgium πŸ‡§πŸ‡ͺ

    Provided a temp solution. Not sure how to check it otherwise. Any suggestions on reworking the patch is welcome.

  • Status changed to Needs work 9 months ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @tim-diels I hope you understand we can't include such a change for another contrib module in this contrib module. Any other ideas how to solve this?

    We could add a hook, but that would be super special, hopefully there's a more general solution?

  • Status changed to Closed: won't fix about 1 month ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @tim-diels no activity / reply since > 1Y. Feel free to reopen with a clean approach.

Production build 0.69.0 2024