Enabling the module completely breaks form display on any content type (node)

Created on 5 February 2024, 11 months ago
Updated 5 March 2024, 10 months ago

Problem/Motivation

Note, that this issue ONLY affects `3.0.x-dev`, hence there is no current release for this version, I set the priority to MAJOR instead of CRITICAL

Enabling this module on a fresh Drupal site completely breaks the form display of any content type (e.g. article, page, etc.).

Drupal version used: 10.2.2
PHP version used: 8.2.13
Admin theme used: Claro 10.2.2
search_api version used: 1.31

Steps to reproduce

  • (Optional) Create a fresh Drupal installation.
  • Enable the "Search API" module.
  • (Optional) Enable the "Database Search Defaults" module and uninstall it again.
  • Add an article (`/node/add/article`).
  • See that the Add / Edit form just looks like usually.
  • Install this module (Search API Exclude Entity).
  • Go back to the add form (`/node/add/article`).
  • See that the Add / Edit form is completely broken.

It doesn't matter if there are any search api defaults configured or not. Either way, the form display breaks on module install. When uninstalling the module again, the form display goes back to normal.

Pre-Installation Standard Article Form:

Post-Installation Standard Article Form (broken):

Furthermore, going to the content collection (`/admin/content`), all entity base fields seem to be removed:

Pre-Installation Content Collection:

Post-Installation Content Collection:

Proposed resolution

Fix the issue.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Grevil

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024