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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

7thkey created an issue. See original summary.

7thkey’s picture

Issue summary: View changes
helmo’s picture

Status: Active » Needs review
FileSize
857 bytes

The 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.

joelstein’s picture

Status: Needs review » Reviewed & tested by the community

Thanks 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.

ruscoe’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

We'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.