Shipping method field causes form validation error

Created on 4 March 2021, about 4 years ago
Updated 16 October 2024, 6 months ago

Problem/Motivation

I had added a field of type commerce_shipping_method to one of my product variations as an overwrite field. Therefore it had to be optional. When creating variation entities later i encountered the followong error:
When trying to save the variation without the shipping method set to anything other than 'none', the process would end up in the following error message:

RuntimeException: The "plugin_configuration" plugin requires the "plugin_id" configuration key in Drupal\commerce\Plugin\Commerce\InlineForm\InlineFormBase->validateConfiguration() (line 89 of /var/www/html/web/modules/contrib/commerce/src/Plugin/Commerce/InlineForm/InlineFormBase.php).

Steps to reproduce

-install commerce_shipping version 8.x-2.0-rc2 (i used composer)
-enable it
-add the Shipping method field to a product variation.
-add new variation
-don't fill in anything into the shipping method field
-click save
->page turns white and the error log shows the said error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇩🇪Germany rrooaarr

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