Dashboard > CiviCRM Documentation > ... > 8. FAQ > Error Config
Error Config Log In | Sign Up   View a printable version of the current page.

 Contents
  Documentation Home

Failed opening required 'CRM/Core/Config.php'

When enabling CiviCRM for the first time using Drupal as front end, you may get a fatal error that disables your site like:

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

The most likely cause for this is a misconfigured civicrm.settings.php. In particular

  • check that civicrm.settings.php is in the right place (in the same directory as your drupal settings.php)
  • check that the setting for $civicrm_root is correct. Note that using aliases or links may not work — use the absolute path.

Also, check that there is no duplicate civicrm.settings.php file in its original directory /modules/civicrm. This may happen if you have simply unzipped the package directly into the modules directory and copied civicrm.settings.php.


Added by Judy Halllman , last edited by Chris Skene on Jun 24, 2007  (view change) show comment
Labels: 
(None)

Recently Updated  |  Documentation Credits

If you are sure that all the root path, MySQL passwords are correct mentioned in civicrm.settings.php that is uploaded at modules/cvicrm and still you are getting the same error kindly do the following:

Upload the civicrm.settings.php to :

drupal/ sites/default

too along with the cvicm folder.

Cheers - Ashutosh - ashutosh@scientica.com 

I need to correct my earlier comment, do not upload the civicrm folder to the drupal/sites/default

Only upload civicrm.settings.php to that folder where settings.php file is also present. The same file also needs to be present at your civicrm folder.

Please check that you have created following directories and their attributes are set to 777:

crm_docs; persist; template_c; upload

After creating these directories add the following path in the civicrm.settings.php file as follows:  

$civicrm_root = '/your_drupal_server_path/modules/civicrm/' ;
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/your_drupal_server_path/modules/civicrm/templates_c/' );
define( 'CIVICRM_UF_BASEURL', 'http://www.your_drupal_server_path/' );
define( 'CIVICRM_UPLOADDIR'          , '/your_drupal_server_path/modules/civicrm/upload/'  );
define( 'CIVICRM_CUSTOM_FILE_UPLOADDIR'    , '/your_drupal_server_path/modules/civicrm/crm_docs/' );
define( 'CIVICRM_UF_RESOURCEURL'  , 'http://your_drupal_server_path/modules/civicrm/' );
define( 'CIVICRM_IMAGE_UPLOADURL' , 'http://your_drupal_server_path/modules/civicrm/persist/' );
 

and then upload it to the directories stated in my earlier comments.

Powered by a free Atlassian Confluence Open Source Project License granted to CiviCRM . Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators