Problem/Motivation

Updating from 6.0.0-beta1 to 6.0.0-beta2 I got the following error.

PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Drupal\webform\WebformEntityReferenceManager::__construct(), 3 passed in /data/app/core/lib/Drupal/Component/DependencyInjection/Container.php on line 257 and exactly 5 expected in /data/app/modules/contrib/webform/src/WebformEntityReferenceManager.php:90
Stack trace:
#0 /data/app/core/lib/Drupal/Component/DependencyInjection/Container.php(257): Drupal\webform\WebformEntityReferenceManager->__construct()
#1 /data/app/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService()
#2 /data/app/core/lib/Drupal/Component/DependencyInjection/Container.php(432): Drupal\Component\DependencyInjection\Container->get()
#3 /data/app/core/lib/Drupal/Component/DependencyInjection/Container.php(235): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#4 /data/app/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Contain in /data/app/modules/contrib/webform/src/WebformEntityReferenceManager.php on line 90
 [warning] Drush command terminated abnormally.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kim.pepper created an issue. See original summary.

jrockowitz’s picture

Please try clearing Drupal's cache.

redseujac’s picture

Clearing the cache does the trick for me. Thank you.

Rar9’s picture

tried clear cache no change :-(

Rar9’s picture

was forced to clear 2x

milos.kroulik’s picture

I also needed to clear twice. This could be an issue when deploying.

jrockowitz’s picture

We can try to soften the dependency.

jrockowitz’s picture

Status: Active » Needs review
FileSize
1.32 KB
jrockowitz’s picture

The patch is applicable to 8.x-5.x and 6.x

kim.pepper’s picture

Status: Needs review » Reviewed & tested by the community

Works for me. Thanks!

  • jrockowitz authored 79ed075 on 8.x-5.x
    Issue #3185457 by jrockowitz: ArgumentCountError: Too few arguments to...
jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed
acbramley’s picture

Version: 6.0.0-beta1 » 6.x-dev

@jrockowitz this doesn't seem to have been committed to 6.x? Are you able to add that and roll a new release?

  • jrockowitz authored 79ed075 on 6.x
    Issue #3185457 by jrockowitz: ArgumentCountError: Too few arguments to...

Status: Fixed » Closed (fixed)

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