Problem/Motivation

Installing drupal/mailchimp version 2 with composer results in "Failed to load Mailchimp PHP library". All dependencies have been automatically downloaded into the vendor folder (including thinkshout/mailchimp-api-php).

Steps to reproduce

Drupal 8.9.15
PHP 7.4.8
Composer 1.10.22
Mailchimp (Drupal) 2.0.2

composer require 'drupal/mailchimp:^2.0'

drush cr

Enable mailchimp.

drush cr

Navigate to /admin/config/services/mailchimp

Error message - Failed to load Mailchimp PHP library. Please refer to the installation requirements.

CommentFileSizeAuthor
#3 3219326.patch625 bytesspncr

Comments

mistergroove created an issue. See original summary.

mistergroove’s picture

This issue has gone away now I've set the API Key and cleared the cache. Wondering if a missing API key would give a 'Failed to load Mailchimp PHP library' error?

spncr’s picture

Priority: Major » Minor
Status: Active » Needs review
StatusFileSize
new625 bytes

Nice job figuring this one out!

Here is a patch that adds the API key suggestion to that error message.

mistergroove’s picture

Thanks @spnr. Spent a good while going around in circles with that one - uninstalling, reinstalling, clearing caches.

ash2303’s picture

gcb’s picture

Status: Needs review » Closed (duplicate)

Yep, @ash2303, that's the same thing from a different angle. I like yours as it is closer to the root source. marking this duplicate and closing.