OpenSocial Version: 8.x-1.0-rc5
Core Version: Drupal 8.3.2
URL: http://192.168.0.104/social/DIR/html/admin/structure/activity/1/edit
Not able to edit the Activity Entities. Drupal returns the error:The website encountered an unexpected error. Please try again later.
In the log, there are multiple errors.
Error Message 1:
Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "selection_handler" for route "system.entity_autocomplete" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 202 of /var/www/html/social/DIR/html/core/lib/Drupal/Core/Routing/UrlGenerator.php).
Error 2(This is logged 2 more times):
(Note: The company is a custom entity with just name and author fields. I am using template to have it create entry to activity feed.)
Notice: Undefined index: company_entity in Drupal\dynamic_entity_reference\Plugin\Field\FieldWidget\DynamicEntityReferenceWidget->createAutoCompletePaths() (line 239 of /var/www/html/social/DIR/html/modules/contrib/dynamic_entity_reference/src/Plugin/Field/FieldWidget/DynamicEntityReferenceWidget.php) #0 /var/www/html/social/DIR/html/core/includes/bootstrap.inc(552): _drupal_error_handler_real(8, 'Undefined index...', '/var/www/html/s...', 239, Array) #1 /var/www/html/social/DIR/html/modules/contrib/dynamic_entity_reference/src/Plugin/Field/FieldWidget/DynamicEntityReferenceWidget.php(239): _drupal_error_handler(8, 'Undefined index...', '/var/www/html/s...', 239, Array) #2 /var/www/html/social/DIR/html/modules/contrib/dynamic_entity_reference/src/Plugin/Field/FieldWidget/DynamicEntityReferenceWidget.php(118): Drupal\dynamic_entity_reference\Plugin\Field\FieldWidget\DynamicEntityReferenceWidget->createAutoCompletePaths(Array) #3 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Field/WidgetBase.php(322): Drupal\dynamic_entity_reference\Plugin\Field\FieldWidget\DynamicEntityReferenceWidget->formElement(Object(Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceFieldItemList), 0, Array, Array, Object(Drupal\Core\Form\FormState)) #4 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Field/WidgetBase.php(189): Drupal\Core\Field\WidgetBase->formSingleElement(Object(Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceFieldItemList), 0, Array, Array, Object(Drupal\Core\Form\FormState)) #5 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Field/WidgetBase.php(104): Drupal\Core\Field\WidgetBase->formMultipleElements(Object(Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceFieldItemList), Array, Object(Drupal\Core\Form\FormState)) #6 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php(168): Drupal\Core\Field\WidgetBase->form(Object(Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceFieldItemList), Array, Object(Drupal\Core\Form\FormState)) #7 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Entity/ContentEntityForm.php(122): Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm(Object(Drupal\activity_creator\Entity\Activity), Array, Object(Drupal\Core\Form\FormState)) #8 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Entity/EntityForm.php(115): Drupal\Core\Entity\ContentEntityForm->form(Array, Object(Drupal\Core\Form\FormState)) #9 /var/www/html/social/DIR/html/profiles/contrib/social/modules/custom/activity_creator/src/Form/ActivityForm.php(24): Drupal\Core\Entity\EntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState)) #10 [internal function]: Drupal\activity_creator\Form\ActivityForm->buildForm(Array, Object(Drupal\Core\Form\FormState)) #11 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Form/FormBuilder.php(514): call_user_func_array(Array, Array) #12 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Form/FormBuilder.php(271): Drupal\Core\Form\FormBuilder->retrieveForm('activity_edit_f...', Object(Drupal\Core\Form\FormState)) #13 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm('activity_edit_f...', Object(Drupal\Core\Form\FormState)) #14 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #15 /var/www/html/social/DIR/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #16 /var/www/html/social/DIR/html/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #17 /var/www/html/social/DIR/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #18 /var/www/html/social/DIR/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #19 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #20 /var/www/html/social/DIR/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array) #21 /var/www/html/social/DIR/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #22 /var/www/html/social/DIR/html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/html/social/DIR/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/html/social/DIR/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/html/social/DIR/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/social/DIR/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/html/social/DIR/html/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /var/www/html/social/DIR/html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #29 {main}.
Comment | File | Size | Author |
---|---|---|---|
#10 | activity_creator_2886907-9.patch | 1.06 KB | Negi47 |
#8 | 2886907-8.patch | 5.5 KB | DeaOm |
Comments
Comment #2
bramtenhove CreditAttribution: bramtenhove for Open Social commentedPlease re-open or create a new issue if you encounter this again.
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedgoto admin/structure/activity on your site
try to add or even edit an activity that is already there.
WSOD and the error above shows up in the logs
Comment #4
chlodewig CreditAttribution: chlodewig as a volunteer commentedI can confirm this behavior. My error-log if I want to edit an acitivity:
(Perhaps it it a problem with translation?)
Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "selection_handler" for route "system.entity_autocomplete" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (Zeile 204 in /is/htdocs/wp10677128_ATG0FZT0QN/www/sites/servethecity-bremen.de/DIR/html/core/lib/Drupal/Core/Routing/UrlGenerator.php).
Comment #5
Mikechr CreditAttribution: Mikechr at Tabs & Spaces commentedCan confirm I've had this issue came up after having a "activity" on a new entity
Drupal: 8.5.7
open_social 3.0
Error
Notice after the error occurs
Comment #6
jaapjan CreditAttribution: jaapjan for Open Social commentedComment #7
davoudseyedi CreditAttribution: davoudseyedi commentedI give this error when I want to edit an activity
ymfony\Component\Routing\Exception\InvalidParameterException: Parameter "selection_handler" for route "system.entity_autocomplete" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 204 of /var/www/vhosts/phallotalk.com/httpdocs/core/lib/Drupal/Core/Routing/UrlGenerator.php).
Comment #8
DeaOm CreditAttribution: DeaOm at Agiledrop - Your Trusted Drupal Teammates commentedHi, I came across this error when trying to edit a user profile (profile/{id}/edit), found a patch #3099176: Errors when new entity types are added (in certain cases) which does not apply for the 1.7 version of dynamic entity reference and adjusted it, so it applies. It solves the problem for me.
Comment #9
milos.kroulik CreditAttribution: milos.kroulik commentedThere's a patch for
dynamic_entity_reference
, which applies cleanly on version 1.7 in that issue: https://www.drupal.org/project/dynamic_entity_reference/issues/3099176#c...However, after applying that patch, another error appears when I'm trying to edit activity:
This is still happening on the last release.
Comment #10
Negi47 CreditAttribution: Negi47 commentedHi @Milos.kroulik
After applying the patch from this link "https://www.drupal.org/project/dynamic_entity_reference/issues/3099176#c..." with the above patch apply this patch too. It will fix the problem
Patch: Drupal 8.9.13 Open Social 10
Comment #11
Negi47 CreditAttribution: Negi47 as a volunteer and commentedComment #12
ressinelHi @Negi47
The patch doesn't fix the issue for Open Social 11.
I still see an error on the edit activity page.