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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal Error
Pages: [1]

Author Topic: Fatal Error  (Read 2712 times)

Rod1mu5

  • Guest
Fatal Error
July 08, 2007, 03:03:59 pm
Afternoon, im new to drupal and civicrm....gotten pretty good with druapl so far....civicrm is kicking my tale though...i saw a post for the fatal error problem on install and was able to make a couple of corrections 'i think' but either way i wind up at this same error....

Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/undergr3/public_html/civicnpm/modules/civicrm/drupal/civicrm.module on line 225

This is what my civicrm.setting.php looks like (passwords changed)...I know it has to be something with the directory path...buy im clueless at this point. ???

<?php
/**
 * CiviCRM Configuration File - v1.7
 */

/**
 * Content Management System (CMS) Host:
 *
 * CiviCRM can be hosted in either Drupal or Joomla.
 *
 * Settings for Drupal 5.1:
 *      define( 'CIVICRM_UF'        , 'Drupal' );
 *      define( 'CIVICRM_UF_VERSION', '5.1' );
 *      define( 'CIVICRM_UF_URLVAR' , 'q'  );
 *
 * For Drupal 4.7.x, same as above except
 *      define( 'CIVICRM_UF_VERSION', '4.7' );
 *
 * Settings for Joomla 1.0.x and 1.5.x:
 *      define( 'CIVICRM_UF'        , 'Joomla' );
 *      define( 'CIVICRM_UF_VERSION', '1' );
 *      define( 'CIVICRM_UF_URLVAR' , 'task'  );
 */

define( 'CIVICRM_UF'               , 'Drupal'        );
define( 'CIVICRM_UF_VERSION'       , '5.1' );
define( 'CIVICRM_UF_URLVAR'        , 'q'  );

/**
 * Content Management System (CMS) Datasource:
 *
 * Update this setting with your CMS (Drupal or Joomla) database username, server and DB name.
 * Datasource (DSN) format:
 *      define( 'CIVICRM_UF_DSN', 'mysql://cms_db_username:cms_db_password@db_server/cms_database?new_link=true');
 */

define( 'CIVICRM_UF_DSN'           , 'mysql://undergr3_drpl4:aaaa@localhost/undergr3_drpl4?new_link=true' );

/**
 * Content Management System (CMS) User Table-name:
 *
 * Update the CIVICRM_UF_USERSTABLENAME if needed to match the name of the table
 * where the CMS user data is stored. Default for Drupal installs is 'users'.
 * If you are using table-prefixing for the users table, you must enter the tablename
 * with the prefix. Default table name for Joomla - 'jos_users'. For Mambo - 'mos_users'.
 */

define( 'CIVICRM_UF_USERSTABLENAME', 'users' );

/**
 * CiviCRM Database Settings
 *
 * MySQL Version:
 * CiviCRM requires MySQL version 4.1 or greater.
 * IMPORTANT: Enter closest dot release to your installed version. 4.1, 5.0 are all valid examples. Do NOT
 * specify minor revision (second dot) - 4.1.2 is NOT a valid value for this setting.
 *
 * Database URL (CIVICRM_DSN) for CiviCRM Data:
 * Database URL format:
 *      define( 'CIVICRM_DSN', 'mysql://crm_db_username:crm_db_password@db_server/crm_database?new_link=true');
 *
 * Drupal and CiviCRM can share the same database, or can be installed into separate databases.
 *
 * EXAMPLE: Drupal and CiviCRM running in the same database...
 *      DB Name = drupal, DB User = drupal
 *      define( 'CIVICRM_DSN'         , 'mysql://drupal:YOUR_PASSWORD@localhost/drupal?new_link=true' );
 *
 * EXAMPLE: Drupal and CiviCRM running in separate databases...
 *      Drupal  DB Name = drupal, DB User = drupal
 *      CiviCRM DB Name = civicrm, CiviCRM DB User = civicrm
 *      define( 'CIVICRM_DSN'         , 'mysql://civicrm:YOUR_PASSWORD@localhost/civicrm?new_link=true' );
 *
 * MySQL Path:
 * This stores the installed path of mysql. You will need to verify and modify this value if you are
 * planning on using CiviCRMs built-in Database Backup utility. If you have shell access, you may be
 * able to query the path by using one of the following commands:
 * $ whereis mysql
 * $ type mysql
 *
 */

