I am using lightning-8.x-2.23 distro. I have configured content moderation workflows. (created states and transitions). Edit content type basic page
and go to manage moderation tab and save to replicate below error.

Error: Call to undefined method Drupal\content_moderation\Entity\Handler\NodeModerationHandler::onBundleModerationConfigurationFormSubmit() in Drupal\workbench_moderation\Form\BundleModerationConfigurationForm->submitForm() (line 184 of /Users/test/Sites/devdesktop/lightning-8.x-2.23/modules/contrib/workbench_moderation/src/Form/BundleModerationConfigurationForm.php) #0 [internal function]: Drupal\workbench_moderation\Form\BundleModerationConfigurationForm->submitForm(Array, Object(Drupal\Core\Form\FormState))

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

suresh kumara created an issue. See original summary.

flutterstack’s picture

Issue summary: View changes
flutterstack’s picture

Issue summary: View changes
bharanikumariyerphp’s picture

@sureshkumara

You got solution for the above issue ?

Error: Call to undefined method Drupal\content_moderation\Entity\Handler\NodeModerationHandler::onBundleModerationConfigurationFormSubmit() in Drupal\workbench_moderation\Form\BundleModerationConfigurationForm->submitForm() (line 184 of D:\docroot\modules\contrib\workbench_moderation\src\Form\BundleModerationConfigurationForm.php

drupal duppy’s picture

I am having the same issue

brandonratz’s picture

I have the same issue and error. My fix is going to be to follow the directions listed on this release https://github.com/acquia/lightning/releases/tag/2.2.4

The key part is running the migration...

I have done some preliminary testing and switching over to Content Moderation in core does fix the issue. However, this is simply because Workbench Moderation is uninstalled.

ptgraber’s picture

This issue also exists in 8.x-1.3+0-dev

Appears the interface has been updated and no longer supports that method.

twilderan’s picture

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

Have same issue on 8.x-1.6. Drupal core: 8.9.6.

Steps to reproduce:
1. Open any content type e.g Basic page "/admin/structure/types/manage/page"
2. Go to "Manage moderation" tab, "/admin/structure/types/manage/page/moderation"
3. Click on "Enable moderation states." checkbox.
4. Click "Save"

The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\content_moderation\Entity\Handler\NodeModerationHandler::onBundleModerationConfigurationFormSubmit() in Drupal\workbench_moderation\Form\BundleModerationConfigurationForm->submitForm()

rahul.shinde made their first commit to this issue’s fork.

rahul.shinde’s picture

Status: Active » Needs review
srutheesh’s picture

Content moderation doesn't work with workbench_moderation. If you disable content_moderation module issue will be fix.

hargurpreet’s picture

Yes, this issue occurs when the content_moderation module is also enabled. However, since other modules depend on it, we need to keep it active. To resolve the conflict, I’ve created a patch that directly calls the onBundleModerationConfigurationFormSubmit() function from the workbench_moderation module only. Thanks!