Answers.Body: <p>For a quick fix, change <code>$memType['auto_renew']</code> to <code>($memType['auto_renew'] ?? 0)</code> for the first one, and</p>
  <p>change <code>$membershiptTypeValue['auto_renew']</code> to <code>!empty($membershiptTypeValue['auto_renew'])</code> for the second one.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-22T22:38:58.713Z
Answers.LastActivityDate: 2020-11-22T22:38:58.713Z
Answers.UserDisplayName: Demerit
Body: <p>Upon opening contribution page, we get the following PhP errors showing ABOVE the contribution pages.
  See <a href="https://jgsny.org/membership-privileges/join-civi" rel="nofollow noreferrer">JGSNY Contribution Page</a></p>
  <p><strong>Notice: Undefined index: auto_renew in /home/jgsny/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Form/ContributionBase.php on line 1244</strong></p>
  <p>ALSO:</p>
  <p><strong>Notice: Undefined index: auto_renew in /home/jgsny/public_html/administrator/components/com_civicrm/civicrm/CRM/Price/BAO/PriceSet.php on line 847</strong></p>
  <p>Auto-renewal options are off for all contribution pages; database tables have indexes on all relevant pages. Civicrm status shows OK.</p>
  <p>Quick answers appreciated - this is membership renewal time and must have membership renewal form working.</p>
  <p>Thanks,
  Kate</p>
  
Tags: <civicontribute><civimember>
Title: Undefined index: auto-renew
ThreadText: # Undefined index: auto-renew
  
  (Asked by: username_0 on 2020-11-22)
  
  Upon opening contribution page, we get the following PhP errors showing ABOVE the contribution pages.
  See [JGSNY Contribution Page](https://jgsny.org/membership-privileges/join-civi)
  
  **Notice: Undefined index: auto\_renew in /home/jgsny/public\_html/administrator/components/com\_civicrm/civicrm/CRM/Contribute/Form/ContributionBase.php on line 1244**
  
  ALSO:
  
  **Notice: Undefined index: auto\_renew in /home/jgsny/public\_html/administrator/components/com\_civicrm/civicrm/CRM/Price/BAO/PriceSet.php on line 847**
  
  Auto-renewal options are off for all contribution pages; database tables have indexes on all relevant pages. Civicrm status shows OK.
  
  Quick answers appreciated - this is membership renewal time and must have membership renewal form working.
  
  Thanks,
  Kate
  
  **Tags:** civicontribute, civimember
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-11-22. Score: 1
  
  For a quick fix, change `$memType['auto_renew']` to `($memType['auto_renew'] ?? 0)` for the first one, and
  
  change `$membershiptTypeValue['auto_renew']` to `!empty($membershiptTypeValue['auto_renew'])` for the second one.
  
  
  ---
  
  