Cannot delete group

Created on 5 November 2020, about 4 years ago
Updated 7 February 2023, almost 2 years ago

Problem/Motivation

It is no possible to delete a group

Steps to reproduce

Got to admin/group and choose and choose the operation "delete". In the next step you will be ask if you want to delete this group. Click on "delete". Following error message is displayed:

Error: Call to a member function getContentPlugin() on null in Drupal\group\Entity\GroupContent->getContentPlugin() (line 107 of modules\contrib\group\src\Entity\GroupContent.php).

Drupal\group\Entity\GroupContent->getContentPlugin() (Line: 143)
Drupal\group\Entity\GroupContent->urlRouteParameters('add-form') (Line: 205)
Drupal\Core\Entity\EntityBase->toUrl('add-form') (Line: 347)
Drupal\Core\Entity\EntityBase->Drupal\Core\Entity\{closure}('add-form')
array_filter(Array, Object) (Line: 356)
Drupal\Core\Entity\EntityBase->uriRelationships() (Line: 105)
menu_link_content_entity_predelete(Object)
call_user_func_array('menu_link_content_entity_predelete', Array) (Line: 403)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_predelete', Array) (Line: 206)
Drupal\Core\Entity\EntityStorageBase->invokeHook('predelete', Object) (Line: 843)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('predelete', Object) (Line: 424)
Drupal\Core\Entity\EntityStorageBase->delete(Array) (Line: 786)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete(Array) (Line: 403)
Drupal\Core\Entity\EntityBase->delete() (Line: 299)
Drupal\group\Entity\Group::preDelete(Object, Array) (Line: 422)
Drupal\Core\Entity\EntityStorageBase->delete(Array) (Line: 786)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete(Array) (Line: 403)
Drupal\Core\Entity\EntityBase->delete() (Line: 40)
Drupal\group\Entity\Form\GroupDeleteForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 593)
Drupal\Core\Form\FormBuilder->processForm('group_department_delete_form', Array, Object) (Line: 321)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
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: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany cpritz

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