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

Incorrect documentation for some settings in civicrm.settings.php

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.20, 4.7.10
    • Fix Version/s: 4.7.12
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      In templates/CRM/common/civicrm.settings.php.template we have:

       // Override the Temporary Files directory.
       // $civicrm_setting['Directory Preferences']['customFileUploadDir'] = '/path/to/upload';
      
       // Override the custom files upload directory.
       // $civicrm_setting['Directory Preferences']['uploadDir'] = '/path/to/upload-dir' ;
      

      I'm pretty sure that the descriptions are inverted for these two settings. Since uploadDir gets purged on cache clears, whereas customFileUploadDir is intended to persist and contain user-uploaded files (e.g., attachments to cases), this confusion could lead to data loss.

        Attachments

          Activity

            People

            • Assignee:
              ergonlogic Christopher Gervais
              Reporter:
              ergonlogic Christopher Gervais
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: