After upgrading core to 8.2.0-rc1 I get the following error:
TypeError: Argument 2 passed to Drupal\workbench_moderation\ParamConverter\EntityRevisionConverter::__construct() must implement interface Drupal\workbench_moderation\ModerationInformationInterface, none given, called in /.../core/lib/Drupal/Component/DependencyInjection/Container.php on line 268 in Drupal\workbench_moderation\ParamConverter\EntityRevisionConverter->__construct() (line 33 of modules/contrib/workbench_moderation/src/ParamConverter/EntityRevisionConverter.php).
I noticed in workbench_moderation.services.yml arguments is defined twice.
paramconverter.latest_revision:
class: Drupal\workbench_moderation\ParamConverter\EntityRevisionConverter
arguments: ['@entity.manager', '@workbench_moderation.moderation_information']
tags:
- { name: paramconverter, priority: 5 }
arguments: ['@entity.manager']
Is this intentional? It seems to be a mistake.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2796871-1-workbench_moderation-paramconvertor.patch | 575 bytes | mstrelan |
Comments
Comment #2
mstrelan CreditAttribution: mstrelan commentedComment #5
hass CreditAttribution: hass commentedThis module is now in core 8.2.0
Comment #6
mstrelan CreditAttribution: mstrelan commentedMarked as experimental and with no upgrade path. Surely until then we should be able to keep using this module and keep core up to date.
Comment #7
notmike CreditAttribution: notmike commentedI am getting this same error when trying to install Drupal 8.1.9 under the Acquia Lightning distribution, version 8.1.04. This is the post that comes up when I search for the error.
It has been causing my local build to fail.
Comment #8
naveenvalecha@notmike,
I'm not able to reproduce it with 8.1.9 Please provides the steps to reproduce it with 8.1.9 see https://www.drupal.org/contributor-tasks/add-steps-to-reproduce#steps
Comment #9
notmike CreditAttribution: notmike commented@naveenvalecha
When we ripped out Acquia BLT 8.4.0 (Build and Launch Tool) from our composer.json file and just went with straight Lightning 1.04 (with Drupal 8.1.9), everything built normally.
I am not sure why BLT was causing that error. It seems unrelated. For now, I guess we can ignore what I reported.
Comment #10
mstrelan CreditAttribution: mstrelan commented@naveenvalecha the original report is for 8.2.0-rc1 which is when it first appeared.
Regardless of how to reproduce it, it doesn't make sense to me why argumentsis duplicated for paramconverter.latest_revision in workbench_moderation.services.yml?
Steps to reproduce:
Comment #11
naveenvalechaCool, It makes sense now, Good news, workbench moderation(content moderation) is now in core!!!
We are planning to provide a migrate path from workbench(8.1.) to 8.2 content moderation Track the status of the migrate path here https://www.drupal.org/node/2766125
Comment #12
mstrelan CreditAttribution: mstrelan commentedI know it's in core but there is no migrate path as yet. As it stands an existing site on 8.1.x can't upgrade to 8.2.x if WBM is installed.
Comment #15
timmillwoodAdding commit credit for josephdpurcell, phenaproxima, then closing #2780691: Incorrect EntityRevision paramconverter service definition causes a fatal error as duplicate.
Comment #17
timmillwood