Answers.Body: <p>I encountered the same issue on my CiviCRM installation. This is related to contributions status name which changed after being translated (in French at least), which prevented CiviCRM from finding the right membership status (the <code>Completed</code> status was translated to <code>Complété</code> <a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Member/Form/Membership.php#L1332" rel="nofollow noreferrer">which wasn’t correctly tested in this code</a>).</p>
  
  <p>A bug was reported to the developers by Sunil Pawar (<a href="https://issues.civicrm.org/jira/browse/CRM-20881" rel="nofollow noreferrer">CRM-20881</a>), and a patch that solves this issue <a href="https://github.com/civicrm/civicrm-core/pull/10670" rel="nofollow noreferrer">was submitted on GitHub</a>.</p>
  
  <p>This patch wasn’t included in the core repository yet, but in my case, the patch works fine.</p>
  
  <p>Olivier;</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-31T22:25:19.057Z
Answers.Text: Useful info. thx
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-31T16:34:27.670Z
Answers.LastActivityDate: 2017-07-31T16:34:27.670Z
Answers.UserDisplayName: Olivier Tétard
Body: <p>A client has found that a number of memberships are still set to Pending even though the Payment is complete. Payments were made online. Membership is not in Override.</p>
  
  <p>Client does have a multisite but this has been in place for a long time, and these issues are sporadic.</p>
  
  <p>Here are some entries from db</p>
  
  <p><a href="https://gist.github.com/petednz/7151675e9b1d7715a163" rel="nofollow">https://gist.github.com/petednz/7151675e9b1d7715a163</a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-04T08:24:54.673Z
Comments.Text: Do you have audit logging enabled? It might give a clue as to what changes there were to the contribution to take it from Pending to completed and what other changes happened at the same time in the DB.
Comments.UserDisplayName: Parvez Saleh
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-04T19:19:16.823Z
Comments.Text: good point. they don't have 'log' but do of course have membership_log, but i need to go back to them and ensure which they have since manually corrected
Comments.UserDisplayName: petednz - fuzion
Tags: <civicontribute><civimember><pending>
Title: Contributions for Membership completed, but Membership remains as Pending
ThreadText: # Contributions for Membership completed, but Membership remains as Pending
  
  (Asked by: username_0 on 2015-11-03)
  
  A client has found that a number of memberships are still set to Pending even though the Payment is complete. Payments were made online. Membership is not in Override.
  
  Client does have a multisite but this has been in place for a long time, and these issues are sporadic.
  
  Here are some entries from db
  
  <https://gist.github.com/petednz/7151675e9b1d7715a163>
  
  **Tags:** civicontribute, civimember, pending
  
  > **Comments:**
  > **username_1**: Do you have audit logging enabled? It might give a clue as to what changes there were to the contribution to take it from Pending to completed and what other changes happened at the same time in the DB.  
  > **username_0**: good point. they don't have 'log' but do of course have membership_log, but i need to go back to them and ensure which they have since manually corrected  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-07-31. Score: 1 | Accepted answer
  
  I encountered the same issue on my CiviCRM installation. This is related to contributions status name which changed after being translated (in French at least), which prevented CiviCRM from finding the right membership status (the `Completed` status was translated to `Complété` [which wasn’t correctly tested in this code](https://github.com/civicrm/civicrm-core/blob/master/CRM/Member/Form/Membership.php#L1332)).
  
  A bug was reported to the developers by Sunil Pawar ([CRM-20881](https://issues.civicrm.org/jira/browse/CRM-20881)), and a patch that solves this issue [was submitted on GitHub](https://github.com/civicrm/civicrm-core/pull/10670).
  
  This patch wasn’t included in the core repository yet, but in my case, the patch works fine.
  
  Olivier;
  
  > **Comments:**
  > **username_0**: Useful info. thx  
  
  ---
  
  