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

Eliminate/replace call to function mime_content_type()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.3
    • Fix Version/s: 4.4.0
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      When attempting to export a financial batch to either CSV or IIF format, I get the following error:

      Fatal error: Call to undefined function mime_content_type() in /home/dev18/public_html/sites/all/modules/civicrm/CRM/Financial/BAO/ExportFormat.php on line 138

      ( The URL to the page is: http://mygroup.org/civicrm/financial/batch/export?batch_id=4&export_format=CSV&reset=1 )

      Looks like a similar issue occurred with Drush, as the function "mime_content_type" has been deprecated, and is no longer shipped with some builds of PHP 5.3. That solution is documented at: http://drupal.org/node/1458416

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              sgladstone Sarah Gladstone
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h