When loading a mailchimp field on the login/register form the site crashes and throws the following error:
Error: Call to undefined method Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\MultistepDefault::getOperation() in Drupal\mailchimp_lists\Plugin\Field\FieldWidget\MailchimpListsSelectWidget->formElement()
(line 121 of /www/web/modules/contrib/mailchimp/modules/mailchimp_lists/src/Plugin/Field/FieldWidget/MailchimpListsSelectWidget.php)
The getOperation() function is missing please can you advise where this should be?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | error_fix-3072547-3.patch | 982 bytes | init90 |
Comments
Comment #2
init90Hi, @mbatterton
I also encountered with the issue some time ago. The problem caused by changes which were committed in the issue:
Existing subscriber data overwritten when creating a new entity with a subscription field
Also, I've added patch which fixed the problem to the issue above.
Comment #3
init90Re-upload patch to fix the bug from Existing subscriber data overwritten when creating a new entity with a subscription field
Comment #4
init90Set to NR.
Comment #5
berdirMakes sense, instead of the method_exists(), it could also be a instanceof EntityFormInterface.
Comment #6
dunebl#4 remove the error, thank you
Comment #7
mshaver commentedComment #9
samuel.mortensonSwitched to an interface check per #5 but otherwise this should be fixed on the next commit. Thanks all!