CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • updateAllMembershipStatus() not working
Pages: [1]

Author Topic: updateAllMembershipStatus() not working  (Read 413 times)

Matthias de MAUROY - CYIM

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 4
  • Working at CYIM
    • CYIM
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 5.1.66-community-log
  • PHP version: 5.3
updateAllMembershipStatus() not working
February 24, 2014, 08:54:41 am
Sorry to bother you again guys !

But I can't solve this one...

I created a script, updating membership's end-dates after import, it works just fine.

After this script I run UpdateMembershipRecord() to clean memberships once and for all, but all my "valid" memberships stays in "Expired" status.

But if I edit one of these and saves it right away without modifying it, the status changes to "current"...

Can you help me on this ?
« Last Edit: February 24, 2014, 08:57:40 am by Matthias de MAUROY - CYIM »
Matthias de MAUROY
Analyste Web Developpeur
BU WEB
Tél. : +33 (0)2 99 22 83 40
Fax : +33 (0)2 99 22 83 41
Mail : m.mauroy@cyim.com
CYIM
31, rue de la Frébardière
35135 CHANTEPIE
FRANCE

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: updateAllMembershipStatus() not working
February 24, 2014, 10:39:25 am
Doesn't the "update membership status" scheduled job do what you are after? http://drupal.demo.civicrm.org/civicrm/admin/job?reset=1
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Matthias de MAUROY - CYIM

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 4
  • Working at CYIM
    • CYIM
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 5.1.66-community-log
  • PHP version: 5.3
Re: updateAllMembershipStatus() not working
February 24, 2014, 11:29:46 pm
From what I've read, "update membership status" job call updateAllMembershipStatus()...

So yes it does what I want but it seems "useless"

Memberships look like this => Join date = 1 January 2008, start date = 1 January 2008, end date = 31 December 2014

When I run "update membership status" job or updateAllMembershipStatus() nothing change but like I said after saving it without modification it does...
Matthias de MAUROY
Analyste Web Developpeur
BU WEB
Tél. : +33 (0)2 99 22 83 40
Fax : +33 (0)2 99 22 83 41
Mail : m.mauroy@cyim.com
CYIM
31, rue de la Frébardière
35135 CHANTEPIE
FRANCE

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • updateAllMembershipStatus() not working

This forum was archived on 2017-11-26.