define( 'CIVICRM_MYSQL_VERSION', 4.1 );
define( 'CIVICRM_DSN'          , 'mysql://undergr3_drpl4:tih10898@localhost/undergr3_drpl4?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', '/usr/bin/' );

/**
 * File System Paths:
 *
 * $civicrm_root is the file system path on your server where the civicrm
 * code is installed. Use an ABSOLUTE path (not a RELATIVE path) for this setting.
 *
 * CIVICRM_TEMPLATE_COMPILEDIR is the file system path where compiled templates are stored.
 * These sub-directories and files are temporary caches and will be recreated automatically
 * if deleted.
 *
 * IMPORTANT: The COMPILEDIR directory must exist,
 * and your web server must have read/write access to these directories.
 *
 *
 * EXAMPLE - CivicSpace / Drupal:
 * If the path to the CivicSpace or Drupal home directory is /var/www/htdocs/civicspace
 * the $civicrm_root setting would be:
 *      $civicrm_root = '/var/www/htdocs/civicspace/modules/civicrm/';
 *
 * the CIVICRM_TEMPLATE_COMPILEDIR would be:
 *      define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/civicspace/files/civicrm/templates_c/' );
 *
 *
 * EXAMPLE - Joomla Installations:
 * If the path to the Joomla home directory is /var/www/htdocs/joomla
 * the $civicrm_root setting would be:
 *      $civicrm_root = '/var/www/htdocs/joomla/administrator/components/com_civicrm/civicrm/';
 *
 * the CIVICRM_TEMPLATE_COMPILEDIR would be:
 *      define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/joomla/media/civicrm/templates_c/' );
 *
 */

global $civicrm_root;

$civicrm_root = '/home/undergr3/public_html/civicnpm/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/undergr3/public_html/civicnpm/files/civicrm/templates_c/' );

/**
 * Site URLs:
 *
 * This section defines absolute and relative URLs to access the host CMS (Drupal or Joomla)
 * resources.
 *
 * IMPORTANT: Trailing slashes should be used on all URL settings.
 *
 * EXAMPLE - Drupal Installations:
 * If your site's home url is http://www.example.com/drupal/
 * these variables would be set as below. Modify as needed for your install.
 *
 * CIVICRM_UF_BASEURL - home URL for your site:
 *      define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/drupal/' );
 *
 * EXAMPLE - Joomla Installations:
 * If your site's home url is http://www.example.com/joomla/
 *
 * CIVICRM_UF_BASEURL - home URL for your site:
 * Administration site:
 *      define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/joomla/administrator/' );
 * Front-end site:
 *      define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/joomla/' );
 *
 */

define( 'CIVICRM_UF_BASEURL'      , 'http://www.undergroundpriesthood.com/civicnpm/' );

/**
 * SMTP Server Authentication Password:
 *
 * If your SMTP server requires authentication, you will enable that and enter the
 * Username from Administer CiviCRM >> Global Settings >> SMTP. Then enter the
 * authentication Password below.
 *
 */
define( 'CIVICRM_SMTP_PASSWORD', ''    );

/**
 * Payment Processor Passwords and/or Signature:
 *
 * Select and configure your payment processing service from Administer CiviCRM >> Global Settings >>
 * Payment Processor. For most services, you will also need to enter a Password and/or a Signature
 * or key below. These values are not stored separately (not in your database) for security reasons.
 */

/*
 * TEST Payment Server (Sandbox) Settings:
 * NOTE: Not all settings are used by all payment processors and authentication credential methods.
 *
 */

