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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3219326.patch | 625 bytes | spncr |
Comments
Comment #2
mistergroove commentedThis 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?
Comment #3
spncr commentedNice job figuring this one out!
Here is a patch that adds the API key suggestion to that error message.
Comment #4
mistergroove commentedThanks @spnr. Spent a good while going around in circles with that one - uninstalling, reinstalling, clearing caches.
Comment #5
ash2303 commented@spncr How about this issue? https://www.drupal.org/project/mailchimp/issues/3214737
Comment #6
gcbYep, @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.