Fatal error: Interface 'Mailchimp\MailchimpApiInterface' not found in

Created on 19 March 2023, almost 2 years ago
Updated 22 September 2023, over 1 year ago

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.
πŸ› Bug report
Status

Active

Version

5.6

Component

General

Created by

πŸ‡ΊπŸ‡ΈUnited States lindsayalice.hoyt@gmail.com

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • πŸ‡ΊπŸ‡ΈUnited States torgosPizza Portland, OR

    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 hook_libraries_info() implementation. 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.

  • First commit to issue fork.
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 5.6 & MySQL 5.5
    last update over 1 year ago
    Build Successful
  • @bdimaggio opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States bdimaggio Boston, MA

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

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 5.6 & MySQL 5.5
    last update over 1 year ago
    Build Successful
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 5.6 & MySQL 5.5
    last update over 1 year ago
    Build Successful
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 5.6 & MySQL 5.5
    last update over 1 year ago
    Build Successful
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 5.6 & MySQL 5.5
    last update over 1 year ago
    Build Successful
  • πŸ‡ΊπŸ‡ΈUnited States bdimaggio Boston, MA

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

Production build 0.71.5 2024