After installing the latest 7.x-4.10 version, I get the following error.

The website encountered an unexpected error. Please try again later.

Error. Class '\Mailchimp\MailchimpConnectedSites' not found in mailchimp_get_api_object() (line 198 of /home/user/public_html/example.com/sites/all/modules/mailchimp/mailchimp.module).

Library Mailchimp API version is 1.0.5, which works for my previous Mailchimp version 7.x-4.9.

I had to revert back to 7.x-4.9. Any ideas what I can do to successfully install the update?

Comments

DrupalDavie created an issue. See original summary.

jerry’s picture

I'm seeing the same thing here.

samuel.mortenson’s picture

Assigned: Unassigned » samuel.mortenson

Thanks for the report. I'm working on this and will try to get a hotfix release out soon.

samuel.mortenson’s picture

@DrupalDavie Early detective work on this - it looks like the "MailchimpConnectedSites" class was added in the v1.0.9 release of the API, so a quick fix if you want to upgrade would be to upgrade your Mailchimp API version to v1.0.10 (the latest release). I'm looking into how complex a hotfix would be to prevent these problems.

samuel.mortenson’s picture

Status: Active » Needs review
StatusFileSize
new7.93 KB
new7.91 KB

This seems like a sensible fix - will see if tests pass.

samuel.mortenson’s picture

Status: Needs review » Fixed

I just rolled two new releases which should fix this problem, if you still run into issues after upgrading please let me know and re-open this issue:
https://www.drupal.org/project/mailchimp/releases/7.x-4.11
https://www.drupal.org/project/mailchimp/releases/7.x-5.4

DrupalDavie’s picture

The hot fix helped. Thank you! Now I am getting an error "Warning: count(): Parameter must be an array or an object that implements Countable in"

.... I am running php version 7.2.

rschwab’s picture

That resolved it without error on php 7.1.

samuel.mortenson’s picture

@DrupalDavie Would you mind opening a new issue for that warning? It's likely unrelated to the hotfix but may be in another issue committed between 4.9 and 4.10. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

DrupalDavie’s picture

No need to open a new issue. The hotfix resolved the issue. Thanks!