Undefined index: auto-renew
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.