Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: undefined property: stdClass:$data in DrupalMailchimp->call() (line 86 of .... mailchimp.inc)
I get this sometimes while editing a user profile, this error comes along with another message inside the log:
An error occurred requesting memberinfo for somebody@email.com in list eeXXfXXXX. "MailChimp API call to lists/member-info failed: php_network_getaddresses: getaddrinfo failed: Name or service not known: "
Any ideas why I get this?
Thx
Comment | File | Size | Author |
---|---|---|---|
#3 | notice_undefined-2655064-3.patch | 857 bytes | helmo |
|
Comments
Comment #2
7thkey CreditAttribution: 7thkey as a volunteer commentedComment #3
helmo CreditAttribution: helmo at Initfour websolutions commentedThe notice is a bug ... the code expects a variable that's not set. This patch improves it.
However the real problem for you is DNS, it probably failed to resolve the IP of a mailchimp server.
Comment #4
joelstein CreditAttribution: joelstein commentedThanks for the patch. Something like this should be committed, because drupal_http_request() won't return an object containing the 'data' property if there was an error in the request.
Comment #5
ruscoe CreditAttribution: ruscoe at ThinkShout commentedWe're going to be ending support for the 7.x-3.x branch due to the upcoming deprecation of the v2.0 MailChimp API. If you're still seeing this issue with the most recent release, please feel free to reopen.