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 in CiviCRM 1.8 install
Pages: [1]

Author Topic: Fatal error in CiviCRM 1.8 install  (Read 2288 times)

rczamor

  • I’m new here
  • *
  • Posts: 20
  • Karma: 2
Fatal error in CiviCRM 1.8 install
July 29, 2007, 08:58:05 pm
Hi Folks,

I keep getting this fatal error message trying to install CiviCRM. I looked at other posts of the same or similar problems, and see no solutions. Can someone please point me in the right direction?

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/modules/civicrm/:/modules/civicrm//packages:.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.marthena/rczamor/test.richezamor.com/makehiphopnotwar/modules/civicrm/drupal/civicrm.module on line 224


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 in CiviCRM 1.8 install
July 30, 2007, 01:06:09 am

Your civicrm_root does not have the right value, it should be:

$civicrm_root = '/home/.marthena/rczamor/test.richezamor.com/makehiphopnotwar/modules/civicrm';

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

citizenk9

  • Guest
Re: Fatal error in CiviCRM 1.8 install
July 30, 2007, 01:30:49 am
I get the same error and the problem is not what I'm typing in for the path.  At least I don't think so.  I think the error has to do with  the include path building that is going on in the bottom part of the civicrm.settings.php file. 
Something is appending the colon or the extra period to the path I'm defining in the settings file.  I've spent about three hours on this now.   One other idea I have is that my Drupal root is Drupal-5.1 and I'm wondering if the included '.' is screwing me over since the include path code is not escaping out special characters.  I suspect that is what is happening. which really pisses me off.   

I'd also like to point out that the comments tell you to put in the absolute path, and then when you look at the include path code, you see that a ./ is prepended to the path text, so there goes the absolute. 

I am completely unclear why I install CiviCRM in sites/all/modules rather than drupal/modules but I did what the example showed.  I do not forsee a multi-site implementation. 

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 in CiviCRM 1.8 install
July 30, 2007, 02:06:18 am

The drupal recommendation in 5.x is for all contributed modules to go under sites/all/modules. Hence our documentation is based on that path. CiviCRM works fine under drupal/modules also

the path separator is a ':' not a '.' (in *nix), so that should not be the cause of your error. Also note we are prepending '.:' to the include path, i.e. the current directory is looked at first, then the absolute path from civicrm_root, then the packages directorye etc.

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

citizenk9

  • Guest
Re: Fatal error in CiviCRM 1.8 install
July 30, 2007, 02:36:39 am
Hi Lobo, thanks for the reply and I know I sound whiny but that is how I feel at the moment.

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/lehsite/drupal/sites/all/modules/civicrm/:/lehsite/drupal/sites/all/modules/civicrm//packages:.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.ishcabible/lehuser/lehsite/drupal-5.1/sites/all/modules/civicrm/drupal/civicrm.module on line 224. 

I symlinked the drupal-5.1 and you're right, that's not it.  I've searched and edited and re-edited the file for bad quotes, bad end of lines, bad anything.   I've looked, and CRM/Core/Config.php does exist in lehsite/drupal/sites/all/modules/civicrm/ ... I don't know what is up with //packages.  Also, I am editing the file on a Mac with BBEdit and specifying Unix line feeds.

This error is received as soon as the "save configuration" button is clicked with the CivicCrm 1.8 module enabled by the admin.  The Admin user is my only user and I don't have any Drupal content -- nodes or blocks -- set up.    Could the theme I have enabled be the problem?  I've experienced this problem with Abac, Zen, Internet-Services and Contented so far.

I'm giving up for now. Will try again in a few hours.  Thanks. 

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 in CiviCRM 1.8 install
July 30, 2007, 02:55:33 am

make sure u have this as your civicrm_root:

$civicrm_root = '/home/.ishcabible/lehuser/lehsite/drupal-5.1/sites/all/modules/civicrm';

Your current setting is not the complete path. Hosting providers hide the true path from you for reasons unknown to me :(

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

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

This forum was archived on 2017-11-26.