Answers.Body: <p>I'm using drupal with civiCRM and got the same error [failed to open require_once CRM/Core/ClassLoader.php].
  I made the following changes to solve it.</p>
  <p>In your civicrm.settings.php if you have</p>
  <pre><code>require_once 'CRM/Core/ClassLoader.php';
  </code></pre>
  <p>Change it by adding &quot;civicrm_root&quot; variable</p>
  <pre><code>require_once $civicrm_root . '/CRM/Core/ClassLoader.php';
  </code></pre>
  <p>This is assuming that somewhere in that file, you have already set the &quot;$civicrm_root&quot; variable to point to your civiCRM install directory such as</p>
  <pre><code>$civicrm_root = '/var/www/html/drupal-root/vendor/civicrm/civicrm-core';
  </code></pre>
  <p>Note: my path might be different as I'm using composer to install civiCRM</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-09T19:53:18.983Z
Answers.LastActivityDate: 2020-11-09T19:53:18.983Z
Answers.UserDisplayName: salah-1
Body: <p>PHP Error: require_once(): Failed opening required 'CRM/Core/ClassLoader.php' (include_path='.:/buildkit/build/dmaster/web/sites/all/modules/civicrm/:/buildkit/build/dmaster/web/sites/all/modules/civicrm//packages:.:')
  at line 552 in /Users/apple/Work/Gsoc/Opensrc/civicrm-buildkit-docker/build/dmaster/web/sites/default/civicrm.settings.php</p>
  
  <p>This is the complete error i am getting.
  For this i changes the path in civicrm.setting.php '''$civicrm_root ='/Users/apple/Work/Gsoc/civicrm/civicrm-buildkit-docker/build/dmaster/web/sites/all/modules/civicrm';''' even then i am getting the same error.
  Please help me out.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-12T14:34:52.133Z
Comments.Text: Welcome to Stack Exchange! This is a commonly-asked question here.  Can you edit your question to indicate what you've already tried?
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <mosaico><integration>
Title: Error: require_once(): Failed opening required 'CRM/Core/ClassLoader.php'
ThreadText: # Error: require_once(): Failed opening required 'CRM/Core/ClassLoader.php'
  
  (Asked by: username_0 on 2020-03-12)
  
  PHP Error: require\_once(): Failed opening required 'CRM/Core/ClassLoader.php' (include\_path='.:/buildkit/build/dmaster/web/sites/all/modules/civicrm/:/buildkit/build/dmaster/web/sites/all/modules/civicrm//packages:.:')
  at line 552 in /Users/apple/Work/Gsoc/Opensrc/civicrm-buildkit-docker/build/dmaster/web/sites/default/civicrm.settings.php
  
  This is the complete error i am getting.
  For this i changes the path in civicrm.setting.php '''$civicrm\_root ='/Users/apple/Work/Gsoc/civicrm/civicrm-buildkit-docker/build/dmaster/web/sites/all/modules/civicrm';''' even then i am getting the same error.
  Please help me out.
  
  **Tags:** mosaico, integration
  
  > **Comments:**
  > **username_1**: Welcome to Stack Exchange! This is a commonly-asked question here.  Can you edit your question to indicate what you've already tried?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-11-09. Score: 2
  
  I'm using drupal with civiCRM and got the same error [failed to open require_once CRM/Core/ClassLoader.php].
  I made the following changes to solve it.
  In your civicrm.settings.php if you have
  require_once 'CRM/Core/ClassLoader.php';
  
  Change it by adding "civicrm_root" variable
  require_once $civicrm_root . '/CRM/Core/ClassLoader.php';
  
  This is assuming that somewhere in that file, you have already set the "$civicrm_root" variable to point to your civiCRM install directory such as
  $civicrm_root = '/var/www/html/drupal-root/vendor/civicrm/civicrm-core';
  
  Note: my path might be different as I'm using composer to install civiCRM
  
  
  ---
  
  