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.
Problem:
When no API key is entered, on user profile page I get fatal error.
Proposed solution:
Add validation, if mailchimp_get_api_object() function returns object or not.
Comments
Comment #1
CountPacMan CreditAttribution: CountPacMan at ThinkShout commentedTo clarify, this is before entering an API key? Right after enabling the module for the first time?
Comment #2
mirom CreditAttribution: mirom at i-KOS commentedyes
Comment #3
CountPacMan CreditAttribution: CountPacMan at ThinkShout commentedWhat version of the Libraries module are you using? Have you installed the MailChimp API Library?
Comment #4
mirom CreditAttribution: mirom at i-KOS commentedLibraries version is 7.x-2.2, Mailchimp API Library is of course installed.
Comment #5
ruscoe CreditAttribution: ruscoe as a volunteer 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 for the 7.x-4.x branch.