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 CiviMember (Moderator: Deepak Srivastava) »
  • Failed opening required 'CRM/Core/Config.php'
Pages: [1]

Author Topic: Failed opening required 'CRM/Core/Config.php'  (Read 10309 times)

majovdh

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
    • Chautaara VZW
  • CiviCRM version: 4.2.6
  • CMS version: drupal 7.17
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Failed opening required 'CRM/Core/Config.php'
February 05, 2010, 11:09:28 am
Hello,

I try to update my memberships but i get this message.
Code: [Select]
Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/mhostorg/public_html/chautaara.org/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php on line 51

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:sites/all/modules/civicrm:sites/all/modules/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/mhostorg/public_html/chautaara.org/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php on line 51

Everything is there. Anybody knows an answer tot his

Majo

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: Failed opening required 'CRM/Core/Config.php'
February 05, 2010, 11:32:07 am

ensure that the variable

$civicrm_root

is a complete full path, rather than the relative path it currently is

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

majovdh

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
    • Chautaara VZW
  • CiviCRM version: 4.2.6
  • CMS version: drupal 7.17
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Failed opening required 'CRM/Core/Config.php'
February 06, 2010, 08:55:38 am
Hello

My site is in http://www.m-host.org/chautaara.org/ but you can reach it from http://chautaara.org

Even if i try both paths it doesn't work

majovdh

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
    • Chautaara VZW
  • CiviCRM version: 4.2.6
  • CMS version: drupal 7.17
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Failed opening required 'CRM/Core/Config.php'
February 06, 2010, 10:12:29 am
Nobody knows where the problem can be

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: Failed opening required 'CRM/Core/Config.php'
February 06, 2010, 10:27:28 pm

you might want to read my prior response a bit more carefully and double check the

$civicrm_root

variable in your settings file

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

majovdh

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
    • Chautaara VZW
  • CiviCRM version: 4.2.6
  • CMS version: drupal 7.17
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Failed opening required 'CRM/Core/Config.php'
February 08, 2010, 01:04:00 pm
Hey Lobo,

I read youre prior responce very cerfully and i even changed the settings ;)

Now i get this if i try to reach my site
Code: [Select]
warning: include_once(CRM/Core/Config.php) [function.include-once]: failed to open stream: No such file or directory in /home/mhostorg/public_html/chautaara.org/sites/all/modules/civicrm/drupal/civicrm.module on line 253.
warning: include_once() [function.include]: Failed opening 'CRM/Core/Config.php' for inclusion (include_path='.:http://www.m-host.org/chautaara.org/sites/all/modules/civicrm:http://www.m-host.org/chautaara.org/sites/all/modules/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/mhostorg/public_html/chautaara.org/sites/all/modules/civicrm/drupal/civicrm.module on line 253.
Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (sites/default/civicrm.settings.php).

» civicrm_root is currently set to: http://www.m-host.org/chautaara.org/sites/all/modules/civicrm.

Please review the Drupal Installation Guide and the Trouble-shooting page for assistance. If you still need help installing, you can often find solutions to your issue by searching for the error message in the installation support section of the community forum.

see chautaara.org

And i still cannot use any of the update of the membership nor cron nor manually

Majo

Paul Jacobson

  • Guest
Re: Failed opening required 'CRM/Core/Config.php'
February 08, 2010, 01:49:42 pm
You still have civicrm_root set incorrectly. It needs to be the full path on the server not the full web address.

try:

Code: [Select]
$civicrm_root = '/home/mhostorg/public_html/chautaara.org/sites/all/modules/civicrm';
cheers
Paul

majovdh

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 2
    • Chautaara VZW
  • CiviCRM version: 4.2.6
  • CMS version: drupal 7.17
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Failed opening required 'CRM/Core/Config.php'
February 09, 2010, 11:10:34 am
So i should add like this?
Code: [Select]
global $civicrm_root;

$civicrm_root = '/home/mhostorg/public_html/chautaara.org/sites/all/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/mhostorg/public_html/chautaara.org/sites/default/files/civicrm/templates_c/' );
I tried but still same error
Code: [Select]
Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/mhostorg/public_html/chautaara.org/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php on line 51

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:sites/all/modules/civicrm:sites/all/modules/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/mhostorg/public_html/chautaara.org/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php on line 51
« Last Edit: February 09, 2010, 11:14:17 am by majovdh »

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Failed opening required 'CRM/Core/Config.php'
October 05, 2010, 09:29:51 am
I am getting this same error with CiviCRM 3.2.3 while trying to convert from using wget to PHP CLI. Using wget, the UpdateMembershipRecord.php completes properly. Using PHP CLI, I am seeing the "Failed opening required 'CRM/Core/Config.php'" error.

I am driving the UpdateMembershipRecord.php with the following Bash script:
(Old wget syntax is commented out, which that is the working syntax for wget.)

Code: [Select]
#!/bin/bash -x

umask 002
DATETIME=`/bin/date +%Y%m%d-%H%M%S`

#/usr/bin/wget -O - -q 'http://domain.org/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php?name=******&pass=******&key=******' 2>&1 | /usr/bin/tee -a /srv/www/reports/$DATETIME.domain.civicrm-civimember.UpdateMembershipRecord.php.sh.log

PARAMS='-sdefault -u****** -p******'

cd /srv/www/sites/domain.org/www/sites/all/modules/civicrm
/usr/bin/nice -n19 /usr/bin/php bin/UpdateMembershipRecord.php $PARAMS 2>&1 | /usr/bin/tee -a /srv/www/reports/$DATETIME.domain.civicrm-civimember.UpdateMembershipRecord.php.sh.log

How would I incorporate setting the $civicrm_root correctly into this Bash script? I do not understand how that would help prepare the environment for PHP CLI to run the UpdateMembershipRecord.php script. To me it appears that UpdateMembershipRecord.php either must be run from a different directory, or is not PHP CLI ready as-is.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Failed opening required 'CRM/Core/Config.php'
November 17, 2010, 11:39:40 am
This CLI issue running UpdateMembershipRecord.php is solved with the 3.2.5 update. Thank you very much!  ;D
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

rafaelreinehr

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Joomla 1.5
  • MySQL version: 5.5.32
  • PHP version: 5.3.27
Re: Failed opening required 'CRM/Core/Config.php'
January 17, 2014, 11:56:15 am
The same problem with me, but iḿ using Joomla 1.5/CiviCRM 3.3

Let's explain why the "out to date" softwares:

We used civicrm some time ago, and we want to start using it again. In Drupal 7 for now on.

In this years, we migrate servers, and now, trying to access the "old" civicrm, we got this "CRM/Core/Config.php" error

COMPLETE ERROR:

Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/coolmeia/public_html/coolmeia_2007_2012/components/com_civicrm/civicrm.php on line 19

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/home/coolmeia/public_html/administrator/components/com_civicrm/civicrm:/home/coolmeia/public_html/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/coolmeia/public_html/coolmeia_2007_2012/components/com_civicrm/civicrm.php on line 19

I've already changed the global $civicrm_root;

$civicrm_root = '/home/coolmeia/public_html/coolmeia_2007_2012/administrator/components/com_civicrm/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/coolmeia/public_html/coolmeia_2007_2012/media/civicrm/templates_c' );

To the correct full path.

What am i missing?

rafaelreinehr

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Joomla 1.5
  • MySQL version: 5.5.32
  • PHP version: 5.3.27
Re: Failed opening required 'CRM/Core/Config.php'
January 19, 2014, 07:13:07 am
Is there any "Lobo" out there to help us?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Failed opening required 'CRM/Core/Config.php'

This forum was archived on 2017-11-26.