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

Possible bug in DomainDump.php causing "malformed header from script" apache 500 error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Running CiviCRM 1.9.11960 on a relatively new mediatemple dedicated virtual server and ran into this error when clicking the "Backup Data" option in Admin:

      malformed header from script. Bad header=Content-Type Extension='.gz' C: index.php, referer: http://DOMAINOMITTED/civicrm/admin?reset=1

      I removed this line in CRM/Core/BAO/DomainDump.php:

      header("ContentType Extension='$ext' ContentType='$type'");

      And replaced it with:

      header("Content-Type: '$type'");

      Which seems to work fine. Dunno if there is some difference in Apache versions in play or not.

        Attachments

          Activity

            People

            • Assignee:
              junia Junia Biswas
              Reporter:
              jesse_idc Jesse Mortenson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: