Module silently requires the "Contact" module to be enabled

Created on 22 September 2022, over 2 years ago
Updated 19 January 2023, about 2 years ago

Problem/Motivation

We don't use the Contact module on our site, and this module seems to require the contact_form entity to exist.

The result is things will fail with this error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "contact_form" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of /opt/drupal/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).

Steps to reproduce

Install this module on a site without the Contact module enabled.

Proposed resolution

The module should either explicitly require the Contact module (less good), or only enable certain functionality when the Contact module is enabled (perhaps split that stuff into a sub-module).

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇿New Zealand fraserthompson Dunedin, New Zealand

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024