Dropdown group produces fatal error
-
Hi MailChimp Team,
I have set up a list with groups in MailChimp for which I wanted to use the plugin.
The plugin recognized the groups and automatically added a dropdown to the form.
The generated <select> is prepopulated with the available groups but also offers an empty <option> at top which is preselected.
Problem: When the empty <option> is selected and the form is submitted, this error occurs:
Fatal error: Cannot access empty property in …/wp-content/plugins/mailchimp/mailchimp.php on line 938I hotfixed the error with a check against empty($value) before the line, but now a user can subscribe without selecting a group. I’d love to have an error telling the user to select a group. Is this an unhandled edge case? Or did I set up my groups wrong?
Thanks for your help,
Ernesto
The topic ‘Dropdown group produces fatal error’ is closed to new replies.