Answers.Body: <p>Turns out the &quot;auto-renew&quot; option has been cleaned up for all membership types while the latest upgrade, not sure why. Had to re-enable for each membership type at civicrm/admin/member/membershipType?reset=1</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-22T12:33:34.090Z
Answers.LastActivityDate: 2024-01-22T12:33:34.090Z
Answers.UserDisplayName: yurg
Body: <p><em><strong>Drupal 7, CiviCRM 5.69.2, PHP 7.4, Smarty 2.</strong></em></p>
  <p>While trying to access a contribution page at /civicrm/contribute/transact?reset=1&amp;id=9 got an unexpected:</p>
  <pre><code>&gt; TypeError: Return value of CRM_Contribute_Form_Contribution_Main::getConfiguredAutoRenewOptionForMembershipType()
  &gt; must be of the type int, null returned in CRM_Contribute_Form_Contribution_Main-&gt;getConfiguredAutoRenewOptionForMembershipType()
  &gt; (line 1863 of /srv/www/public_html/sites/all/modules/contrib/civicrm/CRM/Contribute/Form/Contribution/Main.php).
  </code></pre>
  
Tags: <upgrade><drupal-7>
Title: TypeError:Return value of CRM_Contribute_Form_Contribution_Main::getConfiguredAutoRenewOptionForMembershipType() must be of the type int,null returned
ThreadText: # TypeError:Return value of CRM_Contribute_Form_Contribution_Main::getConfiguredAutoRenewOptionForMembershipType() must be of the type int,null returned
  
  (Asked by: username_0 on 2024-01-22)
  
  ***Drupal 7, CiviCRM 5.69.2, PHP 7.4, Smarty 2.***
  
  While trying to access a contribution page at /civicrm/contribute/transact?reset=1&id=9 got an unexpected:
  
  ```
  > TypeError: Return value of CRM_Contribute_Form_Contribution_Main::getConfiguredAutoRenewOptionForMembershipType()
  > must be of the type int, null returned in CRM_Contribute_Form_Contribution_Main->getConfiguredAutoRenewOptionForMembershipType()
  > (line 1863 of /srv/www/public_html/sites/all/modules/contrib/civicrm/CRM/Contribute/Form/Contribution/Main.php).
  
  ```
  
  **Tags:** upgrade, drupal-7
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2024-01-22. Score: 0 | Accepted answer
  
  Turns out the "auto-renew" option has been cleaned up for all membership types while the latest upgrade, not sure why. Had to re-enable for each membership type at civicrm/admin/member/membershipType?reset=1
  
  
  ---
  
  