Problem/Motivation

Enabled the latest version of the MailChimp module for Drupal 7, along with the latest version of the MailChimp library. Went to add my api key and receive the following error. None of the additional sub modules have been turned on at this time.

Error shown:

Fatal error: Interface 'Mailchimp\MailchimpApiInterface' not found in /code/sites/all/libraries/mailchimp/src/Mailchimp.php on line 15

Steps to reproduce

  1. Enabled the latest version of the MailChimp module for Drupal 7 ( mailchimp 7.x-5.6 ), along with the latest version of the MailChimp library ( v3.0.0-rc4 ).
  2. Ran the update script.
  3. Went to add the API key on '/admin/config/services/mailchimp' page.
  4. MailChimp settings page loads with the reported error.

Issue fork mailchimp-3348969

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

torgospizza’s picture

I'm running into this as well, and it looks like there are actually a few issues. Namely, the Drupal 7 version of the Mailchimp module is no longer in sync with the recent API changes in the Mailchimp 3.x library.

This issue in particular can be fixed by adding 'src/MailchimpApiInterface.php', to the top of its hook_libraries_info() implementation's files array. That will clear up the error in question.

Unfortunately there are quite a few more changes that will be need to made in order to bring this module in line with the Drupal 8+ versions. I'm hopeful that the maintainers will recognize that the Drupal 7 version is still in use on live sites, and with ours we really need the ability to tag Audience members / accounts for promotional marketing emails, so having the module updated would be a huge help. I'll try to create a new meta Issue with some of the tasks that I'm finding as I dig in to make the module compatible with the latest MC API Library.

bdimaggio made their first commit to this issue’s fork.

bdimaggio’s picture

@TorgosPizza, I just wanted to let you know we're working on this. I'm looking at a temporary fix where we just downgrade the required version of the Mailchimp API library, to get things working again while we do the heavier lifting of getting the D7 version working with that library's 3.x version. More on this today or tomorrow.

  • bdimaggio committed 1c37073c on 7.x-5.x
    Issue #3348969 by bdimaggio: Fatal error: Interface 'Mailchimp\...
bdimaggio’s picture

Okay, for the 7.x-5.x branch of this project, locking the required version of thinkshout/mailchimp-api-php at 2.1.3 (but allowing any version between 1.0.8 and 2.1.3, inclusive, so that people who are happy with version aren't forced to upgrade).