Answers.Body: <p>I got some help from a friend and we got it working. The problem seems to be that the database was not finished writing to the email table when the CiviRule fires. We switched the rule to Trigger on &quot;Email is created&quot;.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-24T22:44:49.703Z
Answers.LastActivityDate: 2020-11-07T21:16:06.270Z
Answers.LastEditDate: 2020-11-07T21:16:06.270Z
Answers.UserDisplayName: Iowa Boy
Body: <p>Drupal 7.72<br>
  Civi 5.28.2<br>
  Silent User 1.0<br>
  I just installed the extension and setup the CiviRule per the pics on GitHub. My CiviRule trigger is a new contact created with condition of &quot;these&quot; sources (sources are webform civi integration forms that we use for contributions).</p>
  <p>When I make a contribution as a new user, I get 2 Drupal error messages <a href="https://i.sstatic.net/JjSNr.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JjSNr.png" alt="enter image description here" /></a>
  The contribution does process in Civi and it does include a Name and Email. But a user is not created in Drupal.
  I added a 3 minute delay in the CiviRule and tested it with and without rechecking the condition. Now it does not show the Drupal errors as above but it still does not create a Drupal user.</p>
  <p>In the Civilogs I see this (I assume it is related) [warning] Report Error Extension could not send since no email address was set.</p>
  <p>In the Drupal Logs, I had the following
  Notice: Undefined index: template_id in CRM_Emailapi_CivirulesAction_Send-&gt;userFriendlyConditionParams() (line 122 of /sites/default/files/civicrm/extensions/org.civicoop.emailapi/CRM/Emailapi/CivirulesAction/Send.php).</p>
  <p>But I no longer get the log errors since I added the delay.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-08-21T14:15:53.250Z
Comments.Text: Hey @IowaBoy - I'm the author of this extension.  Open an issue on my Github?  I haven't tested with Webform - regular contribution/event pages require an email.  Does your Webform require an email?
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-09-16T04:23:05.590Z
Comments.Text: Yes, an email is required. I posted it on Github
Comments.UserDisplayName: Iowa Boy
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-13T03:48:40.623Z
Comments.Text: I just setup a new webform integration and noticed something that might help. The name and email information are on the first page of the webform. The payment information is on the second page and it only asks for the billing address. Maybe because the email is not on with the billing information it does not see the email field???
Comments.UserDisplayName: Iowa Boy
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-13T04:38:01.020Z
Comments.Text: I tested moving the civicrm_1_contact_1_contact_first_name , last_name, and civicrm_1_contact_1_email_email to the second page of the form with the billing information. I still get the error message as above.
Comments.UserDisplayName: Iowa Boy
Tags: <extension><cms-integration>
Title: Getting Drupal error messages with Silent User Registration extension
ThreadText: # Getting Drupal error messages with Silent User Registration extension
  
  (Asked by: username_0 on 2020-08-21)
  
  Drupal 7.72  
  Civi 5.28.2  
  Silent User 1.0  
  I just installed the extension and setup the CiviRule per the pics on GitHub. My CiviRule trigger is a new contact created with condition of "these" sources (sources are webform civi integration forms that we use for contributions).
  
  When I make a contribution as a new user, I get 2 Drupal error messages [![enter image description here](https://i.sstatic.net/JjSNr.png)](https://i.sstatic.net/JjSNr.png)
  The contribution does process in Civi and it does include a Name and Email. But a user is not created in Drupal.
  I added a 3 minute delay in the CiviRule and tested it with and without rechecking the condition. Now it does not show the Drupal errors as above but it still does not create a Drupal user.
  
  In the Civilogs I see this (I assume it is related) [warning] Report Error Extension could not send since no email address was set.
  
  In the Drupal Logs, I had the following
  Notice: Undefined index: template\_id in CRM\_Emailapi\_CivirulesAction\_Send->userFriendlyConditionParams() (line 122 of /sites/default/files/civicrm/extensions/org.civicoop.emailapi/CRM/Emailapi/CivirulesAction/Send.php).
  
  But I no longer get the log errors since I added the delay.
  
  **Tags:** extension, cms-integration
  
  > **Comments:**
  > **username_1**: Hey @username_0 - I'm the author of this extension.  Open an issue on my Github?  I haven't tested with Webform - regular contribution/event pages require an email.  Does your Webform require an email?  
  > **username_0**: Yes, an email is required. I posted it on Github  
  > **username_0**: I just setup a new webform integration and noticed something that might help. The name and email information are on the first page of the webform. The payment information is on the second page and it only asks for the billing address. Maybe because the email is not on with the billing information it does not see the email field???  
  > **username_0**: I tested moving the civicrm_1_contact_1_contact_first_name , last_name, and civicrm_1_contact_1_email_email to the second page of the form with the billing information. I still get the error message as above.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-10-24. Score: 3 | Accepted answer
  
  I got some help from a friend and we got it working. The problem seems to be that the database was not finished writing to the email table when the CiviRule fires. We switched the rule to Trigger on "Email is created".
  
  
  ---
  
  