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) »
  • Membership status rules incorrect
Pages: [1]

Author Topic: Membership status rules incorrect  (Read 2617 times)

jt196

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 3
Membership status rules incorrect
October 17, 2007, 06:09:06 am
This isn't really an essential feature for me as I don't work using the Member Status, but I've noticed that all members whose expiry date is between now and the beginning of this month (Oct 1-16) is set to 'Current'. I've not amended the rules at all, so the 'expired' status should be set to kick in as soon as the expiry date passes the present.

Is this rule only run by the month? So when I get to November, all those incorrect 'Current' statuses all get set to 'Grace' and so on.

I'm sure that this isn't a result of incorrect statuses on import (which I did recently) as the system shows up an error when you try and import incorrect statuses.

Anyone else experienced this? Like I said, this is no big deal, but worth pointing out.

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: Membership status rules incorrect
October 17, 2007, 06:29:09 am
You need to set a cron job to run UpdateMembershipStatus.php to automagically update the status.

jt196

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 3
Re: Membership status rules incorrect
October 17, 2007, 08:07:36 am
Cheers Speleo,
I've set up the cron job to run on my Windows PC according to the instructions here: http://drupal.org/node/31506
I've deleted the .txt extension so now the file is called UpdateMembershipStatus.php...
But...
When I try to run the job I get this error:
ERROR: You need to send a valid user name and password to execute this file
When running it manually or automatically. Is there some other file I need to put the username and password into? And it is my computer un/pw - not the CiviCRM/Drupal login details???
Cheers in advance.
James.

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: Membership status rules incorrect
October 18, 2007, 12:56:58 pm
do a search on "authenticateScript" in the forum. There's info on how to get around it and how to do it properly.

jt196

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 3
Re: Membership status rules incorrect
October 18, 2007, 02:33:04 pm
Cheers speleo,
Haven't tried it yet but found the answer here: http://forum.civicrm.org/index.php/topic,1018.0.html


"In the UpdateMembershipRecord.php, found the following line:
Code:

CRM_Utils_System::authenticateScript( true );


and changed it to

Code:

CRM_Utils_System::authenticateScript( false );


I realize this makes it not authenticate, but frankly, I'd rather have this than passing the userid and password in a url, especially if done in a cronjob."

jshuster

  • Guest
Re: Membership status rules incorrect
October 20, 2007, 07:18:27 pm
Where is the need to set up a cron job for UpdateMembershipStatus.php documented?  I haven't found it -- and I've been wondering why these statuses have never updated on my site. 

Where is the file UpdateMembershipRecords.php?  I've been through the v1.8 installation and can't find it.  The closest I can find is bin/UpdateMembershipRecord.php.txt.

Seems like this is pretty critical to using CiviMember ...

jt196

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 3
Re: Membership status rules incorrect
October 21, 2007, 02:31:56 am
A quick google and I found it here: http://wiki.civicrm.org/confluence/display/CRMDOC/Membership+Types

The bin/UpdateMembershipRecord.php.txt file just needs renaming as far as I can see. But, agreed, it's not apparent enough. It would be nice if there was some way of operating the script within CiviCRM - but I suppose that the cronjob needs are OS specific and cannot be controlled within the CRM software.

jshuster

  • Guest
Re: Membership status rules incorrect
October 21, 2007, 10:14:41 am
Thanks! 

I google'd the topic, but didn't find this.  I found a help link in CiviCRM, under renewal reminders on the membership config page, but that brings up a page under construction that has very little information, and nothing at all on cron jobs.

About to try the script for the first time ... database backed up ... site backed up ... ok clicking now ...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Membership status rules incorrect

This forum was archived on 2017-11-26.