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

config will only not load missing settings from setting table / over-rides unless it is NULL

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.4.5
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      Steps
      1) instantiate a domain / site - set customUploadDir through php overrides in the settings file
      2) ensure the customUploadDir is not set on the $config object
      3) if the customUploadDir is defined in a setting OR php override but not in the $config object you will see
      "Check Settings
      customFileUploadDir has an incorrect directory path. Please go to the path setting page and correct it."

      The reason being the code to load settings from settings is only called if NO config variables are set
      https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/Config.php#L448

      The particular item is a bit edge case / hard to define many situations where it would arise - but the general problem - config items not necessarily loading from settings into the prefetch object is likely to cause other unpredictable behaviours

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                eileen Eileen McNaughton
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: