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
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
Comment | File | Size | Author |
---|---|---|---|
#8 | 3185457-8.patch | 1.32 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedPlease try clearing Drupal's cache.
Comment #3
redseujacClearing the cache does the trick for me. Thank you.
Comment #4
Rar9 CreditAttribution: Rar9 commentedtried clear cache no change :-(
Comment #5
Rar9 CreditAttribution: Rar9 commentedwas forced to clear 2x
Comment #6
milos.kroulik CreditAttribution: milos.kroulik commentedI also needed to clear twice. This could be an issue when deploying.
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedWe can try to soften the dependency.
Comment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe patch is applicable to 8.x-5.x and 6.x
Comment #10
kim.pepperWorks for me. Thanks!
Comment #12
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #13
acbramley CreditAttribution: acbramley at PreviousNext for University of Adelaide commented@jrockowitz this doesn't seem to have been committed to 6.x? Are you able to add that and roll a new release?