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?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3022227-4.x-5.patch | 7.91 KB | samuel.mortenson |
| #5 | 3022227-5.x-5.patch | 7.93 KB | samuel.mortenson |
Comments
Comment #2
jerry commentedI'm seeing the same thing here.
Comment #3
samuel.mortensonThanks for the report. I'm working on this and will try to get a hotfix release out soon.
Comment #4
samuel.mortenson@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.
Comment #5
samuel.mortensonThis seems like a sensible fix - will see if tests pass.
Comment #8
samuel.mortensonI 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
Comment #9
DrupalDavie commentedThe 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.
Comment #10
rschwab commentedThat resolved it without error on php 7.1.
Comment #11
samuel.mortenson@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!
Comment #13
DrupalDavie commentedNo need to open a new issue. The hotfix resolved the issue. Thanks!