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

malformed error message causing fatal error in contact.php

    Details

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

      Description

      Fatal error: Cannot use string offset as an array in /var/www/civi/sites/all/modules/civicrm/CRM/Import/Parser/Contact.php on line 810

      The line of code in question
      $contactID = $newContact['error_message']['params'][0];

      Result of print_r($newContact); directly before said line:

      Array
      (
      [is_error] => 1
      [error_message] => No valid email address
      )

        Attachments

        1. 5622.csv
          0.0 kB
          Geoff Golder
        2. 5622-a.csv
          0.8 kB
          Geoff Golder

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              gdoteof Geoff Golder
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: