Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Due to the changes in Visible components (fields, extra fields) in Entity Display config entities store their region, when saving the entity form display form for commerce orders the following exception occurs:
The website encountered an unexpected error. Please try again later.
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "hidden" plugin does not exist.
Steps to reproduce
- Go to /admin/commerce/config/order-types/default/edit/form-display
- Hit the save button
Proposed resolution
As per the change request, in the weight field definition change
->setDisplayOptions('form', [
'type' => 'hidden',
])
->setDisplayOptions('form', [
'region' => 'hidden',
])
Issue fork commerce_shipping-3272445
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
intrafusion