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

Import / Contacts gets wrong max upload file size (doesn't use singleton CRM_Core_Config object)

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6
    • Component/s: None
    • Labels:
      None

      Description

      The Import / Contacts wizard always reports the maximum file upload size as 1Mb, regardless
      of what's in the php.ini file. The problem seems to be that CRM/Core/Config.php uses

      $config =& new CRM_Core_Config();

      instead of

      $config =& CRM_Core_Config::singleton();

      There are several other files where the the singleton is not used.

      CRM/Contribute/Import/Form/UploadFile.php
      CRM/Core/BAO/DomainDump.php
      CRM/History/Import/Form/UploadFile.php
      CRM/Import/Form/UploadFile.php
      CRM/Member/Import/Form/UploadFile.php
      CRM/Utils/Address/USPS.php

        Attachments

          Activity

            People

            • Assignee:
              rupam Rupam Jaiswal
              Reporter:
              djerius Diab Jerius
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: