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

Created on 5 May 2023, almost 2 years ago
Updated 21 May 2024, 11 months 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 almost 2 years ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 8
    last update almost 2 years 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 over 1 year 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 11 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

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

Production build 0.71.5 2024