Once I install this module on 8.3.1, I get this error on config import:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException thrown while calling __toString on a Drupal\Core\StringTranslation\TranslatableMarkup object in [error]
$MY_PROJECT_PATH/core/lib/Drupal/Component/DependencyInjection/Container.php on line 157: You have requested a non-existent service "workbench_moderation.inline_editing_disabler". ToStringTrait.php:20
Drush command terminated abnormally due to an unrecoverable error.

What can I do to solve this issue?

Comments

Karthons created an issue. See original summary.

Karthons’s picture

The solution that worked: change the default language to english and process with the config-import. There might be a problem with the translation of workbench_moderation.inline_editing_disabler.

wanjee’s picture

I have the same error when installing the module with English being the default language already.

Using :
* Workbench 8.x-1.0-beta1
* Workbench moderation 8.x-1.2

Module seems enabled afterward but raise some errors.

wanjee’s picture

After I get the above given error message module seems enabled but I got various errors like the following:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'moderation_state' in 'where clause': SELECT 1 AS expression FROM {crop_field_data} t WHERE moderation_state IS NOT NULL LIMIT 1 OFFSET 0; Array ( ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->countFieldData() (line 1686 of /[...]/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

I have this error at least on admin/modules/uninstall so I cannot unable the module.

I also have no default moderation states nor transitions.

So it seems installation was not fully successful. Please note I used a hook_update to enable it and drush to run updb.

ksydevelop’s picture

Has anyone been able to resolve this problem?

vuil’s picture

I have the same error on drush cr only, after Drupal core update 8.4.8 > 8.5.4

[error] Circular reference detected for service "entity_type.manager", path: "workbench_moderation.inline_editing_disabler -> workbench_moderation.moderation_information -> entity_type.manager -> string_translation -> string_translator.locale.lookup -> config.factory -> domain_site_settings.overrider -> domain.negotiator".

Any suggestions?

agentrickard’s picture

The error in #6 may be unrelated, depending on what version of Domain you are using. See https://www.drupal.org/project/domain/releases/8.x-1.0-alpha10.

vuil’s picture

Status: Active » Fixed
vuil’s picture

Status: Fixed » Closed (fixed)
arnaldop’s picture

Version: 8.x-1.2 » 8.x-1.5
Priority: Normal » Major

NOTE: Unable to install AND uninstall. Uninstall related to moderation_state column missing from many tables, causing uninstall process to fail. This is a different issue, but I figured having a successful install would reduce uninstall attempts.

I am still getting this problem.

Drupal Core: 8.7.6
Workbench Moderation: 8.x-1.5
Workbench (not installed): 8.x-1.1
Domain: 8.x-1.0-alpha16

The error occurs during drush site-install (when workbench_moderation is present in core.extension.yml) and drush en workbench_moderation.

In Container.php line 153:

  [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
  You have requested a non-existent service "workbench_moderation.inline_editing_disabler".

Using Drush Languange Commands, I got the following:

› drush language-info
 -------------- ----------- ---------
  Language       Direction   Default
 -------------- ----------- ---------
  English (en)   ltr         yes
 -------------- ----------- ---------

So based on the comments above:

  1. It is not related to a lack of default language. (#2, #3)
  2. It is not related to that specific version of Domain. Additionally, I don't get the "circular reference" error. (#6, #7)
  3. It happens with or without the other Workbench modules.
  4. drush updatedb does nothing after installing this module. (#4)
  5. drush entup is no longer supported by Drupal core since 8.7, so I can't use it to update the entities. (found in other issue)

The module was at least partially installed because when I run drush pmu workbench_moderation, I get errors related to a moderation_state column that is present in several tables. I then have to add a column by that name to those tables in order for the uninstall process to work. But reinstalling causes the same problem with the inline_editing_disabler.