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

Custom PHP directory does not work in 4.7.x

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7.3
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      Although the custom PHP directory can be defined in the Admin > System > Directories menu, it does not appear to get 'scanned' and overridden files do not have any affect.

      Originally reported here: http://civicrm.stackexchange.com/questions/9800/upgrade-to-4-7-breaks-custom-php

      Offending lines: https://github.com/civicrm/civicrm-core/blob/0b62aee12a0ff3cb3faf35c0bbf0ffeaf225ed5c/CRM/Core/Config/Runtime.php#L138

      The customPHPPathDir is not set on $this, so it doesn't add the directory to the includes list.

      I wasn't sure how to 'load' that setting at this point, because a lot of the information required to load it hasn't been initialised yet?

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              john John K.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: