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.
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
Comment #2
Karthons CreditAttribution: Karthons commentedThe 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.
Comment #3
wanjee CreditAttribution: wanjee commentedI 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.
Comment #4
wanjee CreditAttribution: wanjee commentedAfter 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.
Comment #5
ksydevelop CreditAttribution: ksydevelop commentedHas anyone been able to resolve this problem?
Comment #6
vuilI 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?
Comment #7
agentrickardThe 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.
Comment #8
vuilComment #9
vuilComment #10
arnaldopNOTE: 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 incore.extension.yml
) anddrush en workbench_moderation
.Using Drush Languange Commands, I got the following:
So based on the comments above:
drush updatedb
does nothing after installing this module. (#4)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 amoderation_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 theinline_editing_disabler
.