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

Importing incorrect data can result in PHP fatal error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.7
    • Fix Version/s: 4.7.9
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      How to reproduce:

      • import contributions as a non-admin user (who does not have "Administer CiviCRM" permissions)
      • make sure one entry has an invalid Financial Type
      • on PHP 5.6, this will result in a fatal error.

      PHP Fatal error: Cannot unset string offsets in /var/aegir/platforms/civicrm-4.7/sites/all/modules/civicrm/api/v3/utils.php on line 142, referer: https://example.org/civicrm/contribute/import?_qf_Preview_display=true&qfKey=[...]

        Attachments

          Activity

            People

            • Assignee:
              mlutfy Mathieu Lutfy
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: