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 (Moderator: Dave Greenberg) »
  • Consolidated cron error
Pages: [1]

Author Topic: Consolidated cron error  (Read 989 times)

Micah Lee

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 4
  • CiviCRM version: 4.1.0
  • CMS version: Drupal 7
  • MySQL version: 5.1.49
  • PHP version: 5.3.3
Consolidated cron error
April 11, 2012, 04:51:58 pm
I'm trying to set up the consolidated cron job in CiviCRM 4.1. But when I run this:

php bin/cli.php -j -u mailer -p PASSWORD -e Job -a execute

I get this error:

PHP Fatal error:  Call to a member function saveLastRun() on a non-object in /path/to/drupal/sites/all/modules/civicrm/CRM/Core/JobManager.php on line 118
PHP Stack trace:
PHP   1. {main}() /path/to/drupal/sites/all/modules/civicrm/bin/cli.php:0
PHP   2. civicrm_Cli->callApi() /path/to/drupal/sites/all/modules/civicrm/bin/cli.php:30
PHP   3. CRM_Core_JobManager->executeJobByAction() /path/to/drupal/sites/all/modules/civicrm/bin/cli.php:66
PHP   4. CRM_Core_JobManager->executeJob() /path/to/drupal/sites/all/modules/civicrm/CRM/Core/JobManager.php:106


Any idea if I'm doing it wrong, or if I should open a new issue in jira?

Micah Lee

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 4
  • CiviCRM version: 4.1.0
  • CMS version: Drupal 7
  • MySQL version: 5.1.49
  • PHP version: 5.3.3
Re: Consolidated cron error
May 14, 2012, 11:13:42 am
I've created an issue in jira: http://issues.civicrm.org/jira/browse/CRM-10220

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Consolidated cron error
May 14, 2012, 12:32:17 pm
Do you have "CiviCRM version: 4.0.0" ?

Does the cron work if you run it the browser?
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.

Micah Lee

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 4
  • CiviCRM version: 4.1.0
  • CMS version: Drupal 7
  • MySQL version: 5.1.49
  • PHP version: 5.3.3
Re: Consolidated cron error
May 14, 2012, 01:45:13 pm
I'm using CiviCRM 4.1.0 (just updated it in my forum profile).

And yes, it does work in the browser. Dave Greenberg just commented on the issue and solved the problem http://issues.civicrm.org/jira/browse/CRM-10220.

When using execute, I shouldn't pass -j.

Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Consolidated cron error

This forum was archived on 2017-11-26.