Account created on 5 October 2023, about 1 year ago
#

Recent comments

I disabled all models except for this one I'm having issues with but it is still sending duplicate emails. The Drupal logs shows ECA sends the email before and after the content is saved.

This issue still exists, see https://www.drupal.org/project/tca/issues/3461624 πŸ› Enforce Token usage not saving Active

Even when I import config that adds forced: true or forced: 1 to the TCA content type yml, the yml reverts back to the previous one.

I looked at the model you uploaded and followed it exactly, but it still sends duplicates for me. Upon looking at the ECA logs, the model runs again after the loop is completed for some reason.

I don't have any other models that are modifying or saving the same content type either.

I've followed exactly from #2 and your feature demo here: https://ecaguide.org/library/use%20case/eca_feature_demo and I still seem to be getting duplicate emails. I believe this is now a bug with ECA and paragraphs.

When I display the fetched emails to the user as an action instead of send email, it doesn't give me duplicate email addresses however.

Any thoughts?

Thanks, I thought entity was to create a new entity.

I removed adding emails to a list so that the email gets sent individually, but I am receiving duplicate emails (2 filled email addresses, but receiving the same email twice).

Between the list:remove item and list:add item of my model, I tried get field value for the email field but it is telling me the field does not exist when using tokens field_external_member_e_mail or [item:field_external_member_e_mail].

Same pasted error from #3

Between the list:remove item and list:add item of my model, I tried get field value for the email field but it is telling me the field does not exist when using tokens field_external_member_e_mail or [item:field_external_member_e_mail].

Yes, I followed the loop example, but I seem to be just replicating the original list into a new token.

In list:remove item drop by specified value, I tried field_external_member_e_mail and [external2:field_external_member_e_mail]. I seem to be creating a deadlock on the SQL.

I also tried drop first and it is not giving me the results I need.

I shared my model and I was able to add the paragraphs field. I was incorrectly adding the field inside the paragraph previously.

Now, I want to be able to collect the list of emails from field_external_member_e_mail, but it seems to be prepended by a number. I'm not sure how to proceed from here again.

I deleted the model, test node, and cleared my cache but that same error is coming up. ECA doesn't seem to be able to get the field contained inside a paragraph with get field value.

I think I can only use load entity by reference, but I'm not able to get a list of the email fields. I want to be able to send the emails to each recipient individually.

Hi JΓΌrgen,

There's one email field in the paragraph that can be added an unlimited amount of times. The issue is there are other fields in that paragraph (name, email, and another text field).

I tried to load the paragraph with load entity by reference, but I only seem to be getting 1 of the many email fields when printing the stored token.

When I try to store the email field of the loaded paragraph, I also get an error:

Failed execution of Activity_1ubgy00 (Activity_1ubgy00) from ECA Send email to external/internal (process_f98b4rg) for event Drupal\eca_content\Event\ContentEntityUpdate: The provided field test@b.com does not exist as a property path on the node entity having ID 20965..\n\n#0 /var/www/html/modules/contrib/eca/src/Entity/Objects/EcaAction.php(99): Drupal\eca_content\Plugin\Action\GetFieldValue->access() #1 /var/www/html/modules/contrib/eca/src/Processor.php(210): Drupal\eca\Entity\Objects\EcaAction->execute() #2 /var/www/html/modules/contrib/eca/src/Processor.php(212): Drupal\eca\Processor->executeSuccessors() #3 /var/www/html/modules/contrib/eca/src/Processor.php(168): Drupal\eca\Processor->executeSuccessors() #4 /var/www/html/modules/contrib/eca/src/EventSubscriber/EcaBase.php(76): Drupal\eca\Processor->execute() #5 [internal function]: Drupal\eca\EventSubscriber\EcaBase->onEvent() #6 /var/www/html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func() #7 /var/www/html/modules/contrib/eca/src/Event/TriggerEvent.php(73): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() #8 /var/www/html/modules/contrib/eca/modules/content/src/HookHandler.php(297): Drupal\eca\Event\TriggerEvent->dispatchFromPlugin() #9 /var/www/html/modules/contrib/eca/modules/content/eca_content.module(97): Drupal\eca_content\HookHandler->update() #10 [internal function]: eca_content_entity_update() #11 /var/www/html/core/lib/Drupal/Core/Extension/ModuleHandler.php(409): call_user_func_array() #12 /var/www/html/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() #13 /var/www/html/core/lib/Drupal/Core/Extension/ModuleHandler.php(416): Drupal\Core\Extension\ModuleHandler->invokeAllWith() #14 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(217): Drupal\Core\Extension\ModuleHandler->invokeAll() #15 /var/www/html/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(900): Drupal\Core\Entity\EntityStorageBase->invokeHook() #16 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(564): Drupal\Core\Entity\ContentEntityStorageBase->invokeHook() #17 /var/www/html/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(781): Drupal\Core\Entity\EntityStorageBase->doPostSave() #18 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(489): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave() #19 /var/www/html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(806): Drupal\Core\Entity\EntityStorageBase->save() #20 /var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php(354): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() #21 /var/www/html/modules/contrib/tca/src/TcaSettingsManager.php(56): Drupal\Core\Entity\EntityBase->save() #22 /var/www/html/modules/contrib/tca/src/FormManglerService.php(399): Drupal\tca\TcaSettingsManager->saveSettings() #23 /var/www/html/modules/contrib/tca/src/FormManglerService.php(342): Drupal\tca\FormManglerService->handleFormSubmit() #24 [internal function]: Drupal\tca\FormManglerService::staticHandleFormSubmit() #25 /var/www/html/core/lib/Drupal/Core/Form/FormSubmitter.php(129): call_user_func_array() #26 /var/www/html/core/lib/Drupal/Core/Form/FormSubmitter.php(67): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() #27 /var/www/html/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm() #28 /var/www/html/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm() #29 /var/www/html/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm() #30 /var/www/html/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult() #31 [internal function]: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult() #32 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array() #33 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #34 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext() #35 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() #36 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #37 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw() #38 /var/www/html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle() #39 /var/www/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle() #40 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle() #41 /var/www/html/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle() #42 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle() #43 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass() #44 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle() #45 /var/www/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() #46 /var/www/html/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() #47 /var/www/html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle() #48 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle() #49 /var/www/html/index.php(19): Drupal\Core\DrupalKernel->handle() #50 {main}

I have the same issue, running DS 8.x-3.19, Drupal 10.2.4, PHP 8.1.29.

Error: Call to a member function label() on null in _ds_field_ui_table_layouts() (line 904 of /var/www/html/modules/contrib/ds/includes/field_ui.inc).

#0 /var/www/html/modules/contrib/ds/includes/field_ui.inc(51): _ds_field_ui_table_layouts()
#1 /var/www/html/modules/contrib/ds/ds.module(247): ds_field_ui_fields_layouts()
#2 /var/www/html/core/lib/Drupal/Core/Extension/ModuleHandler.php(545): ds_form_entity_view_display_edit_form_alter()
#3 /var/www/html/core/lib/Drupal/Core/Form/FormBuilder.php(841): Drupal\Core\Extension\ModuleHandler->alter()
#4 /var/www/html/core/lib/Drupal/Core/Form/FormBuilder.php(284): Drupal\Core\Form\FormBuilder->prepareForm()
#5 /var/www/html/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#6 /var/www/html/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult()
#7 [internal function]: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult()
#8 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#9 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#11 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#12 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#14 /var/www/html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#15 /var/www/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#16 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#17 /var/www/html/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#18 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#19 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#20 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#21 /var/www/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#22 /var/www/html/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#23 /var/www/html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#24 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#25 /var/www/html/index.php(19): Drupal\Core\DrupalKernel->handle()
#26 {main}

@eidoscom

Your module has been working great, but I've ran into some issues now.

When I go to /admin/people/profiles, it throws an error that my field is unknown. Perhaps this is caused by the Commerce module also using the Profile module?

InvalidArgumentException: Field field_first_name is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 616 of /var/www/html/core/lib/Drupal/Core/Entity/ContentEntityBase.php).
#0 /var/www/html/core/lib/Drupal/Core/Entity/ContentEntityBase.php(597): Drupal\Core\Entity\ContentEntityBase->getTranslatedField()
#1 /var/www/html/modules/contrib/profile_label/src/Entity/Profile.php(23): Drupal\Core\Entity\ContentEntityBase->get()
#2 /var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php(257): Drupal\profile_label\Entity\Profile->label()
#3 /var/www/html/modules/contrib/profile/src/ProfileListBuilder.php(118): Drupal\Core\Entity\EntityBase->toLink()
#4 /var/www/html/core/lib/Drupal/Core/Entity/EntityListBuilder.php(242): Drupal\profile\ProfileListBuilder->buildRow()
#5 /var/www/html/core/lib/Drupal/Core/Entity/Controller/EntityListController.php(23): Drupal\Core\Entity\EntityListBuilder->render()
#6 [internal function]: Drupal\Core\Entity\Controller\EntityListController->listing()
#7 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#8 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#10 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#11 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#13 /var/www/html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#14 /var/www/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#15 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#16 /var/www/html/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#17 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#18 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#19 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#20 /var/www/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#21 /var/www/html/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#22 /var/www/html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#23 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#24 /var/www/html/index.php(19): Drupal\Core\DrupalKernel->handle()
#25 {main}

Thanks in advance.

I tried importing the above ics and added Z at the end of lines below and issues seems fixed.

DTSTART;TZID=America/Vancouver:20240406T000000Z
DTEND;TZID=America/Vancouver:20240406T010000Z

I am facing the same issue, when imported, it uses UTC instead of the local timezone.

I have tried tinkering timezone overrides with the field displays and in the view, but it doesn't fix the issue.

Drupal 10.2.4
Date iCal 4.0.6

Actually, do you think #1 is caused by this during import?

Warning: Undefined array key "doi" in Drupal\bibcite_import_orcid\Process->prepImportOrcid() (line 51 of /var/www/html/modules/contrib/bibcite_import_orcid/src/Process.php)

#0 /var/www/html/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 /var/www/html/modules/contrib/bibcite_import_orcid/src/Process.php(51): _drupal_error_handler()
#2 /var/www/html/modules/contrib/bibcite_import_orcid/bibcite_import_orcid.batch.inc(18): Drupal\bibcite_import_orcid\Process->prepImportOrcid()
#3 /var/www/html/core/includes/batch.inc(295): bibcite_prep_import_orcid_batch()
#4 /var/www/html/core/includes/batch.inc(137): _batch_process()
#5 /var/www/html/core/includes/batch.inc(93): _batch_do()
#6 /var/www/html/core/modules/system/src/Controller/BatchController.php(55): _batch_page()
#7 [internal function]: Drupal\system\Controller\BatchController->batchPage()
#8 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#9 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#11 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#12 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#14 /var/www/html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#15 /var/www/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#16 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#17 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#18 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#19 /var/www/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#20 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#21 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#22 /var/www/html/index.php(19): Drupal\Core\DrupalKernel->handle()
#23 {main}

.

I have ran drush updb already and it said no pending updates, but when I try to rebuild cache I get this error:

PHP Fatal error:  Declaration of Drupal\bibcite_entity\Normalizer\CslReferenceNormalizer::supportsDenormalization($data, string $type, ?string $format = null, array $context = []): bool must be compatible with Drupal\serialization\Normalizer\NormalizerBase::supportsDenormalization($data, $type, $format = null) in /var/www/html/modules/contrib/bibcite/modules/bibcite_entity/src/Normalizer/CslReferenceNormalizer.php on line 28
 [warning] Drush command terminated abnormally.

Thanks for clarifying @rfmarcelino.

I have updated PHP and tried to update to 3.0 and 3.0 dev, but seems like another issue has occurred with bibcite.

Hi, how would I make the label link to the profile as well?

Thanks for providing the code.

Production build 0.71.5 2024