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] 2

Author Topic: Fatal error  (Read 11565 times)

interoz

  • Guest
Fatal error
April 24, 2007, 09:20:41 am
I am trying to install on Drupal 5.1 getting error: Failed opening required 'CRM/Core/Config.php'
Not finding path to directory CRM.

See URL:
http://clubalbuquerque.com/

Thanks
Charlie

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error
April 24, 2007, 10:43:07 am
Did you set $civicrm_root properly in your civicrm.settings.php file, and if so, is that file read at all?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

interoz

  • Guest
Re: Fatal error
April 24, 2007, 11:05:38 am
I believe it's right.
$civicrm_root = '/home/interoz/public_html/sites/all/modules/civicrm/';

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

from looking at the path to the error it's correct.

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
April 24, 2007, 11:43:19 am

most likely your civicirm.settings.php file is not read at all

Is this file in the same directory as your drupal settings.php file

thanx

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

interoz

  • Guest
Re: Fatal error
April 24, 2007, 12:19:53 pm
Ok that was the problem I didn't copy the settings file as stated in the install instructions (6).

Now the site comes up but I get some warnings..


    * warning: mkdir() [function.mkdir]: Permission denied in /home/interoz/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/interoz/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/interoz/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/interoz/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/interoz/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.

I created the directories and made them witable as stated in (2).
/civicrm/crm_docs
/civicrm/templates_c
/civicrm/upload

I put them in my drupal root dir I'm not sure if this is correct???

Thanks
Charlie

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
April 24, 2007, 01:21:32 pm

You need to create them in the files folder in drupal, and also make sure sure that folder is writable

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

interoz

  • Guest
Re: Fatal error
April 24, 2007, 02:05:22 pm
Well I moved the directories to the drupal files directory and made them all writable.
Still same warnings coming up.

/files/civicrm/crm_docs
/files/civicrm/templates_c
/files/civicrm/upload

The files directoy is writable as well and other modules are writing to it with no problems.

Also if I click on the link to the civicrm from the user menu I get this error.

Fatal error: CRM_Core_BAO_UFMatch::require_once() [function.require]: Failed opening required 'api/Contact.php' (include_path='.:/home/interoz/public_html/sites/all/modules/civicrm/:/home/interoz/public_html/sites/all/modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in /home/interoz/public_html/sites/all/modules/civicrm/CRM/Core/BAO/UFMatch.php on line 197

Thanks
Charlie

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
April 24, 2007, 02:14:26 pm

charlie:

there's something fundamentally wrong with your install :(

If you get on IRC and have ssh access to your box, we can take a look and figure out whats happening and why

Make sure you have the necessary ssh credentials before contacting us on IRC

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

ehlondon

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
Re: Fatal error
April 25, 2007, 07:16:14 am
I have the exact same error:

Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/ubiquity/sites/all/modules/civicrm/:/ubiquity/sites/all/modules/civicrm//packages:.:/usr/local/lib/php') in /homepages/1/d152762973/htdocs/ubiquity/sites/all/modules/civicrm/drupal/civicrm.module on line 225

I'm wondering about the double slash before packages and the "user/local/lip/php" and all those colons and dots..are those necessary?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error
April 25, 2007, 07:23:31 am
ehlondon: from the error message it looks like the proper path to your CiviCRM install is not just /ubiquity/sites/all/modules/civicrm/ but the full /homepages/1/d152762973/htdocs/ubiquity/sites/all/modules/civicrm/
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

ehlondon

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
Re: Fatal error
April 25, 2007, 07:26:12 am
Yes, I just figured that. I was missing the htdocs part.
Fixed that, then ran into some write permissions errors, but was able to go to server and edit permissions on folders - seems you have to do more than the default permissions that are given to folders when they are created.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fatal error
April 25, 2007, 07:53:21 am
So, did the change fix your issue? As for the folder permissions, it really depends on your setup.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

interoz

  • Guest
Re: Fatal error
April 25, 2007, 12:20:12 pm
Ok I got it working I think  :-\

I missed this setting in civicrm.settings.php

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'path to your drupal directory/files/civicrm/templates_c/' );

I am still getting warnings though.

    * warning: mkdir() [function.mkdir]: Permission denied in /home/interoz/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: Permission denied in /home/interoz/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: mkdir() [function.mkdir]: No such file or directory in /home/interoz/public_html/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.

Look at this thread for help too.
http://drupal.org/node/108489


interoz

  • Guest
Re: Fatal error
April 25, 2007, 12:35:25 pm
ok can someone help me set the directory paths in the civiCRM upload directory settings.

This is the current settings.
------
Temporary Files: /upload/

Images: /persist/contribute/

Custom Files: /upload/custom/
------
This is what I have set for CIVICRM_TEMPLATE_COMPILEDIR
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/interoz/public_html/files/civicrm/templates_c/' );

Do I need to create these other directories in templates_c?

Thanks Charlie

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
April 25, 2007, 12:53:27 pm

Charlie:

please use complete paths when specifying directories

so

/home/interoz/public_html/files/civicrm/upload/
/home/interoz/public_html/files/civicrm/persist/contribute/
/home/interoz/public_html/files/civicrm/upload/custom/

if civicrm has write permission on the files directory, it creates the other directories when it needs them

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] 2
  • 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.