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))
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | workbench_moderation-undefined-method-error-2925193.patch | 1.13 KB | hargurpreet |
Issue fork workbench_moderation-2925193
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
Comment #2
flutterstack commentedComment #3
flutterstack commentedComment #4
bharanikumariyerphp commented@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.phpComment #5
drupal duppy commentedI am having the same issue
Comment #6
brandonratz commentedI 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.
Comment #7
ptgraber commentedThis issue also exists in 8.x-1.3+0-dev
Appears the interface has been updated and no longer supports that method.
Comment #8
twilderanHave 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()
Comment #11
rahul.shindeComment #12
srutheesh commentedContent moderation doesn't work with workbench_moderation. If you disable content_moderation module issue will be fix.
Comment #13
hargurpreet commentedYes, 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!