Hello,

I'm trying to get mailchimp to work on a new install. I have

* downloaded and extracted the latest v1.0.2.zip of the API v3,
* run composer install in the sites/all/libraries/mailchimp directory
* discovered that GuzzleHttp wasn't fetched, so run composer require guzzlehttp/guzzle:~6.0

and now I get the "Fatal error: Class '\Mailchimp\Mailchimp' not found in ... sites/all/modules/mailchimp/mailchimp.module on line 153" error.

I have a vaild API and have used that. I have also downloaded a second copy of the library as per another post, but no joy.

Your assistance and/or insights would be greatly appreciated.

Dan

Comments

dantodd created an issue. See original summary.

Perignon’s picture

You must use Composer Manager or install the dependencies manually and load the Mailchimp API with Libraries. You cannot use composer directly, it will not work. This is because Drupal 7, without Composer Manger, has no clue how to load code that is in composer.json's

D8 now understands composer.json's in module files.

Perignon’s picture

Status: Active » Closed (fixed)