Drupal\easy_email\Service\EmailHandler::sendEmail(): Argument #1 ($email) must be of type Drupal\easy_email\Entity\EasyEmailInterface, null given

Created on 4 December 2024, 4 months ago

Problem/Motivation

I try to send email from ECA.
I setup workflow like https://www.youtube.com/watch?v=2pjFr3cf9uw without "set article" step.
I get this error

TypeError: Drupal\easy_email\Service\EmailHandler::sendEmail(): Argument #1 ($email) must be of type Drupal\easy_email\Entity\EasyEmailInterface, null given, called in /var/www/html/web/modules/contrib/easy_email/src/Plugin/Action/SendEasyEmail.php on line 66 in Drupal\easy_email\Service\EmailHandler->sendEmail() (line 153 of modules/contrib/easy_email/src/Service/EmailHandler.php).
Drupal\easy_email\Plugin\Action\SendEasyEmail->execute(NULL) (Line: 102)
Drupal\eca\Entity\Objects\EcaAction->execute(Object, Object, Array) (Line: 210)
Drupal\eca\Processor->executeSuccessors(Object, Object, Object, Array) (Line: 212)
Drupal\eca\Processor->executeSuccessors(Object, Object, Object, Array) (Line: 168)
Drupal\eca\Processor->execute(Object, 'eca.content_entity.update') (Line: 76)
Drupal\eca\EventSubscriber\EcaBase->onEvent(Object, 'eca.content_entity.update', Object)
call_user_func(Array, Object, 'eca.content_entity.update', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'eca.content_entity.update') (Line: 73)
Drupal\eca\Event\TriggerEvent->dispatchFromPlugin('content_entity:update', Object, Object) (Line: 297)
Drupal\eca_content\HookHandler->update(Object) (Line: 97)
eca_content_entity_update(Object)
call_user_func_array(Object, Array) (Line: 409)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object, 'eca_content') (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_update', Object) (Line: 408)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_update', Array) (Line: 217)
Drupal\Core\Entity\EntityStorageBase->invokeHook('update', Object) (Line: 900)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('update', Object) (Line: 564)
Drupal\Core\Entity\EntityStorageBase->doPostSave(Object, 1) (Line: 781)
Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object, 1) (Line: 489)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 806)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 354)
Drupal\Core\Entity\EntityBase->save() (Line: 46)
Drupal\user\ProfileForm->save(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 609)
Drupal\Core\Form\FormBuilder->processForm('user_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm(Object, 'default') (Line: 49)
Drupal\oto_user\Controller\UserEditController->editForm(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

what's wrong?
Thank you

Steps to reproduce

Follow youtube video

🐛 Bug report
Status

Active

Version

3.0

Component

Miscellaneous

Created by

🇮🇹Italy trickfun

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

Comments & Activities

Production build 0.71.5 2024