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 »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • CIVICRM_CONFDIR error
Pages: [1]

Author Topic: CIVICRM_CONFDIR error  (Read 1080 times)

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
CIVICRM_CONFDIR error
December 14, 2010, 11:31:04 pm
Just upgraded to 3.3.1 (from 3.2.5). Running Drupal 6.19. CiviMail cron worked as expected before. Now I get:

Code: [Select]
PHP Notice:  Use of undefined constant CIVICRM_CONFDIR - assumed 'CIVICRM_CONFDIR' in /var/web/sites/all/modules/civicrm/bin/cli.php on line 112
PHP Notice:  Use of undefined constant CIVICRM_CONFDIR - assumed 'CIVICRM_CONFDIR' in /var/web/sites/all/modules/civicrm/bin/cli.php on line 113
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/bin/misc/favicon.ico" type="image/x-icon" />
    <title>Site off-line | Drupal</title>
    .......

Looking up the referenced code:

Code: [Select]
   if (CIVICRM_CONFDIR) {
 $_SERVER['SCRIPT_FILENAME' ] = CIVICRM_CONFDIR . "/sites/all/modules/civicrm/bin/cli.php";
    }

     CRM_Core_Error::setCallback( array( 'civicrm_CLI', 'fatal' ) );
    }

There is no sign of CIVICRM_CONFDIR in civicrm.settings.php or anywhere else as far as I can tell.

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: CIVICRM_CONFDIR error
December 15, 2010, 09:21:00 am
I put an extra line in civicrm.settings.php
Code: [Select]
define( 'CIVICRM_CONFDIR'          , '/var/web/drupal' );

That got rid of the first two lines in the error message, not recognizing CIVICRM_CONFDIR.

However it continues to print out the Drupal Site off-line page in the output when I try to run either bin/civimail.cronjob.php or bin/EmailProcessor.php

Any ideas?
« Last Edit: December 15, 2010, 09:25:26 am by slovak »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • CIVICRM_CONFDIR error

This forum was archived on 2017-11-26.