I have an issue with notify group members about new content by email.
I checked the notification templates and made a many test with different setting, but only the group manager get an email about new content.
My member doesn't get a notification of any kind about new topics.
I figured out that after submitting a topic i get the following notice entries from message in the drupal log:
Notice: Undefined index: post-post in Drupal\social_post_photo\SocialPostPhotoConfigOverride->loadOverrides() (line 65 of /www/htdocs/social.tld.de/html/profiles/contrib/social/modules/social_features/social_post/modules/social_post_photo/src/SocialPostPhotoConfigOverride.php)
#0 /www/htdocs/social.tld.de/html/core/includes/bootstrap.inc(600): _drupal_error_handler_real(8, 'Undefined index...', '/www/htdocs/w01...', 65, Array)
#1 /www/htdocs/social.tld.de/html/profiles/contrib/social/modules/social_features/social_post/modules/social_post_photo/src/SocialPostPhotoConfigOverride.php(65): _drupal_error_handler(8, 'Undefined index...', '/www/htdocs/w01...', 65, Array)
#2 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Config/ConfigFactory.php(209): Drupal\social_post_photo\SocialPostPhotoConfigOverride->loadOverrides(Array)
#3 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Config/ConfigFactory.php(169): Drupal\Core\Config\ConfigFactory->loadOverrides(Array)
#4 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Config/ConfigFactory.php(136): Drupal\Core\Config\ConfigFactory->doLoadMultiple(Array)
#5 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Config/Entity/Query/Query.php(212): Drupal\Core\Config\ConfigFactory->loadMultiple(Array)
#6 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Config/Entity/Query/Query.php(82): Drupal\Core\Config\Entity\Query\Query->loadRecords()
#7 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(577): Drupal\Core\Config\Entity\Query\Query->execute()
#8 /www/htdocs/social.tld.de/html/profiles/contrib/social/modules/custom/activity_logger/src/Service/ActivityLoggerFactory.php(108): Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array)
#9 /www/htdocs/social.tld.de/html/profiles/contrib/social/modules/custom/activity_logger/src/Service/ActivityLoggerFactory.php(27): Drupal\activity_logger\Service\ActivityLoggerFactory->getMessageTypes('create_entitiy_...', Object(Drupal\file\Entity\File))
#10 /www/htdocs/social.tld.de/html/profiles/contrib/social/modules/custom/activity_creator/src/Plugin/ActivityActionBase.php(29): Drupal\activity_logger\Service\ActivityLoggerFactory->createMessages(Object(Drupal\file\Entity\File), 'create_entitiy_...')
#11 /www/htdocs/social.tld.de/html/profiles/contrib/social/modules/custom/activity_basics/src/Plugin/ActivityAction/CreateActivityAction.php(33): Drupal\activity_creator\Plugin\ActivityActionBase->createMessage(Object(Drupal\file\Entity\File))
#12 /www/htdocs/social.tld.de/html/profiles/contrib/social/modules/custom/activity_basics/activity_basics.module(49): Drupal\activity_basics\Plugin\ActivityAction\CreateActivityAction->create(Object(Drupal\file\Entity\File))
#13 /www/htdocs/social.tld.de/html/profiles/contrib/social/modules/custom/activity_basics/activity_basics.module(16): _activity_basics_entity_action(Object(Drupal\file\Entity\File), 'create_entitiy_...')
#14 [internal function]: activity_basics_entity_insert(Object(Drupal\file\Entity\File))
#15 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Extension/ModuleHandler.php(403): call_user_func_array('activity_basics...', Array)
#16 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(206): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_insert', Array)
#17 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(843): Drupal\Core\Entity\EntityStorageBase->invokeHook('insert', Object(Drupal\file\Entity\File))
#18 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(535): Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('insert', Object(Drupal\file\Entity\File))
#19 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(728): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\file\Entity\File), false)
#20 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(460): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object(Drupal\file\Entity\File), false)
#21 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(837): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\file\Entity\File))
#22 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Entity/EntityBase.php(395): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\file\Entity\File))
#23 /www/htdocs/social.tld.de/html/core/modules/file/file.module(1154): Drupal\Core\Entity\EntityBase->save()
#24 /www/htdocs/social.tld.de/html/core/modules/file/file.module(926): _file_save_upload_single(Object(Symfony\Component\HttpFoundation\File\UploadedFile), 'field_files_2', Array, 'private://2020-...', 0)
#25 /www/htdocs/social.tld.de/html/core/modules/file/file.module(813): file_save_upload('field_files_2', Array, 'private://2020-...', NULL, 0)
#26 /www/htdocs/social.tld.de/html/core/modules/file/file.module(1444): _file_save_upload_from_form(Array, Object(Drupal\Core\Form\FormState))
#27 /www/htdocs/social.tld.de/html/core/modules/file/src/Element/ManagedFile.php(74): file_managed_file_save_upload(Array, Object(Drupal\Core\Form\FormState))
#28 /www/htdocs/social.tld.de/html/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php(324): Drupal\file\Element\ManagedFile::valueCallback(Array, Array, Object(Drupal\Core\Form\FormState))
#29 [internal function]: Drupal\file\Plugin\Field\FieldWidget\FileWidget::value(Array, Array, Object(Drupal\Core\Form\FormState))
#30 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Form/FormBuilder.php(1256): call_user_func_array(Array, Array)
#31 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Form/FormBuilder.php(992): Drupal\Core\Form\FormBuilder->handleInputElement('node_topic_edit...', Array, Object(Drupal\Core\Form\FormState))
#32 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Form/FormBuilder.php(1062): Drupal\Core\Form\FormBuilder->doBuildForm('node_topic_edit...', Array, Object(Drupal\Core\Form\FormState))
#33 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Form/FormBuilder.php(1062): Drupal\Core\Form\FormBuilder->doBuildForm('node_topic_edit...', Array, Object(Drupal\Core\Form\FormState))
#34 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Form/FormBuilder.php(1062): Drupal\Core\Form\FormBuilder->doBuildForm('node_topic_edit...', Array, Object(Drupal\Core\Form\FormState))
#35 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Form/FormBuilder.php(563): Drupal\Core\Form\FormBuilder->doBuildForm('node_topic_edit...', Array, Object(Drupal\Core\Form\FormState))
#36 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Form/FormBuilder.php(320): Drupal\Core\Form\FormBuilder->processForm('node_topic_edit...', Array, Object(Drupal\Core\Form\FormState))
#37 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Controller/FormController.php(91): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\node\NodeForm), Object(Drupal\Core\Form\FormState))
#38 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#39 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#40 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#41 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#42 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#43 /www/htdocs/social.tld.de/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#44 /www/htdocs/social.tld.de/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#45 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#46 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#47 /www/htdocs/social.tld.de/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#48 /www/htdocs/social.tld.de/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#49 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#50 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#51 /www/htdocs/social.tld.de/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#52 /www/htdocs/social.tld.de/html/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#53 /www/htdocs/social.tld.de/html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#54 {main}
Comments
Comment #2
achikas commentedComment #3
achikas commentedComment #4
ronaldtebrake commentedThere seems to be an issue when using the message template context of sending emails to group members.
Group managers seem to get the emails, but not all the other members.
We need to dive in to what happens when these context for Group content are used.
Comment #5
mayurverma24 commentedThe same issue is reported when an event or topic is created in a group only group manager is getting the notification and emails
The member of the doesn't get a notification of any kind about new topics or events
Comment #6
mayurverma24 commentedComment #7
mayurverma24 commentedComment #8
ronaldtebrake commentedhttps://github.com/goalgorilla/open_social/pull/1810
I have tried to fix this, what happend is the cardinality of the field was set to 1. Meaning only messages were send to the first member of the group. (Usually the group manager/creator) and not the rest.
Now with the cardinality set to unlimited it should create the correct activities for all your group users again.
This patch is hopefully released next week in 8.3 so you can wait for that or try out updating the cardinality accordingly but these update hooks might not be in order for your environment.
Comment #9
bramtenhove commentedThanks everyone for reporting this and helping to solve it.
PR is merged and will land in the next release.