Answers.Body: <p>Aivars,</p>
  
  <p>Have logged an issue for this in CiviCRM <a href="https://lab.civicrm.org/dev/core/issues/837" rel="nofollow noreferrer">here</a> and submitted a <a href="https://github.com/civicrm/civicrm-core/pull/13921" rel="nofollow noreferrer">PR</a> for this fix. Can you please test by applying patch from <a href="https://patch-diff.githubusercontent.com/raw/civicrm/civicrm-core/pull/13921.patch" rel="nofollow noreferrer">here</a>? If it works for you than please add a comment on PR which will help to get this fix in core and have it available in next release.</p>
  
  <p>Cheers</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-07T15:32:36.867Z
Answers.Text: Indeed, the notices have disappeared with this patch.
Answers.UserDisplayName: Aivars
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-30T19:21:29.587Z
Answers.LastActivityDate: 2019-03-30T19:21:29.587Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>Those are php notices. It looks like you are running drupal so see this answer <a href="https://stackoverflow.com/a/6363323/8332458">https://stackoverflow.com/a/6363323/8332458</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-30T18:27:29.310Z
Answers.LastActivityDate: 2019-03-30T18:27:29.310Z
Answers.UserDisplayName: Demerit
Body: <p>When I try to <strong>Update Smart Group Counts</strong> in Manage Groups, the CiviCRM provides me with numerous notices. </p>
  
  <p>What is wrong and where do I fix that?</p>
  
  <pre><code>Notice: Undefined index: contribution_date_relative in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 204 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_low in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 205 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_high in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 206 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_relative in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 204 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_low in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 205 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_high in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 206 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_relative in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 204 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_low in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 205 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_high in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 206 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_relative in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 204 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_low in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 205 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_high in CRM_Contact_Form_Search_Custom_ContributionAggregate-&gt;where() (line 206 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  </code></pre>
  
Tags: <smartgroups><issues>
Title: How to fix Undefined index notice in contribution_date_relative?
ThreadText: # How to fix Undefined index notice in contribution_date_relative?
  
  (Asked by: username_0 on 2019-03-30)
  
  When I try to **Update Smart Group Counts** in Manage Groups, the CiviCRM provides me with numerous notices.
  
  What is wrong and where do I fix that?
  
  ```
  Notice: Undefined index: contribution_date_relative in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 204 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_low in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 205 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_high in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 206 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_relative in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 204 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_low in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 205 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_high in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 206 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_relative in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 204 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_low in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 205 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_high in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 206 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_relative in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 204 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_low in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 205 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  Notice: Undefined index: contribution_date_high in CRM_Contact_Form_Search_Custom_ContributionAggregate->where() (line 206 of /crm/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/ContributionAggregate.php).
  
  ```
  
  **Tags:** smartgroups, issues
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-03-30. Score: 1 | Accepted answer
  
  username_0,
  
  Have logged an issue for this in CiviCRM [here](https://lab.civicrm.org/dev/core/issues/837) and submitted a [PR](https://github.com/civicrm/civicrm-core/pull/13921) for this fix. Can you please test by applying patch from [here](https://patch-diff.githubusercontent.com/raw/civicrm/civicrm-core/pull/13921.patch)? If it works for you than please add a comment on PR which will help to get this fix in core and have it available in next release.
  
  Cheers
  
  username_1
  
  > **Comments:**
  > **username_0**: Indeed, the notices have disappeared with this patch.  
  
  ---
  
  ### Answer by username_2 on 2019-03-30. Score: 0
  
  Those are php notices. It looks like you are running drupal so see this answer <https://stackoverflow.com/a/6363323/8332458>
  
  
  ---
  
  