I installed Multiple Registration - Version: 8.x-1.3+2-dev and Rules Version: 8.x-3.0-alpha1+26-dev in an attempt to send different emails on account creation depending on their role.

I used After saving new user (rules_entity_insert:user) and 1 action [Send Email]

With no multiple registration module installed, Rules is able to send emails normally. I create a new account and I receive my emails. With Multiple Registration installed, I set up the same rule to send an email when a user is created. No emails were ever received.

I am able to use Rules to send emails on every other trigger such as making a new piece of content. It is just on new user creation where it fails.

Comments

Anonymous’s picture

samstreuli created an issue. See original summary.

Anonymous’s picture

Issue summary: View changes
Alex Liannoy’s picture

Hello @samstreuli. Thank you for reporting the issue. I will take a look at it.

Waylander’s picture

Rules fail at new user creation when i create a new content also, and i suspect that multiple register is at fault.

Error is : Recoverable fatal error: Argument 1 passed to Drupal\rules\Plugin\Condition\NodeIsOfType::doEvaluate() must implement interface Drupal\node\NodeInterface, instance of Drupal\Core\Field\EntityReferenceFieldItemList given in Drupal\rules\Plugin\Condition\NodeIsOfType->doEvaluate() (line 40 of C:\xampp\htdocs\hotel-one-link\modules\rules\src\Plugin\Condition\NodeIsOfType.php) #0 C:\xampp\htdocs\hotel-one-link\core\includes\bootstrap.inc(548): _drupal_error_handler_real(4096, 'Argument 1 pass...', 'C:\\xampp\\htdocs...', 40, Array) #1 C:\xampp\htdocs\hotel-one-link\modules\rules\src\Plugin\Condition\NodeIsOfType.php(40): _drupal_error_handler(4096, 'Argument 1 pass...', 'C:\\xampp\\htdocs...', 40, Array) #2 [internal function]: Drupal\rules\Plugin\Condition\NodeIsOfType->doEvaluate(Object(Drupal\Core\Field\EntityReferenceFieldItemList), Object(Drupal\node\Entity\Node)) #3 C:\xampp\htdocs\hotel-one-link\modules\rules\src\Core\RulesConditionBase.php(69): call_user_func_array(Array, Array) #4 C:\xampp\htdocs\hotel-one-link\modules\rules\src\Plugin\RulesExpression\RulesCondition.php(109): Drupal\rules\Core\RulesConditionBase->evaluate() #5 C:\xampp\htdocs\hotel-one-link\modules\rules\src\Plugin\RulesExpression\RulesAnd.php(36): Drupal\rules\Plugin\RulesExpression\RulesCondition->executeWithState(Object(Drupal\rules\Engine\ExecutionState)) #6 C:\xampp\htdocs\hotel-one-link\modules\rules\src\Engine\ConditionExpressionContainer.php(73): Drupal\rules\Plugin\RulesExpression\RulesAnd->evaluate(Object(Drupal\rules\Engine\ExecutionState)) #7 C:\xampp\htdocs\hotel-one-link\modules\rules\src\Plugin\RulesExpression\Rule.php(90): Drupal\rules\Engine\ConditionExpressionContainer->executeWithState(Object(Drupal\rules\Engine\ExecutionState)) #8 C:\xampp\htdocs\hotel-one-link\modules\rules\src\Plugin\RulesExpression\ActionSet.php(31): Drupal\rules\Plugin\RulesExpression\Rule->executeWithState(Object(Drupal\rules\Engine\ExecutionState)) #9 C:\xampp\htdocs\hotel-one-link\modules\rules\src\EventSubscriber\GenericEventSubscriber.php(131): Drupal\rules\Plugin\RulesExpression\ActionSet->executeWithState(Object(Drupal\rules\Engine\ExecutionState)) #10 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(111): Drupal\rules\EventSubscriber\GenericEventSubscriber->onRulesEvent(Object(Drupal\rules\Event\EntityEvent), 'rules_entity_in...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #11 C:\xampp\htdocs\hotel-one-link\modules\rules\rules.module(124): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('rules_entity_in...', Object(Drupal\rules\Event\EntityEvent)) #12 [internal function]: rules_entity_insert(Object(Drupal\node\Entity\Node)) #13 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Extension\ModuleHandler.php(402): call_user_func_array('rules_entity_in...', Array) #14 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Entity\EntityStorageBase.php(169): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_insert', Array) #15 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Entity\ContentEntityStorageBase.php(418): Drupal\Core\Entity\EntityStorageBase->invokeHook('insert', Object(Drupal\node\Entity\Node)) #16 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Entity\EntityStorageBase.php(470): Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('insert', Object(Drupal\node\Entity\Node)) #17 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Entity\ContentEntityStorageBase.php(304): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\node\Entity\Node), false) #18 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Entity\EntityStorageBase.php(395): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object(Drupal\node\Entity\Node), false) #19 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php(761): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\node\Entity\Node)) #20 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Entity\Entity.php(364): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\node\Entity\Node)) #21 C:\xampp\htdocs\hotel-one-link\core\modules\node\src\NodeForm.php(356): Drupal\Core\Entity\Entity->save() #22 [internal function]: Drupal\node\NodeForm->save(Array, Object(Drupal\Core\Form\FormState)) #23 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Form\FormSubmitter.php(111): call_user_func_array(Array, Array) #24 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Form\FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #25 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Form\FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #26 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Form\FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('node_page_form', Array, Object(Drupal\Core\Form\FormState)) #27 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Entity\EntityFormBuilder.php(48): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\node\NodeForm), Object(Drupal\Core\Form\FormState)) #28 C:\xampp\htdocs\hotel-one-link\core\modules\node\src\Controller\NodeController.php(113): Drupal\Core\Entity\EntityFormBuilder->getForm(Object(Drupal\node\Entity\Node)) #29 [internal function]: Drupal\node\Controller\NodeController->add(Object(Drupal\node\Entity\NodeType)) #30 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #31 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\Render\Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #32 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #33 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #34 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #35 C:\xampp\htdocs\hotel-one-link\vendor\symfony\http-kernel\HttpKernel.php(139): call_user_func_array(Object(Closure), Array) #36 C:\xampp\htdocs\hotel-one-link\vendor\symfony\http-kernel\HttpKernel.php(62): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #37 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\StackMiddleware\Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #38 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #39 C:\xampp\htdocs\hotel-one-link\core\modules\page_cache\src\StackMiddleware\PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #40 C:\xampp\htdocs\hotel-one-link\core\modules\page_cache\src\StackMiddleware\PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #41 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #42 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #43 C:\xampp\htdocs\hotel-one-link\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #44 C:\xampp\htdocs\hotel-one-link\core\lib\Drupal\Core\DrupalKernel.php(652): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #45 C:\xampp\htdocs\hotel-one-link\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #46 {main}.

ysamoylenko’s picture

Status: Active » Postponed (maintainer needs more info)

Hi all.
Currently, I've checked the problem with the latest "Rules" module dev version with the patch for it https://www.drupal.org/files/issues/2816157-10.patch and latest dev version of the "Multiple registration".
And, I can't reproduce the problem, now.

Please notify if the problem still actual for you and provide steps to reproduce it.

ysamoylenko’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Please check the problem again in the latest release of the module - 8.x-2.4.