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 »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Fatal Error CRM/Core/Config.php
Pages: [1]

Author Topic: Fatal Error CRM/Core/Config.php  (Read 866 times)

pennerg

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: 10
  • PHP version: 10
Fatal Error CRM/Core/Config.php
September 11, 2011, 09:37:09 pm
I have just moved my drupal install and CiviCRM to a different host that allows port 993 to be opened.

The only thing odd about the install was the location of the civicrm files.  It is located in domain/sites/all/modules/contrib/civicrm

This is the way the host has the mocules setup, they all go in the contrib folder.

When I go to run EmailProcessor.php  ( domain/sites/all/modules/contrib/civicrm/bin/EmailProcessor.php?name=username&pass=pass&key=civikey

I get the following error.


Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mydomain/public_html/sites/all/modules/contrib/civicrm/bin/EmailProcessor.php on line 370

I am not sure if this is do to the location of the civicrm files or some other issue.  I am greatful for your help or advice.

pennerg

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: 10
  • PHP version: 10
Re: Fatal Error CRM/Core/Config.php
September 23, 2011, 11:41:58 pm
I figured out the problem.  the base_url was not set in the drupal settings.php

and I am on a shared host so I added settings_location.php

<?php
// the following (/home/lobo/public_html/drupal/sites/)
// should be changed to your sites directory
define( 'CIVICRM_CONFDIR', '/home/lobo/public_html/sites/' );

Problem Fixed


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Fatal Error CRM/Core/Config.php

This forum was archived on 2017-11-26.