Answers.Body: <p>After further investigation it appears that :</p>
  
  <p>The problem occurs when you define a Membership custom multi-valued field, even if you specify it as "non required", both in its definition and in the Webform :</p>
  
  <p>If you don't specify at least one value in the Webform, the membership will not be recorded : this means that you have to define this field as required in the webform if you don't want to have the problem.</p>
  
  <p>From my point of view, this is only a partial answer : this issue should be answered :</p>
  
  <ul>
  <li>either, at least, by a message which tells that the membership will not be recorded, due to ...</li>
  <li>or by recording the membership, even with this field empty,</li>
  <li>or by locking this field as required in the webform,</li>
  <li>or ...</li>
  </ul>
  
  <p>I will edit my bug report in this way at <a href="https://www.drupal.org/project/webform_civicrm/issues/2968720#comment-12598952" rel="nofollow noreferrer">https://www.drupal.org/project/webform_civicrm/issues/2968720#comment-12598952</a>.</p>
  
  <p>Here under (suggested by Karin and Pete) some screenshots to explain how the field was specified to produce this failure :</p>
  
  <p><a href="https://i.sstatic.net/FNy69.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FNy69.png" alt="enter image description here"></a>
  <a href="https://i.sstatic.net/A8wgt.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/A8wgt.png" alt="enter image description here"></a>
  <a href="https://i.sstatic.net/2QldJ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2QldJ.png" alt="enter image description here"></a>
  <a href="https://i.sstatic.net/tzji4.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/tzji4.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-03T14:28:22.900Z
Answers.Text: Ok so can you paste me a screenshot of this field as defined in your CiviCRM -> Custom Data etc.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-04T19:39:00.680Z
Answers.Text: Jacques - you should 1/ accept your own answer 2/ paste those screenshots in this answer, not add them as a separate answer is it will end up getting down voted
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-03T13:58:46.827Z
Answers.LastActivityDate: 2018-05-05T09:47:34.520Z
Answers.LastEditDate: 2018-05-05T09:47:34.520Z
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.Body: <p>ok let’s figure this out:</p>
  
  <ul>
  <li>add the webform_civicrm module version + civicrm version to your question</li>
  <li>check if there are any drupal database updates to be executed</li>
  <li>use (install if you don’t have it yet) node_clone module to clone your webform</li>
  <li>on the cloned form: remove the multi-value fileds - check if the form works without them</li>
  <li>use (install if you don’t have it yet) <a href="https://civicrm.org/extensions/civicrm-log-viewer" rel="nofollow noreferrer">https://civicrm.org/extensions/civicrm-log-viewer</a> to view any configandlog file entries; </li>
  </ul>
  
  <p>Let us know what clues you can dig up. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-02T19:46:59.747Z
Answers.Text: Nice answer Karin
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-03T13:43:23.340Z
Answers.Text: Thank you Karin ; but after further investigation, I found the answer (see my answer)
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-02T12:13:07.100Z
Answers.LastActivityDate: 2018-05-02T12:13:07.100Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>Civi 4.7.27</p>
  
  <p>I use extensively Webform Integration to register Memberships.</p>
  
  <p>Since mid April (precisely April 21st, but I don't remember when I did some Module Updates), memberships have not been recorded anymore, though no error message is displayed and Webform Mails are sent (and received).</p>
  
  <p>Some information before further investigation :</p>
  
  <ul>
  <li>My memberships have no associated Contribution and are for Life</li>
  <li>They have some associated multi-valued Custom Fields </li>
  <li>When they contain a new Contact, the new Contact is not created either</li>
  <li>I have the same problem on a Test Civi 5.0.0 configuration</li>
  </ul>
  
  <p>I will report this as a bug to <a href="https://www.drupal.org/node/add/project-issue/webform_civicrm" rel="nofollow noreferrer">https://www.drupal.org/node/add/project-issue/webform_civicrm</a>, and keep this informed if I find other informations.</p>
  
Tags: <civimember><webform-civicrm>
Title: Memberships not recorded since mid April 2018 (using Webform)
ThreadText: # Memberships not recorded since mid April 2018 (using Webform)
  
  (Asked by: username_0 on 2018-05-02)
  
  Civi 4.7.27
  
  I use extensively Webform Integration to register Memberships.
  
  Since mid April (precisely April 21st, but I don't remember when I did some Module Updates), memberships have not been recorded anymore, though no error message is displayed and Webform Mails are sent (and received).
  
  Some information before further investigation :
  
  * My memberships have no associated Contribution and are for Life
  * They have some associated multi-valued Custom Fields
  * When they contain a new Contact, the new Contact is not created either
  * I have the same problem on a Test Civi 5.0.0 configuration
  
  I will report this as a bug to <https://www.drupal.org/node/add/project-issue/webform_civicrm>, and keep this informed if I find other informations.
  
  **Tags:** civimember, webform-civicrm
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2018-05-03. Score: 2 | Accepted answer
  
  After further investigation it appears that :
  
  The problem occurs when you define a Membership custom multi-valued field, even if you specify it as "non required", both in its definition and in the Webform :
  
  If you don't specify at least one value in the Webform, the membership will not be recorded : this means that you have to define this field as required in the webform if you don't want to have the problem.
  
  From my point of view, this is only a partial answer : this issue should be answered :
  
  * either, at least, by a message which tells that the membership will not be recorded, due to ...
  * or by recording the membership, even with this field empty,
  * or by locking this field as required in the webform,
  * or ...
  
  I will edit my bug report in this way at <https://www.drupal.org/project/webform_civicrm/issues/2968720#comment-12598952>.
  
  Here under (suggested by Karin and Pete) some screenshots to explain how the field was specified to produce this failure :
  
  [![enter image description here](https://i.sstatic.net/FNy69.png)](https://i.sstatic.net/FNy69.png)
  [![enter image description here](https://i.sstatic.net/A8wgt.png)](https://i.sstatic.net/A8wgt.png)
  [![enter image description here](https://i.sstatic.net/2QldJ.png)](https://i.sstatic.net/2QldJ.png)
  [![enter image description here](https://i.sstatic.net/tzji4.png)](https://i.sstatic.net/tzji4.png)
  
  > **Comments:**
  > **username_1**: Ok so can you paste me a screenshot of this field as defined in your CiviCRM -> Custom Data etc.  
  > **username_2**: Jacques - you should 1/ accept your own answer 2/ paste those screenshots in this answer, not add them as a separate answer is it will end up getting down voted  
  
  ---
  
  ### Answer by username_1 on 2018-05-02. Score: 2
  
  ok let’s figure this out:
  
  * add the webform\_civicrm module version + civicrm version to your question
  * check if there are any drupal database updates to be executed
  * use (install if you don’t have it yet) node\_clone module to clone your webform
  * on the cloned form: remove the multi-value fileds - check if the form works without them
  * use (install if you don’t have it yet) <https://civicrm.org/extensions/civicrm-log-viewer> to view any configandlog file entries;
  
  Let us know what clues you can dig up.
  
  > **Comments:**
  > **username_2**: Nice answer Karin  
  > **username_0**: Thank you Karin ; but after further investigation, I found the answer (see my answer)  
  
  ---
  
  