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: require_once(): Failed opening required 'CRM/Core/ClassLoader.php'
Pages: [1]

Author Topic: Fatal error: require_once(): Failed opening required 'CRM/Core/ClassLoader.php'  (Read 5856 times)

cfusch

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.6.6
  • CMS version: Drupal 7.39
  • MySQL version: 5.6.23
  • PHP version: 5.4.38
Fatal error: require_once(): Failed opening required 'CRM/Core/ClassLoader.php'
February 19, 2013, 01:09:42 pm
New to working with CiviCRM, but experienced with Drupal (7):

I moved my drupal 7 site with CiviCRM from a production server (where it works fine) to a development server.  Started the development version and got the front page ... all okay. But upon login to the site I received this :

Fatal error: require_once(): Failed opening required 'CRM/Core/ClassLoader.php' (include_path='.:/home/drupal/public_html/sites/all/modules/civicrm:/home/drupal/public_html/sites/all/modules/civicrm/packages:.:/opt/lampp/lib/php') in /home/carl/2013/drupal-sandbox.com/sites/default/civicrm.settings.php on line 300

***** I think this has to do with the includes path, because this is NOT my development path, but it is my production path.  If this is the case, where do I set this? and where can I find simple documentation for moving my Drupal/CiviCRM site. 

Any clues on this error? 

I'm on Drupal 7.19,
PHP 5.4.7,
Apache 2.4.3,
MySQL 5.0.1,
CiviCRM 4.2.6

Kindest Regards,

Carl

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: require_once(): Failed opening required 'CRM/Core/ClassLoader.php'
February 19, 2013, 01:23:07 pm

the full set of instructions in all its glory;

http://wiki.civicrm.org/confluence/display/CRMDOC42/Moving+an+Existing+Installation+to+a+New+Server+or+Location

Once u do it a few times, u can reduce it to a couple of steps. You can also override a few config variables in your civicrm.settings.php file, when i move stuff locally, i also do something like:

// override conf settings                                                                                                                 
global $civicrm_setting;
$civicrm_setting['Directory Preferences']['uploadDir'] = '/home/lobo/www/d7/sites/school/files/civicrm/upload/';
$civicrm_setting['Directory Preferences']['imageUploadDir'] = '/home/lobo/www/d7/sites/school/files/civicrm/upload/';
$civicrm_setting['Directory Preferences']['customFileUploadDir'] = '/home/lobo/www/d7/sites/school/files/civicrm/custom/';
$civicrm_setting['Directory Preferences']['extensionsDir'] = '/home/lobo/www/d7/extensions/';

$civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = 'http://school/sites/school/modules/civicrm/';

check:

http://wiki.civicrm.org/confluence/display/CRMDOC42/Override+Server+Directory+and+URL+Settings

lobo


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

cfusch

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.6.6
  • CMS version: Drupal 7.39
  • MySQL version: 5.6.23
  • PHP version: 5.4.38
Re: Fatal error: require_once(): Failed opening required 'CRM/Core/ClassLoader.php'
February 19, 2013, 05:08:43 pm
@Donald. Outstanding!  Thanks ... that was the cure!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal error: require_once(): Failed opening required 'CRM/Core/ClassLoader.php'

This forum was archived on 2017-11-26.