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

_civicrm_registerClassLoader() should store a relative path

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.6
    • Fix Version/s: 4.4.11, 4.5
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      https://issues.civicrm.org/jira/browse/CRM-13737 introduced a Drupal variable 'civicrm_class_loader' to cache the physical path of the class loader.

      This has caused problems when restoring site backups to with a different physical path structure. See http://forum.civicrm.org/index.php/topic,31366.msg134439.html and https://issues.civicrm.org/jira/browse/CRM-14186. In my case, the presence of this variable resulted in a WSOD site and where drush cannot even bootstrap. I had to manually clear the 'civicrm_class_loader' from the variables table, plus clear the 'variables' row of the cache table.

      These problems are avoided by modifying _civicrm_registerClassLoader() to store a relative path rather than the physical path.

        Attachments

          Activity

            People

            • Assignee:
              atif.shaikh Atif Shaikh
              Reporter:
              keith@wellebee.com Keith Morgan
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: