Answers.Body: <p>I solved this issue by setting everything back like it is out of the box when you install CiviCRM.</p>
  
  <p><strong>RULE #1: don't play with Membershipstatus rules</strong></p>
  
  <p>This is what I learnt after struggling for months.</p>
  
  <p>If you have access to PhpmyAdmin, this is how it should be set:</p>
  
  <p><a href="https://i.sstatic.net/uHQAT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/uHQAT.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-22T09:56:48.883Z
Answers.LastActivityDate: 2019-11-22T09:56:48.883Z
Answers.UserDisplayName: Guillaume Sorel
Body: <p>I recently switched from a normal Civicrm contribution page to a Webform one. Since then, the relationship between contribution and membership is not so clear.</p>
  
  <p>The new Members do appear in the membership list but individually the membership is considered to be null like on this image:</p>
  
  <p><a href="https://i.sstatic.net/H2R4b.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/H2R4b.png" alt="enter image description here"></a></p>
  
  <p>If I look inside each new members' profile, I can see they paid a contribution for a membership ('cotisation' in French) </p>
  
  <p><a href="https://i.sstatic.net/vmuEB.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vmuEB.png" alt="enter image description here"></a></p>
  
  <p>but in the membership tab, I see no membership and the status is still on "Waiting for a payment"</p>
  
  <p><a href="https://i.sstatic.net/10HEE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/10HEE.png" alt="enter image description here"></a></p>
  
  <p>It only changes if I enter manually a payment. The strange thing is that if I look at the Membership dashboard, these members do appear on the dashboard page:</p>
  
  <p><a href="https://i.sstatic.net/Cz5c7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Cz5c7.png" alt="enter image description here"></a></p>
  
  <p>but if I look deeply in the number of "real members" then they don't show up:</p>
  
  <p><a href="https://i.sstatic.net/WXMho.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/WXMho.png" alt="enter image description here"></a></p>
  
  <p>This is how looks the membership part in the webform-civicrm tab. 'Adhésion annuelle' is the Membership type and 'cotisation' means membership.</p>
  
  <p><a href="https://i.sstatic.net/GLmoi.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GLmoi.png" alt="membership configuration"></a></p>
  
  <p>and the contribution one. The contribution page is the one that was previously used and that worked fine. (I only have one). There is a contribution amount but it's new and the situation was the same already before.</p>
  
  <p><a href="https://i.sstatic.net/VfkPd.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/VfkPd.png" alt="enter image description here"></a></p>
  
  <p>Has anyone already encountered this situation?</p>
  
  <p>I'm running an up-to-date Drupal 7 / Civicrm with webform-civicrm.</p>
  
  <p>EDIT 1 ::
  I've created a new webform to test with live payment and I'm getting to the same situation.</p>
  
  <p>EDIT 2 :: if I have a look at Drupal logs and focus on webform-civicrm, I can see at least twice this error at the time I have the new memberships.</p>
  
  <pre><code>The CiviCRM "contribution sendconfirmation" API returned the error: "field description unset or not existing" when called by function "postSave" on line 248 of wf_crm_webform_postprocess.inc with parameters: "Array ( [id] =&gt; 195 [title] =&gt; Adhésion et renouvellement d'adhésion au SNPMNS [intro_text] =&gt;
  
      Dans le cadre d'une primo adhésion ou d'un renouvellement via ce formulaire en ligne, nous vous demandons de le remplir de la manière la plus exhaustive possible afin de simplifier et d'améliorer l'établissement de votre assurance RC professionnelle.
  
      IMPORTANT : Si vous changez d'adresse en cours d'année, envoyez-nous vos nouvelles coordonnées rapidement
      Tous les champs avec un * sont obligatoires
      [financial_type_id] =&gt; 2 [is_credit_card_only] =&gt; 0 [is_monetary] =&gt; 1 [is_recur] =&gt; 0 [is_confirm_enabled] =&gt; 1 [is_recur_interval] =&gt; 0 [is_recur_installments] =&gt; 0 [adjust_recur_start_date] =&gt; 0 [is_pay_later] =&gt; 1 [pay_later_text] =&gt; Je paierai par chèque ou par virement électronique [pay_later_receipt] =&gt;
  
      Merci de nous adresser sous 3 jours votre chèque ou votre virement pour le paiement de la cotisation au SNPMNS.
  
      Vous recevrez ensuite votre kit adhérent comprenant l'attestation d'assurance RC prestataire de services.
  
      Notre compte en banque pour le virement :
  
      IBAN : FR76 1820 6001 6316 3910 0900 159
  
      Notre adresse pour nous adresser le chèque :
  
      80, boulevard du Général LECLERC
      BP 3 - 92113 Clichy la Garenne CEDEX
      [is_partial_payment] =&gt; 0 [is_allow_other_amount] =&gt; 0 [thankyou_title] =&gt; Bienvenue au SNPMNS [thankyou_text] =&gt;
  
      Nous vous remercions pour votre adhésion au SNPMNS et notre équipe se rapprochera de vous dans les plus brefs délais.
  
  
      [thankyou_footer] =&gt;
  
      Merci de ne pas répondre à ce message automatique.
      [is_email_receipt] =&gt; 1 [receipt_from_name] =&gt; SNPMNS service adhésion [receipt_from_email] =&gt; adhesion@snpmns.org [cc_receipt] =&gt; adhesion@snpmns.org [bcc_receipt] =&gt; contact@all-in-appli.com [receipt_text] =&gt; Nous vous remercions pour votre adhésion au SNPMNS et notre équipe se rapprochera de vous dans les plus brefs délais. La période de validité de l'adhésion inscrite dans ce courriel de confirmation est donnée à titre indicatif seulement et votre adhésion ne sera réellement effective qu'après le contrôle par l'équipe en charge des adhésions et la transmission des éventuels documents administratifs indispensables à l'établissement de l'attestation d'assurance RC-pro. Dans l'attente de vous rencontrer lors de nos actions. L'équipe du SNPMNS [is_active] =&gt; 1 [amount_block_is_active] =&gt; 0 [start_date] =&gt; 2019-04-24 13:56:00 [created_date] =&gt; 2019-04-24 13:58:12 [currency] =&gt; EUR [is_share] =&gt; 0 [is_billing_required] =&gt; 1 [contribution_type_id] =&gt; 2 [payment_processor_id] =&gt; 1 [check_permissions] =&gt; [version] =&gt; 3 ) "
  </code></pre>
  
  <p>EDIT 3 :: I need to manually override status in the individual contact tab to make the membership active</p>
  
  <p><a href="https://i.sstatic.net/ZhKG3.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ZhKG3.png" alt="enter image description here"></a></p>
  
  <p>EDIT 4 :: I don't need anymore to apply EDIT 3 because of the patches in CiviCRM 5.19 that correct the translation of "Pending". Still I need to "save" a payment to make it be recorded. Is this related to MembershipsStatus? </p>
  
  <p><a href="https://i.sstatic.net/ghg83.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ghg83.png" alt="Membershipsstatus"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-16T04:07:39.850Z
Comments.Text: "Has anyone already encountered this situation?" - nope and we have set up many many sites with webforms doing the membership + contribution
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-16T08:10:31.270Z
Comments.Text: ok! at least what happens is not usual. I have to dig further into this issue.
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-16T13:52:59.973Z
Comments.Text: I compared "old" and "new" contribution, and I can see that there is no change for the "membership status". I don't know where to look :(
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-16T19:36:03.783Z
Comments.Text: you could add screenshots of your webform-civi tab esp the Cont. and the Memb vertical tabs, and the webform components screen
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T07:22:46.097Z
Comments.Text: done, with other screenshots from the members dashboard that shows that the new member are "half" registered.
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T09:09:02.867Z
Comments.Text: still not seeing what is amiss. very odd.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T09:55:51.587Z
Comments.Text: :-(. I'm stuck. I'm having a look at logs.
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T11:25:25.603Z
Comments.Text: I found some errors within Drupal logs, but I don't know how to interpret these
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-19T19:48:03.330Z
Comments.Text: is it only a problem for certain Payment Processor?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-20T07:51:39.293Z
Comments.Text: I have only 2 options: online payment with Stripe (that works fine as a Membership Contribution) or Pay later with bank transfer or check. In this second situation, you need to enter manually the payment. It's the core process from 'Contribution' to 'Membership' that fails. Should I reinstall webform-civicrm?
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-20T20:34:56.183Z
Comments.Text: have you confirmed that purchasing a Membership directly via the Contribution page is working?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-21T19:46:28.440Z
Comments.Text: yes. this is the normal page we used to use and membership contributions were automatically turned into memberships : https://gestad.net/civicrm/contribute/transact?reset=1&id=1. I hoped trying with a new contribution test page and a new test webform would help me to learn something but actually it didn't :(
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-21T19:51:57.317Z
Comments.Text: I found to way to manually make this change for each new member (override stratus) but this is really not the way I want to use CiviCRM...
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-23T04:16:35.647Z
Comments.Text: would like to help you get over this problem, esp. if you are volunteering for a good project
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-08-26T08:06:40.640Z
Comments.Text: what kind of good project? ;)
Comments.UserDisplayName: Guillaume Sorel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-19T10:38:32.780Z
Comments.Text: could this be related to MembershipStatus or Cron Job "update membership"?
Comments.UserDisplayName: Guillaume Sorel
Tags: <webform-civicrm>
Title: Webform and Membership
ThreadText: # Webform and Membership
  
  (Asked by: username_0 on 2019-08-15)
  
  I recently switched from a normal Civicrm contribution page to a Webform one. Since then, the relationship between contribution and membership is not so clear.
  
  The new Members do appear in the membership list but individually the membership is considered to be null like on this image:
  
  [![enter image description here](https://i.sstatic.net/H2R4b.png)](https://i.sstatic.net/H2R4b.png)
  
  If I look inside each new members' profile, I can see they paid a contribution for a membership ('cotisation' in French)
  
  [![enter image description here](https://i.sstatic.net/vmuEB.png)](https://i.sstatic.net/vmuEB.png)
  
  but in the membership tab, I see no membership and the status is still on "Waiting for a payment"
  
  [![enter image description here](https://i.sstatic.net/10HEE.png)](https://i.sstatic.net/10HEE.png)
  
  It only changes if I enter manually a payment. The strange thing is that if I look at the Membership dashboard, these members do appear on the dashboard page:
  
  [![enter image description here](https://i.sstatic.net/Cz5c7.png)](https://i.sstatic.net/Cz5c7.png)
  
  but if I look deeply in the number of "real members" then they don't show up:
  
  [![enter image description here](https://i.sstatic.net/WXMho.png)](https://i.sstatic.net/WXMho.png)
  
  This is how looks the membership part in the webform-civicrm tab. 'Adhésion annuelle' is the Membership type and 'cotisation' means membership.
  
  [![membership configuration](https://i.sstatic.net/GLmoi.png)](https://i.sstatic.net/GLmoi.png)
  
  and the contribution one. The contribution page is the one that was previously used and that worked fine. (I only have one). There is a contribution amount but it's new and the situation was the same already before.
  
  [![enter image description here](https://i.sstatic.net/VfkPd.png)](https://i.sstatic.net/VfkPd.png)
  
  Has anyone already encountered this situation?
  
  I'm running an up-to-date Drupal 7 / Civicrm with webform-civicrm.
  
  EDIT 1 ::
  I've created a new webform to test with live payment and I'm getting to the same situation.
  
  EDIT 2 :: if I have a look at Drupal logs and focus on webform-civicrm, I can see at least twice this error at the time I have the new memberships.
  
  ```
  The CiviCRM "contribution sendconfirmation" API returned the error: "field description unset or not existing" when called by function "postSave" on line 248 of wf_crm_webform_postprocess.inc with parameters: "Array ( [id] => 195 [title] => Adhésion et renouvellement d'adhésion au SNPMNS [intro_text] =>
  
      Dans le cadre d'une primo adhésion ou d'un renouvellement via ce formulaire en ligne, nous vous demandons de le remplir de la manière la plus exhaustive possible afin de simplifier et d'améliorer l'établissement de votre assurance RC professionnelle.
  
      IMPORTANT : Si vous changez d'adresse en cours d'année, envoyez-nous vos nouvelles coordonnées rapidement
      Tous les champs avec un * sont obligatoires
      [financial_type_id] => 2 [is_credit_card_only] => 0 [is_monetary] => 1 [is_recur] => 0 [is_confirm_enabled] => 1 [is_recur_interval] => 0 [is_recur_installments] => 0 [adjust_recur_start_date] => 0 [is_pay_later] => 1 [pay_later_text] => Je paierai par chèque ou par virement électronique [pay_later_receipt] =>
  
      Merci de nous adresser sous 3 jours votre chèque ou votre virement pour le paiement de la cotisation au SNPMNS.
  
      Vous recevrez ensuite votre kit adhérent comprenant l'attestation d'assurance RC prestataire de services.
  
      Notre compte en banque pour le virement :
  
      IBAN : FR76 1820 6001 6316 3910 0900 159
  
      Notre adresse pour nous adresser le chèque :
  
      80, boulevard du Général LECLERC
      BP 3 - 92113 Clichy la Garenne CEDEX
      [is_partial_payment] => 0 [is_allow_other_amount] => 0 [thankyou_title] => Bienvenue au SNPMNS [thankyou_text] =>
  
      Nous vous remercions pour votre adhésion au SNPMNS et notre équipe se rapprochera de vous dans les plus brefs délais.
  
      [thankyou_footer] =>
  
      Merci de ne pas répondre à ce message automatique.
      [is_email_receipt] => 1 [receipt_from_name] => SNPMNS service adhésion [receipt_from_email] => adhesion@snpmns.org [cc_receipt] => adhesion@snpmns.org [bcc_receipt] => contact@all-in-appli.com [receipt_text] => Nous vous remercions pour votre adhésion au SNPMNS et notre équipe se rapprochera de vous dans les plus brefs délais. La période de validité de l'adhésion inscrite dans ce courriel de confirmation est donnée à titre indicatif seulement et votre adhésion ne sera réellement effective qu'après le contrôle par l'équipe en charge des adhésions et la transmission des éventuels documents administratifs indispensables à l'établissement de l'attestation d'assurance RC-pro. Dans l'attente de vous rencontrer lors de nos actions. L'équipe du SNPMNS [is_active] => 1 [amount_block_is_active] => 0 [start_date] => 2019-04-24 13:56:00 [created_date] => 2019-04-24 13:58:12 [currency] => EUR [is_share] => 0 [is_billing_required] => 1 [contribution_type_id] => 2 [payment_processor_id] => 1 [check_permissions] => [version] => 3 ) "
  
  ```
  
  EDIT 3 :: I need to manually override status in the individual contact tab to make the membership active
  
  [![enter image description here](https://i.sstatic.net/ZhKG3.png)](https://i.sstatic.net/ZhKG3.png)
  
  EDIT 4 :: I don't need anymore to apply EDIT 3 because of the patches in CiviCRM 5.19 that correct the translation of "Pending". Still I need to "save" a payment to make it be recorded. Is this related to MembershipsStatus?
  
  [![Membershipsstatus](https://i.sstatic.net/ghg83.png)](https://i.sstatic.net/ghg83.png)
  
  **Tags:** webform-civicrm
  
  > **Comments:**
  > **username_1**: "Has anyone already encountered this situation?" - nope and we have set up many many sites with webforms doing the membership + contribution  
  > **username_0**: ok! at least what happens is not usual. I have to dig further into this issue.  
  > **username_0**: I compared "old" and "new" contribution, and I can see that there is no change for the "membership status". I don't know where to look :(  
  > **username_1**: you could add screenshots of your webform-civi tab esp the Cont. and the Memb vertical tabs, and the webform components screen  
  > **username_0**: done, with other screenshots from the members dashboard that shows that the new member are "half" registered.  
  > **username_1**: still not seeing what is amiss. very odd.  
  > **username_0**: :-(. I'm stuck. I'm having a look at logs.  
  > **username_0**: I found some errors within Drupal logs, but I don't know how to interpret these  
  > **username_1**: is it only a problem for certain Payment Processor?  
  > **username_0**: I have only 2 options: online payment with Stripe (that works fine as a Membership Contribution) or Pay later with bank transfer or check. In this second situation, you need to enter manually the payment. It's the core process from 'Contribution' to 'Membership' that fails. Should I reinstall webform-civicrm?  
  > **username_1**: have you confirmed that purchasing a Membership directly via the Contribution page is working?  
  > **username_0**: yes. this is the normal page we used to use and membership contributions were automatically turned into memberships : https://gestad.net/civicrm/contribute/transact?reset=1&id=1. I hoped trying with a new contribution test page and a new test webform would help me to learn something but actually it didn't :(  
  > **username_0**: I found to way to manually make this change for each new member (override stratus) but this is really not the way I want to use CiviCRM...  
  > **username_1**: would like to help you get over this problem, esp. if you are volunteering for a good project  
  > **username_0**: what kind of good project? ;)  
  > **username_0**: could this be related to MembershipStatus or Cron Job "update membership"?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-11-22. Score: 0 | Accepted answer
  
  I solved this issue by setting everything back like it is out of the box when you install CiviCRM.
  
  **RULE #1: don't play with Membershipstatus rules**
  
  This is what I learnt after struggling for months.
  
  If you have access to PhpmyAdmin, this is how it should be set:
  
  [![enter image description here](https://i.sstatic.net/uHQAT.png)](https://i.sstatic.net/uHQAT.png)
  
  
  ---
  
  