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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Cron jobs from php cli failing CiviCRM-4.0.1
Pages: 1 [2]

Author Topic: Cron jobs from php cli failing CiviCRM-4.0.1  (Read 5328 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Cron jobs from php cli failing CiviCRM-4.0.1
June 23, 2011, 04:11:49 am
but the cronjob to send works ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

circlebails

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
  • CiviCRM version: 4.1.X 4.2.X
  • CMS version: Drupal-6.X / Drupal-7.X
  • MySQL version: 5.1
  • PHP version: 5.2.16/17, 5.3
Re: Cron jobs from php cli failing CiviCRM-4.0.1
June 23, 2011, 05:17:03 am
No the mailing in question stays in the state scheduled.

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Cron jobs from php cli failing CiviCRM-4.0.1
July 25, 2011, 05:54:20 pm
I bumped into this having upgraded production Civi from 3.3.6 to 3.4.4

When running UpdateMembershipRecord.php I now get the error message:

Code: [Select]
Usage: Please define CIVICRM_CONFDIR in settings_location.php at the top level civicrm directory
New bug, never encountered with all prior versions of Civi starting from 2.0.7.

Searching onward for the solution in our case...
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Cron jobs from php cli failing CiviCRM-4.0.1
July 25, 2011, 06:01:51 pm
Quote from: xavier on June 05, 2011, 11:23:06 am
Just to be sure on your drupal, you have your configuration under /sites/mysite.org (ie no default) ?

Well, I happen to run my Drupal sites in non-multi-site mode, so all Drupal files are loaded into each Apache multi-site directory structure and I have the config files in /sites/default

I have had to patch one file, to support non-multi-site Drupal configuration thus far...

Quote
Site Name and Base Directory tangle and fight on a non-Multi-Site Drupal installation
http://issues.civicrm.org/jira/browse/CRM-7458
sites/all/modules/civicrm/CRM/Core/BAO/Setting.php

So what else might I need to patch in order to successfully run non-Multi-Site Drupal?
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Cron jobs from php cli failing CiviCRM-4.0.1
July 25, 2011, 06:32:50 pm
Hacked it... not sure if it is the intended way, but it works for me.

I added the variable definition to my CiviCRM main configuration file:

Code: [Select]
# /srv/www/sites/domain.org/www/sites/default/civicrm.settings.php

/*
 * Needed to add to successfully upgrade from 3.3.6 --> 3.4.4 else
 * UpdateMembershipRecord.php bombs
 */
define( 'CIVICRM_CONFDIR'          , '/srv/www/sites/domain.org/www' );

And now...

Code: [Select]
userid@host:/srv/www/sites/domain.org/bin$ ./civicrm-civimember.UpdateMembershipRecord.php.sh

 Updating ...

 Membership records updated. (Done)

Woo hoo!!  ;D
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Cron jobs from php cli failing CiviCRM-4.0.1

This forum was archived on 2017-11-26.