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

Sending test mailings causes Undefined index notices

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.6.12, 4.7.1
    • Fix Version/s: Unscheduled
    • Component/s: CiviMail
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      Similar behaviour experienced for test emails sent to individuals and groups.

      Steps to reproduce when sending test email to an individual:

      1. Go to Mailings > New Mailing, and fill out mailing details
      2. Add an email address under "Send test email to:"
      3. Click on Send test button

      Test email is sent, however php notices are left:

      Notice: Undefined index: status in CRM_Mailing_BAO_MailingJob::create() (line 65 of /home/demo-civicrm/public_html/sites/all/modules/civicrm/CRM/Mailing/BAO/MailingJob.php).
      Notice: Undefined index: scheduled_date in CRM_Mailing_BAO_MailingJob::create() (line 66 of /home/demo-civicrm/public_html/sites/all/modules/civicrm/CRM/Mailing/BAO/MailingJob.php).
      Notice: Undefined index: test_group in CRM_Mailing_BAO_Mailing->getTestRecipients() (line 919 of /home/demo-civicrm/public_html/sites/all/modules/civicrm/CRM/Mailing/BAO/Mailing.php).

      Steps to reproduce when sending test email to a group:

      1. Create a mailing list group and add at least one user
      2. Go to Mailings > New Mailing, and fill out mailing details
      3. Add an email address under "Send test email to group:"
      4. Click on Send test button

      Notices returned:

      Notice: Undefined index: status in CRM_Mailing_BAO_MailingJob::create() (line 65 of /home/demo-civicrm/public_html/sites/all/modules/civicrm/CRM/Mailing/BAO/MailingJob.php).
      Notice: Undefined index: scheduled_date in CRM_Mailing_BAO_MailingJob::create() (line 66 of /home/demo-civicrm/public_html/sites/all/modules/civicrm/CRM/Mailing/BAO/MailingJob.php).
      Notice: Undefined index: test_email in civicrm_api3_mailing_send_test() (line 593 of /home/demo-civicrm/public_html/sites/all/modules/civicrm/api/v3/Mailing.php).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              agileware Agileware
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: