craftcms / mailgun

Mailgun mailer adapter for Craft CMS.
https://plugins.craftcms.com/mailgun
MIT License
28 stars 8 forks source link

Unable to install on Craft 3.4.28 and Craft 3.5.1 #14

Closed alexagui closed 4 years ago

alexagui commented 4 years ago

Description

Your requirements could not be resolved to an installable set of packages.

Problem 1


We have a project that's in development and I was unable to install Mailgun plugin on Craft 3.4.28. I update the site to Craft 3.5.1 and still not able to install Mailgun.

williamhibberd commented 4 years ago

I am getting similar issues to the above. My error when running composer require craftcms/mailgun on Craft CMS 3.5.5

- Can only install one of: symfony/event-dispatcher[v4.4.0, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.1, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.10, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.11, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.2, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.3, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.4, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.5, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.6, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.7, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.8, v5.1.3].
- Can only install one of: symfony/event-dispatcher[v4.4.9, v5.1.3].
- Installation request for symfony/event-dispatcher (locked at v5.1.3) -> satisfiable by symfony/event-dispatcher[v5.1.3].
angrybrad commented 4 years ago

Not able to reproduce either of these on the latest 3.5.5. If you share your composer.json file, can help debug, though.

williamhibberd commented 4 years ago
  "require": {
    "clubstudioltd/craft-asset-rev": "^6.0",
    "craftcms/cms": "^3.4.25",
    "craftcms/commerce": "^3.2.0",
    "craftcms/commerce-stripe": "^2.1",
    "craftcms/contact-form": "^2.2",
    "craftcms/google-cloud": "^1.3",
    "craftcms/redactor": "^2.1",
    "croxton/imgixer": "^1.0",
    "ether/simplemap": "3.8.4.1",
    "nystudio107/craft-typogrify": "^1.1",
    "presseddigital/colorit": "1.0.9.3",
    "putyourlightson/craft-amazon-ses": "^1.3",
    "putyourlightson/craft-blitz": "^3.6",
    "putyourlightson/craft-campaign": "^1.15",
    "putyourlightson/craft-sendgrid": "^1.2",
    "putyourlightson/craft-sprig": "1.0.0-beta.10",
    "sebastianlenz/linkfield": "^1.0",
    "vaersaagod/seomate": "^1.1",
    "verbb/expanded-singles": "^1.0",
    "verbb/field-manager": "^2.0",
    "verbb/super-table": "^2.0",
    "vlucas/phpdotenv": "^3.4.0"
  },
  "require-dev": {
    "yiisoft/yii2-shell": "^2.0.3"
  },
  "autoload": {
    "psr-4": {
      "modules\\": "modules/"
    }
  },
  "config": {
    "sort-packages": true,
    "optimize-autoloader": true
  },
  "scripts": {
    "post-root-package-install": [
      "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ]
  }
}
angrybrad commented 4 years ago

Hrm... using your composer.json file I get this:

❯ composer require craftcms/mailgun
Using version ^1.4 for craftcms/mailgun
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 17 installs, 0 updates, 0 removals
  - Installing php-http/promise (v1.0.0): Downloading (100%)         
  - Installing php-http/httplug (v1.1.0): Downloading (100%)         
  - Installing php-http/guzzle6-adapter (v1.1.1): Downloading (100%)         
  - Installing symfony/http-foundation (v3.3.6): Downloading (100%)         
  - Installing symfony/http-kernel (v3.3.6): Downloading (100%)         
  - Installing symfony/dependency-injection (v3.3.6): Downloading (100%)         
  - Installing symfony/config (v3.3.6): Downloading (100%)         
  - Installing php-http/discovery (1.6.1): Downloading (100%)         
  - Installing symfony/options-resolver (v3.3.6): Downloading (100%)         
  - Installing clue/stream-filter (v1.4.1): Downloading (100%)         
  - Installing php-http/message-factory (v1.0.2): Downloading (100%)         
  - Installing php-http/message (1.7.2): Downloading (100%)         
  - Installing php-http/client-common (1.10.0): Downloading (100%)         
  - Installing php-http/multipart-stream-builder (1.0.0): Downloading (100%)         
  - Installing mailgun/mailgun-php (2.8.1): Downloading (100%)         
  - Installing cspoo/swiftmailer-mailgun-bundle (1.2.0): Downloading (100%)         
  - Installing craftcms/mailgun (1.4.3): Downloading (100%)         
symfony/http-kernel suggests installing symfony/browser-kit
symfony/http-kernel suggests installing symfony/class-loader
symfony/http-kernel suggests installing symfony/var-dumper
symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
php-http/discovery suggests installing puli/composer-plugin (Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.)
php-http/message suggests installing zendframework/zend-diactoros (Used with Diactoros Factories)
php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
php-http/client-common suggests installing php-http/logger-plugin (PSR-3 Logger plugin)
php-http/client-common suggests installing php-http/cache-plugin (PSR-6 Cache plugin)
php-http/client-common suggests installing php-http/stopwatch-plugin (Symfony Stopwatch plugin)
mailgun/mailgun-php suggests installing php-http/curl-client (cURL client for PHP-HTTP)
cspoo/swiftmailer-mailgun-bundle suggests installing azine/mailgunwebhooks-bundle (Allows to handle Mailgun event webhooks)
cspoo/swiftmailer-mailgun-bundle suggests installing php-http/httplug-bundle (To manage your http clients)
Package purplebooth/htmlstrip is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files

~/dev/support/craft3a.support.test 42s
❯ 

Maybe nuke your vendor folder, composer.lock file, run composer clear-caches and try again?

williamhibberd commented 4 years ago

Thanks @angrybrad that fixed it for me. Must remember composer clear-cache for next time.

eoa1903 commented 3 years ago

For some reason, i can't install mailgun on my craft 3.6.4

$ composer require craftcms/mailgun Using version ^1.4 for craftcms/mailgun ./composer.json has been updated Running composer update craftcms/mailgun Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

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

angrybrad commented 3 years ago

@eoa1903 please send a copy of your composer.json and composer.lock files over to support@craftcms.com and we can look into this further.

alexagui commented 3 years ago

I ran into this again, so for future me.

  1. rm -rf vendor composer.lock
  2. composer clear-cache
  3. composer require craftcms/mailgun
internetztube commented 3 years ago

WOW, that worked. Many thanks, @alexagui!