Error when publishing content with workflows

Created on 18 January 2019, almost 6 years ago
Updated 13 November 2023, about 1 year ago

Hi,

Got this error message when trying to publish content from a draft with Workflows core module :

The website encountered an unexpected error. Please try again later.
Error: Call to a member function set() on null in Drupal\h5p\Plugin\Field\FieldType\H5PItem->preSave() (line 101 of modules/h5p/src/Plugin/Field/FieldType/H5PItem.php).

Drupal\h5p\Plugin\Field\FieldType\H5PItem->preSave() (Line: 233)
Drupal\Core\Field\FieldItemList->delegateMethod('preSave') (Line: 191)
Drupal\Core\Field\FieldItemList->preSave() (Line: 794)
Drupal\Core\Entity\ContentEntityStorageBase->invokeFieldMethod('preSave', Object) (Line: 744)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('presave', Object) (Line: 472)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 613)
Drupal\Core\Entity\ContentEntityStorageBase->doPreSave(Object) (Line: 426)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 774)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 390)
Drupal\Core\Entity\Entity->save() (Line: 155)
Drupal\content_moderation\Form\EntityModerationForm->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: 589)
Drupal\Core\Form\FormBuilder->processForm('content_moderation_entity_moderation_form', Array, Object) (Line: 318)
Drupal\Core\Form\FormBuilder->buildForm('content_moderation_entity_moderation_form', Object) (Line: 216)
Drupal\Core\Form\FormBuilder->getForm('Drupal\content_moderation\Form\EntityModerationForm', Object) (Line: 295)
Drupal\content_moderation\EntityOperations->entityView(Array, Object, Object, 'full') (Line: 172)
content_moderation_entity_view(Array, Object, Object, 'full')
call_user_func_array('content_moderation_entity_view', Array) (Line: 403)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_view', Array) (Line: 270)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 220)
Drupal\Core\Entity\EntityViewBuilder->build(Array)
call_user_func(Array, Array) (Line: 378)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
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: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Thanks

🐛 Bug report
Status

Needs review

Component

Code

Created by

🇫🇷France jhereck

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.

Production build 0.71.5 2024