Argument 5 passed to Drupal\webform\WebformHandlerBase::__construct() must implement interface Drupal\Core\Entity\EntityTypeManagerInterface, none given, called in modules/webform_mailchimp/src/Plugin/WebformHandler/WebformMailChimpHandler.php on line 29 and defined in Drupal\webform\WebformHandlerBase->__construct() (line 73 of /modules/webform/src/WebformHandlerBase.php)

Comments

achandel created an issue. See original summary.

hendrik.fuss’s picture

same issue here, with core 8.3.0

autopoietic’s picture

WebformHandlerBase constructor is expecting an additional parameter. I have attached a patch to resolve this.

autopoietic’s picture

Status: Active » Needs review
hendrik.fuss’s picture

Patch works for me, thanks!

(Can't get to select the email field now, but that's another issue. Will investigate.)

autopoietic’s picture

Status: Needs review » Reviewed & tested by the community
johnhanley’s picture

Patch +1

metakel’s picture

The patch works for me. Thank you!

cmckay’s picture

Has this been rolled into dev as yet?

cmckay’s picture

After adding the patch, I am getting ResponseText: Recoverable fatal error: Argument 5 passed to Drupal\webform\WebformHandlerBase::__construct() must implement interface Drupal\Core\Config\ConfigFactoryInterface, instance of Drupal\Core\Entity\EntityTypeManager given

cmckay’s picture

Status: Reviewed & tested by the community » Active

Was able to reproduce this on a fresh install on Simplytest, changing this to active.

chismen’s picture

Same error, with patch:

Webform 8.x-5.0-beta13 and Webform mailchimp 8.x 5.0

TypeError: Argument 5 passed to Drupal\webform\WebformHandlerBase::__construct() must implement interface Drupal\Core\Config\ConfigFactoryInterface, instance of Drupal\Core\Entity\EntityTypeManager given, called in /var/www/igasesores.dev/modules/webform_mailchimp/src/Plugin/WebformHandler/WebformMailChimpHandler.php on line 30 in Drupal\webform\WebformHandlerBase->__construct() (line 97 of modules/webform/src/WebformHandlerBase.php).

hanoii’s picture

Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new1.57 KB

beta13 changed the constructor signature even more

hanoii’s picture

This is also included in #2883538: Several improvements / Request for co-maintainership among other features. If possible a try of that patch could help get most features in.

cmckay’s picture

@hanoii Thanks for tackling these issues! i can confirm that this patch fixed this issue.

georgi777’s picture

Status: Needs review » Reviewed & tested by the community

@hanoii's patch is working.

helonaut’s picture

Confirmed, @hanoii's patch is indeed working: patch in #13 fixes the issue
Can we add this patch to the main branch / get it published? How can we propose this?

hanoii’s picture

I was added as a maintainer, I will add these patches in very soon.

hanoii’s picture

Status: Reviewed & tested by the community » Fixed

Committed the parent issue, will release a new version in a bit.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

bsnodgrass’s picture

Confirming this patch appears to have been rolled into future versions. Just installed 8.x-5.2 and Webform 8.x-5.0-beta15 (which had a DB update error, see: https://www.drupal.org/node/2896357 if you experience "webform_update_8060 Table webform already exists error"

Thanks for the great work on webform module! and webform_mailchimp!