Fatal error if taxonomy is not installed

Created on 3 June 2022, over 2 years ago
Updated 27 January 2023, almost 2 years ago

Problem/Motivation

If Taxonomy module is not installed on a site, when navigating to the Block Configure screen, a fatal error is thrown:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "taxonomy_vocabulary" entity type does not exist.

Steps to reproduce

Proposed resolution

I would suggest either:

  1. Move the not_taxonomy_vocabulary condition into its own sub-module, similar to the block_visibility_conditions_commerce sub-module.
  2. And/or, in NotConditionPluginBase ensure that the entity type exists before trying to load it.

Technically speaking the same error will also be raised if Node is not installed.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom AaronMcHale Edinburgh, Scotland

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.

Production build 0.71.5 2024