/* API Password
 * PayPal API Signature credential: API Password value
 *  (from your PayPal sandbox account - View API Signature screen).
 * PayPal Pro or Express with API Certificate credential: API Password value
 *  (from your PayPal sandbox account).
 * Moneris: API Token value.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_PASSWORD'      , 'aaaa' );

/* API Signature or Key
 * PayPal API Signature credential: Use the API Signature value
 *  (from your PayPal account - View API Signature screen).
 * PayPal API Certificate credential: Go to Administer CiviCRM >> Create PayPal API Profile
 *  to generate this key value.
 * Moneris: Use the storeid value.
 * Authorize.net: Use the API Transaction Key.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_KEY'           , 'aaaa' );

/* API Subject
 * PayPal API Signature credential only: Use this setting to process transactions
 * in behalf of a 3rd party.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_SUBJECT'       , '' );

/*
 * LIVE Payment Server Settings:
 * NOTE: Not all settings are used by all payment processors and authentication credential methods.
 *
 */

/* API Password
 * PayPal Pro or Express with API Signature credential: API Password value
 *  (from your PayPal account - View API Signature screen)
 * PayPal Pro or Express with API Certificate credential: API Password value
 *  (from your PayPal account).
 * Moneris: API Token value.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_PASSWORD'      , 'aaaa' );

/* API Signature or Key
 * PayPal Pro or Express with API Signature credential: Use the API Signature value
 *  (from your PayPal account - View API Signature screen).
 * PayPal Pro or Express with API Certificate credential:
 *  Go to Administer CiviCRM >> Create PayPal API Profile to generate this key value.
 * Moneris: Use the storeid value.
 * Authorize.net: Use the API Transaction Key.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_KEY'           , 'aaaa' );

/* API Subject
 * PayPal Pro or Express with API Signature credential only: Use this setting
 *  to process transactions in behalf of a 3rd party.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_SUBJECT'       , '' );

/**
 * Multi-site Support
 *
 * CiviCRM uses Domain ID keys to allow you to store separate data sets for multiple sites
 * using the same codebase.
 *
 * Refer to the 'Multi-site Support' section of the Installation Guide for more info.
 */

define('CIVICRM_DOMAIN_ID' , 0 );

/**
 * Joomla! Front-end Component Flag
 * If this configuration file is being used by a Joomla! front-end CiviCRM component
 * instance, set this value to 1.
 */

define( 'CIVICRM_UF_FRONTEND', 0 );
?>

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: Fatal Error
July 08, 2007, 05:52:26 pm

what directory is your civicrm.settings.php. It should be placed under sites/default (in most cases). Most likely drupal cannot find the settings file and hence your path is not set

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Fatal Error
July 08, 2007, 06:07:24 pm
It looks like the civicrm.settings.php file is not being read. Make sure that file is located in the same directory as your drupal settings.php file (in general, this would be <drupal_root>/sites/default). You can verify if the file is being read by adding another directive like:

phpinfo();

... below the opening comment lines - and reloading a civicrm path.
Protect your investment in CiviCRM by  becoming a Member!

Rod1mu5

  • Guest
Re: Fatal Error
July 08, 2007, 08:57:16 pm
100% sure its in that directory..../public_html/civicnpm/sites/default/...this is where i put the civicrm.settings.php file and in there already was the settings.php file.

Rod1mu5

  • Guest
Re: Fatal Error
July 09, 2007, 11:03:32 pm
Ok...i did as you stated and used the phpinfo(); and verified that it is reading the file.  started at the top and worked my way down the file and it reads that file from top to bottom.

It then dawned on me and I followed the path to the "Failed opening required 'CRM/Core/Config.php' " I don't think it can find the directory to this config file.

It seems to be referencing this piece of script here:

// this does pretty much all of the civicrm initialization
        require_once 'CRM/Core/Config.php';
        $config =& CRM_Core_Config::singleton();

but then it can't find the path to the config file which is why i get the error:

Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/undergr3/public_html/civicnpm/modules/civicrm/drupal/civicrm.module on line 225

any suggestions?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Fatal Error
July 12, 2007, 07:42:36 am
Normally the $civicrm_root is added to the include_path - and this allows civicrm.module to "find" it's required files (i.e. CRM/Core/Config.php). So you need to figure out why that isn't happening. i'm not sure what might cause this - permissions or other restrictions on your host?? or?
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal Error

This forum was archived on 2017-11-26.