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) »
  • when running cronjobs i get this message
Pages: [1]

Author Topic: when running cronjobs i get this message  (Read 1342 times)

majovdh

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
    • Chautaara VZW
  • CiviCRM version: 4.2.6
  • CMS version: drupal 7.17
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
when running cronjobs i get this message
February 16, 2012, 10:51:19 am
Hello,

I'm running my cronjobs "updatemembership" and "mailings" through the new scheduled jobs in civicrm 4.1.0. and with
/sites/all/modules/civicrm/bin/cron.php?

I'm getting this message :

Fatal error: Call to undefined function module_exists() in /home/chautaar/public_html/sites/all/modules/civicrm/CRM/Core/BAO/Navigation.php on line 587

Majo

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: when running cronjobs i get this message
February 16, 2012, 11:19:55 am

can u update your forum profile so we know what CMS and version you are using

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Martin.Schwenke

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6.x
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
Re: when running cronjobs i get this message
April 05, 2012, 08:31:32 pm
I'm seeing the same thing with Drupal 6.22 and CiviCRM 4.1.1.

Martin.Schwenke

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6.x
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
Re: when running cronjobs i get this message
April 09, 2012, 02:50:05 am
I've done a bit of checking and I think that this is because I use the wget (or whatever) method to run cron jobs rather than the CLI.  My guess is that the CLI bootstraps Drupal under the covers so that module_exists() gets defined.  If the bootstrapping happened when cron.php is run via wget then module_exists() would have to be defined.

In Drupal 6, includes/bootstrap.inc drupal_bootstrap() (indirectly via _drupal_bootstrap()) requires module.inc, which defines module_exists().

My reason for using wget/cron.php is that I've never been able to get the CLI to work.  My setup uses a bunch of symlinks and I've never been able to convince the CLI to work...

Martin.Schwenke

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6.x
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
Re: when running cronjobs i get this message
May 15, 2012, 04:54:20 am
Just for completeness, it seems that I can now run the CLI.  I had $civicrm_root set to what I will call a non-canonical value.  It wasn't pointing to civicrm via the actual Drupal installation but instead via a directory that is linked to from the Drupal installation.  Using the canonical path to civicrm via the Drupal installation directory seems to have fixed my CLI problems...  so this problem goes away, since I no longer need to use the "wget method"...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • when running cronjobs i get this message

This forum was archived on 2017-11-26.