Cannot activate Moderation for content type - module is not compatible with Content Moderation in core

Created on 1 April 2018, over 6 years ago
Updated 31 October 2023, about 1 year ago

I am in a completely updated status with
Drupal 8.5.1 and all modules updated including:

Workbench 8.x-1.0
Workbench Access 8.x-1.0-beta1
Workbench Moderation 8.x-1.3

So I thought I would try and take the final step (I thought) in getting the states going etc.

Unfortunately, when I tried to Enable Moderation States for โ€œpostsโ€ I ran into a major issue!

Hereโ€™s the result:

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() (line 184 of modules\workbench_moderation\src\Form\BundleModerationConfigurationForm.php). 
Drupal\workbench_moderation\Form\BundleModerationConfigurationForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585)
Drupal\Core\Form\FormBuilder->processForm('node_type_moderation_form', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm('node_type_moderation_form', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 664)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

See screenshots leading to the error(s)

Figure 1 Ready to enable Moderation!

Figure 2 After Submitting Form
Can you tell me where I am going wrong?

๐Ÿ’ฌ Support request
Status

Fixed

Version

1.0

Component

Miscellaneous

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States bas123

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ต๐Ÿ‡ฐPakistan isalmanhaider

    Received the same on

    - Drupal 10.1.4
    - workbench_moderation: 8.x-1.7
    - PHP: 8.2.6

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

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States Kristen Pol Santa Cruz, CA, USA

    Just ran into this as I was testing some compatibility stuff with another module. IMO, workbench_moderation should not install at all if content_moderation is installed. That would solve this DX issue easily.

Production build 0.71.5 2024