Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I'm strugling trying to install the module.
I'm using 7.x-4.4 module version, with mailchimp library 1.0.3 . (PHP 5.6)
I've run composer into my mailchimp library folder.
I get all my dependencies downloaded into my vendor folder.
I can see guzzle one.
But I still get error "The MailChimp PHP library is missing the required GuzzleHttp library. Please check the installation notes in README.txt."
Do someone know what i've missed ?
Can someone help me please?
Thank you.
Comments
Comment #2
Mo Omar CreditAttribution: Mo Omar commentedI am having the same issue. Did you solve it?
Comment #3
Perignon CreditAttribution: Perignon commentedAre you using Composer Manager? You cannot use Composer in Drupal 7 without 1)Composer Manager module 2) custom module to load composer files 3) hack core to load composer files.
Comment #4
Perignon CreditAttribution: Perignon commentedComment #5
NVaissaud CreditAttribution: NVaissaud commentedHello,
Installing Composer Manager module was the solution.
Thank you Perignon.
Comment #6
Perignon CreditAttribution: Perignon commentedNo problem!
Comment #8
Fonteijne CreditAttribution: Fonteijne at Synetic commentedFor anyone not wanting/able to use Composer:
Download:
https://github.com/thinkshout/mailchimp-api-php/releases/download/v1.0.5...
* Replace
sites/all/libraries/mailchimp
with the downloaded (unzipped) content.* Rename
v1.0.5-package
tomailchimp
* Make sure the file-permissions are set correctly
This mailchimp library includes the guzzlehttp library.
-- source: README.txt from the new MailChimp module.
Comment #9
gandel CreditAttribution: gandel commented#8 works for me Thank you Fonteijne
Comment #10
gcalex5 CreditAttribution: gcalex5 as a volunteer commentedHad the same issue, #8 fixes it for me. Though, the real issue for me I believe was .gitignore was excluding the vendor folder.
Comment #11
lephleg CreditAttribution: lephleg commentedThanks Fonteijne! #8 worked like a charm!
Comment #12
Serotonine CreditAttribution: Serotonine commentedThanks KRX ! you save my day !
Comment #13
catalina_ CreditAttribution: catalina_ commentedThanks #10! for me was the .gitignore.
Comment #14
bisonbleu CreditAttribution: bisonbleu commentedJust ran into this issue on Pantheon.io. Composer manager is the fix.
So running the
composer install
command in sites/all/libraries/mailchimp as suggested in the README was not the way to go in this case because the vendor directory created by Composer was not committed (silently) to Dev and this generated errors likeSo if your site is hosted on Pantheon, using composer_manager will consolidate all vendor directories @ sites/all/vendor which means all the downloaded requirements will properly be committed to Dev, Test and Live environments.
Comment #15
Greg BoggsYou can also use git add -f to add the vendor folder to your repository.
Comment #16
bisonbleu CreditAttribution: bisonbleu commentedThanks @Greg Boggs. Can you expand? Why is this required for vendor?
Knowing is good. Understanding is better :-)
Comment #17
Greg BoggsThis is standard composer practice. Vendor folders are in .gitignore so that you don't accidentally commit them to your git repository. However, in the case of Pantheon, you're using git as a deployment tool, and Pantheon does not support running composer. So, you either need to use an external tool like Circle CI to run composer install on deploy. Or, you just need to force add your dependencies for Pantheon because you are in a special case where you DO want your vendor dependencies. But, other folks not on special hosting don't do it this way because they would add many hundreds of megabytes of files to the repository.
Comment #18
bisonbleu CreditAttribution: bisonbleu commentedNow I Understand, thanks. Interesting.
So one way or another, when hosting on Pantheon and not using Circle CI or similar tool, one has no choice but to add the vendor directory to the repo. Is that it?
Comment #19
Greg BoggsYep. Even if you use Circle, Circle adds the vendor folder to the repo. Most folks dont' want it because they use Git to store their source code. But, Pantheon uses git to store the production website. So, it's a special case.
Comment #20
AlbionBrown CreditAttribution: AlbionBrown commentedI found a solution that might help people https://www.drupal.org/project/mailchimp/issues/2054037#comment-12789377