Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11473

ClassLoader snippet suggestion does not work

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.2.6
    • Fix Version/s: 4.3.0
    • Labels:
      None

      Description

      I was much happier with this line:
      <pre>
      require_once drupal_get_path('module', 'civicrm') . '/../CRM/Core/ClassLoader.php';
      </pre>

      The issue is that during installation, module enable, and upgrade, civicrm.settings.php gets loaded when civicrm has not been initialized, and is therefore not in the include path.

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              adamw Adam Wight
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: