Receiving the following warning message when a default Interest Group is specified on the subscribe page (form).

warning: htmlspecialchars() expects parameter 1 to be string, array given in /mysite/includes/bootstrap.inc on line 860.
warning: htmlspecialchars() expects parameter 1 to be string, array given in /mysite/includes/bootstrap.inc on line 860.

Comments

larsdesigns’s picture

Fixed the issue by implementing array_shift to retrieve the default value from the $grouping['groups'] array.

larsdesigns’s picture

Status: Needs work » Needs review

Tested my patch some more and it is working well.
--author="larsdesigns " :-)

larsdesigns’s picture

Another adjustment. Default should be null and remain null if the default is not provided from _mailchimp_explode_interest_groups().

nrackleff’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

“And now our watch [for support of the 6.x version of the MailChimp module] has ended…” With the end of Drupal 6 support, I’m sad to say we too must turn the page.

Fret not! The 7.x-4.x and 8.x versions come highly recommended. Both are using Mailchimp’s new API 3.0 and are being actively maintained. “What is dead may never die, but rises again, harder and stronger!”