"Plugin (order_tag) instance class "Drupal\commerce_order_tag_condition\Plugin\Commerce\Condition\OrderTag" does not exist. when uninstalling module

Created on 15 November 2023, about 1 year ago

Problem/Motivation

When uninstalling and there's a commerce promotion using this condition, it leads to:
Uncaught PHP Exception Drupal\Core\Entity\EntityStorageException: "Plugin (order_tag) instance class "Drupal\commerce_order_tag_condition\Plugin\Commerce\Condition\OrderTag" does not exist.

Steps to reproduce

  • Add an order tag condition in any promotion.
  • Uninstall the module.
  • Above error appears.

Proposed resolution

Remove the condition from promotion prior to uninstall, so install file there.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain aleix

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

Comments & Activities

Production build 0.71.5 2024