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
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. |
Labels

3 Comments
Hide/Show CommentsMay 06, 2007
Dr. Ashutosh Pradhan
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
May 06, 2007
Dr. Ashutosh Pradhan
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.
May 06, 2007
Dr. Ashutosh Pradhan
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.