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) »
  • Umm.. cron file missing or..?
Pages: [1]

Author Topic: Umm.. cron file missing or..?  (Read 1774 times)

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Umm.. cron file missing or..?
August 20, 2012, 04:01:05 pm
Hi, I'm having the exact same issue as general_ludd in this post: http://forum.civicrm.org/index.php/topic,24375.0.html

I'm running Drupal 7.15 and CiviCRM 4.1.2. I think that my membership types and status rules are set up correctly.

However, when trying to read the documentation (http://wiki.civicrm.org/confluence/display/CRMDOC40/Membership+Types) pointed to by petednz, I just cannot find the file that is referred to (/bin/UpdateMembershipRecord.php.txt) in my public_html/sites/all/modules/civicrm/bin folder.
I can however find a file called UpdateMembershipRecord.php, but it is under the folder /bin/deprecated, from which I interpret that this is a file that is not to be used anymore?? It also seems to be quite a lot shorter than the file referred to in the documentation.

I tried downloading the latest version of CiviCRM, but it seems the file is missing even here.

Where am I going wrong? Is it me, the documentation or my install that's got the biggest issues?? (guessing: me!)
I just cannot seem to figure this one out, and it's high time to update the statuses of all our members....

Thanks in advance for any pointers!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Umm.. cron file missing or..?
August 20, 2012, 04:31:05 pm
See http://civicrm.org/blogs/dave-greenberg/wake-call-site-administrators-consolidated-cron-hits-pavement-41 for details about how you just setup a cron for bin/cron.php and the rest you do via the web interface.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Umm.. cron file missing or..?
August 21, 2012, 02:07:57 am
Ah, thank you! I really must have missed that loud warning at the end of upgrading somehow. Sorry about that!  :-[

However, a new problem occurs: When I'm trying to run the cron job from command line, it doesn't quite seem to "click"?
Here's the command followed by it's output (I've taken the liberty to hide my user/pw and some of the path, otherwise it's a simple copy/paste). I'm running it from the civicrm folder:

Code: [Select]
$ php bin/cli.php -u <myuser> -p <mypassword> -e Job -a execute
PHP Notice:  Trying to get property of non-object in /###/###/domains/###/public_html/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 541
PHP Notice:  Trying to get property of non-object in /###/###/domains/###/public_html/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 542
PHP Notice:  Trying to get property of non-object in /###/###/domains/###/public_html/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 543
PHP Notice:  Trying to get property of non-object in /###/###/domains/###/public_html/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 546
PHP Notice:  Undefined offset: 0 in /###/###/domains/###/public_html/sites/all/modules/civicrm/CRM/Core/I18n/PseudoConstant.php on line 59
Jobs called from cli.php require valid user and password as parameter


I've tried run this using a user with administrator priveliges to my Drupal site, and all possible priveliges in the CiviCRM ACL list, so I don't understand what I'm missing (again).
Are someone able to give me a hint? Thanks in advance!

PS! I would prefer to run this as a non-administrator, but I'm really unsure what permissions are actually needed? Is there a list somewhere that I haven't been able to find?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Umm.. cron file missing or..?
August 21, 2012, 05:05:17 am
Try:

Code: [Select]
wget -O - -q -t 1 'http://[SITEROOT]/sites/all/modules/civicrm/bin/cron.php?name=username&pass=password&key=site-key'
from CLI
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Umm.. cron file missing or..?
August 21, 2012, 03:50:30 pm
Ah, there the cron is actually running as it should! One step closer! Thanks a lot Hershel!  :)

BUT, the original error is still there, our members still cannot renew their memberships, even if it says that "the membership expired on 31. july 2012". They still get the error message "You already have a lifetime membership and cannot select a membership with a shorter term".

I'm out of ideas, do you have any Hershel?

The membership in question is a "fixed 6 month" membership.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Umm.. cron file missing or..?
August 22, 2012, 03:51:14 am
And the person who gets the error has no other memberships?

And you enabled the Membership Update job under Scheduled Jobs in CiviCRM?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Umm.. cron file missing or..?
August 22, 2012, 08:54:24 am
He did run through parts of the registration one time before actually managing, so he's got one old membership with status "Cancelled" which never was activated. Then he's got this one new membership that is expired, which is the one he's trying to renew.
I'm not sure, but I have a very strong suspicion that this will apply to all of our members.

Yes I did. These are the jobs I'm running:

Activity processor (Hourly)
Bounces fetcher (Daily)
Mailings scheduler (Hourly)
Membership status processor (Daily)
Participant status processor (Always)
Scheduled reminders sender (Daily)

All of these were ran successfully according to the log, except for bounces and activity which could not connect to MailStore.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Umm.. cron file missing or..?
August 22, 2012, 10:35:25 am
Can you try to delete his cancelled membership?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Umm.. cron file missing or..?
August 24, 2012, 01:54:51 am
Wow! That fixed it!  Thank you! :)

But why really? Is there a way to avoid that this happens when people aborts a payment?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Umm.. cron file missing or..?
August 24, 2012, 02:58:04 am
I do not know how to avoid this for the future, aside from deleting "bad" memberships.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Umm.. cron file missing or..?
August 24, 2012, 05:25:41 am
Humm.. wonder if this is then something that should be reported as a bug, or if it is just something that I've done wrong (again).  ???

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Umm.. cron file missing or..?

This forum was archived on 2017-11-26.