Unable to add new collection on Opensocial distribution

Created on 10 February 2023, almost 2 years ago
Updated 13 February 2023, almost 2 years ago

Problem/Motivation

I am getting drupal crash while trying to add new parameter collection on fresh opensocial install (admin/config/parameters).
Using php 8.0.15
Drupal ver 9.4.11
Opensocial 11.7.0

First of all there is a warning

Warning: Undefined array key "group" in Drupal\group\Entity\Access\GroupContentAccessControlHandler->checkCreateAccess() (line 31 of /var/www/(...)/html/modules/contrib/group/src/Entity/Access/GroupContentAccessControlHandler.php)
#0 /var/www/(...)/html/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 /var/www/(...)/html/modules/contrib/group/src/Entity/Access/GroupContentAccessControlHandler.php(31): _drupal_error_handler()
#2 /var/www/(...)/html/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php(260): Drupal\group\Entity\Access\GroupContentAccessControlHandler->checkCreateAccess()
#3 /var/www/(...)/html/modules/contrib/parameters/src/Plugin/Parameter/Content.php(1165): Drupal\Core\Entity\EntityAccessControlHandler->createAccess()
#4 /var/www/(...)/html/modules/contrib/parameters/modules/parameters_ui/src/Form/ParametersCollectionForm.php(317): Drupal\parameters\Plugin\Parameter\Content->access()
#5 /var/www/(...)/html/modules/contrib/parameters/modules/parameters_ui/src/Form/ParametersCollectionForm.php(204): Drupal\parameters_ui\Form\ParametersCollectionForm->getParameterTypeOptions()
#6 [internal function]: Drupal\parameters_ui\Form\ParametersCollectionForm->buildForm()
#7 /var/www/(...)/html/core/lib/Drupal/Core/Form/FormBuilder.php(531): call_user_func_array()
#8 /var/www/(...)/html/core/lib/Drupal/Core/Form/FormBuilder.php(278): Drupal\Core\Form\FormBuilder->retrieveForm()
#9 /var/www/(...)/html/core/lib/Drupal/Core/Entity/EntityFormBuilder.php(48): Drupal\Core\Form\FormBuilder->buildForm()
#10 /var/www/(...)/html/modules/contrib/parameters/modules/parameters_ui/src/Controller/ParametersUiController.php(72): Drupal\Core\Entity\EntityFormBuilder->getForm()
#11 [internal function]: Drupal\parameters_ui\Controller\ParametersUiController->parametersCollectionForm()
#12 /var/www/(...)/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#13 /var/www/(...)/html/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /var/www/(...)/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#15 /var/www/(...)/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#16 /var/www/(...)/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#17 /var/www/(...)/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#18 /var/www/(...)/html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#19 /var/www/(...)/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#20 /var/www/(...)/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#21 /var/www/(...)/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#22 /var/www/(...)/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#23 /var/www/(...)/html/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#24 /var/www/(...)/html/index.php(19): Drupal\Core\DrupalKernel->handle()
#25 {main}
.

Then this error

TypeError: Drupal\ginvite\Plugin\GroupContentEnabler\GroupInvitation::createAccess(): Argument #1 ($group) must be of type Drupal\group\Entity\GroupInterface, null given, called in /var/www/(...)/html/modules/contrib/group/src/Entity/Access/GroupContentAccessControlHandler.php on line 31 in Drupal\ginvite\Plugin\GroupContentEnabler\GroupInvitation->createAccess() (line 112 of /var/www/(...)/html/modules/contrib/ginvite/src/Plugin/GroupContentEnabler/GroupInvitation.php)
#0 /var/www/(...)/html/modules/contrib/group/src/Entity/Access/GroupContentAccessControlHandler.php(31): Drupal\ginvite\Plugin\GroupContentEnabler\GroupInvitation->createAccess()
#1 /var/www/(...)/html/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php(260): Drupal\group\Entity\Access\GroupContentAccessControlHandler->checkCreateAccess()
#2 /var/www/(...)/html/modules/contrib/parameters/src/Plugin/Parameter/Content.php(1165): Drupal\Core\Entity\EntityAccessControlHandler->createAccess()
#3 /var/www/(...)/html/modules/contrib/parameters/modules/parameters_ui/src/Form/ParametersCollectionForm.php(317): Drupal\parameters\Plugin\Parameter\Content->access()
#4 /var/www/(...)/html/modules/contrib/parameters/modules/parameters_ui/src/Form/ParametersCollectionForm.php(204): Drupal\parameters_ui\Form\ParametersCollectionForm->getParameterTypeOptions()
#5 [internal function]: Drupal\parameters_ui\Form\ParametersCollectionForm->buildForm()
#6 /var/www/(...)/html/core/lib/Drupal/Core/Form/FormBuilder.php(531): call_user_func_array()
#7 /var/www/(...)/html/core/lib/Drupal/Core/Form/FormBuilder.php(278): Drupal\Core\Form\FormBuilder->retrieveForm()
#8 /var/www/(...)/html/core/lib/Drupal/Core/Entity/EntityFormBuilder.php(48): Drupal\Core\Form\FormBuilder->buildForm()
#9 /var/www/(...)/html/modules/contrib/parameters/modules/parameters_ui/src/Controller/ParametersUiController.php(72): Drupal\Core\Entity\EntityFormBuilder->getForm()
#10 [internal function]: Drupal\parameters_ui\Controller\ParametersUiController->parametersCollectionForm()
#11 /var/www/(...)/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#12 /var/www/(...)/html/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /var/www/(...)/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#14 /var/www/(...)/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#15 /var/www/(...)/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#16 /var/www/(...)/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#17 /var/www/(...)/html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#18 /var/www/(...)/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#19 /var/www/(...)/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#20 /var/www/(...)/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#21 /var/www/(...)/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#22 /var/www/(...)/html/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#23 /var/www/(...)/html/index.php(19): Drupal\Core\DrupalKernel->handle()
#24 {main}
.

Steps to reproduce

1\ Fresh OpenSocial install + Parameters + ECA Parameters
2\ Add new collection

Any hints ?

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France tt12

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

Comments & Activities

Production build 0.71.5 2024