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

PHP warnings on search builder/export

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.7.6
    • Fix Version/s: Unscheduled
    • Component/s: CiviCRM Search
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      To reproduce:

      • Go to "Search > Search Builder" (I think there's a notice or warning here but I didn't capture it)
      • Enter some criteria, e.g.: "Contacts Street IS NOT NULL"
      • Select Records: All X records
      • Click "Actions > Export contacts"
      • Click "Select fields for export"
      • Click "Continue"

      Throughout this process, PHP notices appear:

      Warning: asort() expects parameter 1 to be array, null given in /path/to/civicrm/CRM/Core/BAO/Mapping.php on line 609

      Warning: Invalid argument supplied for foreach() in /path/to/civicrm/CRM/Core/BAO/Mapping.php on line 620

      If the server is displaying notices, which of course it shouldn't be, page rendering will break. Example: Select some criteria and click "Export."

      Warning: asort() expects parameter 1 to be array, null given in /path/to/civicrm/CRM/Core/BAO/Mapping.php on line 609

      Warning: Invalid argument supplied for foreach() in /path/to/civicrm/CRM/Core/BAO/Mapping.php on line 620

      Warning: Cannot modify header information - headers already sent by (output started at /path/to/CRM/Core/BAO/Mapping.php:609) in /path/to/civicrm/CRM/Utils/System/Base.php on line 895

        Attachments

          Activity

            People

            • Assignee:
              pittstains Frank J. Gómez
              Reporter:
              pittstains Frank J. Gómez
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified