Composer install of 2.2.0 fails on Drupal 10.0.5 w/o prior MailChimp

Created on 22 March 2023, over 1 year ago
Updated 29 June 2023, 12 months ago

Problem/Motivation

Cannot perform composer install

Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update drupal/mailchimp
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/mailchimp ^2.2 -> satisfiable by drupal/mailchimp[2.2.0].
    - drupal/mailchimp 2.2.0 requires thinkshout/mailchimp-api-php 3.0.0-rc4 -> found thinkshout/mailchimp-api-php[3.0.0-rc4] but it does not match your minimum-stability.


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Steps to reproduce

Run composer require 'drupal/mailchimp:^2.2'

πŸ› Bug report
Status

Fixed

Version

2.2

Component

General

Created by

πŸ‡ΊπŸ‡ΈUnited States craigkendall

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

Comments & Activities

  • Issue created by @craigkendall
  • πŸ‡ΊπŸ‡ΈUnited States craigkendall
  • πŸ‡ΊπŸ‡ΈUnited States schiavone

    Ran into the same thing. Run

    composer require thinkshout/mailchimp-api-php:^3.0.0-rc4

    First then install with

    composer require 'drupal/mailchimp:^2.2'

    Success!

  • πŸ‡ΊπŸ‡¦Ukraine Themetis

    Stuck with the same problem as the author, but while updating Mailchimp 2.0.2 module to 2.2. on Drupal 9.5.7. Trying to update "mailchimp API" first, as suggested by the @schiavone but getting a slightly different error:

    composer require thinkshout/mailchimp-api-php:^3.0.0-rc4
    
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires thinkshout/mailchimp-api-php ^3.0.0-rc4, found thinkshout/mailchimp-api-php[3.0.0-rc4] but these were not loaded, likely because it conflicts with another require.
      Problem 2
        - drupal/mailchimp is locked to version 2.0.2 and an update of this package was not requested.
        - drupal/mailchimp 2.0.2 requires thinkshout/mailchimp-api-php ^2.0 -> found thinkshout/mailchimp-api-php[2.0.0, ..., v2.1.3] but it conflicts with your root composer.json require (^3.0.0-rc4).
    

    Any ideas on how to solve this?

  • πŸ‡³πŸ‡ΏNew Zealand glennnz

    I'm getting:

    The website encountered an unexpected error. Please try again later.
    Error: Class "\Mailchimp\Mailchimp" not found in Drupal\mailchimp\ClientFactory->createInstance() (line 154 of modules/contrib/mailchimp/src/ClientFactory.php).

    While trying a fresh install on 9.5.7, using Composer

  • Status changed to Fixed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States aprice42

    I believe the latest release should resolve your issue. I was able to install without issue on a fresh d10 site install. If you still have a problem, can you provide steps to reproduce?

  • πŸ‡¨πŸ‡¦Canada kiwad

    I had same as #4 on old install, i had thinkshout in composer.

    Did

    composer remove thinkshout/mailchimp-api-php

    Then

    composer require 'drupal/mailchimp:^2.2' -W

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed 12 months ago
  • πŸ‡ΊπŸ‡¦Ukraine Themetis

    Confirming successful update to the latest version of Mailchimp 2.2.2 on Drupal 9.5.9

Production build 0.69.0 2024