verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
95 stars 72 forks source link

Craft 5 official stripe plugin is incompatible with Formie #1783

Closed benfeather closed 6 months ago

benfeather commented 6 months ago

Describe the bug

Trying to install Formie on a fresh Craft 5 install with Craft Commerce and the official stripe plugin throws an error:

Error: The command "'/usr/bin/php' '/var/www/html/storage/runtime/composer.phar' 'update' 'craftcms/commerce-stripe' '--with-all-dependencies' '--working-dir' '/var/www/html' '--no-scripts' '--no-ansi' '--no-interaction'" failed.

Exit Code: 2(Misuse of shell builtins)

Working directory: /var/www/html/web

Output:
================

Error Output:
================
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- craftcms/commerce-stripe 5.0.0 requires stripe/stripe-php ^13.0 -> found stripe/stripe-php[v13.0.0, ..., v13.16.0-beta.1] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires craftcms/commerce-stripe 5.0.0 -> satisfiable by craftcms/commerce-stripe[5.0.0].

Steps to reproduce

  1. Create a fresh Craft 5 DDEV project
  2. Install craftcms/commerce
  3. Install craftcms/commerce-stripe
  4. Install verbb/formie

Form settings

N/A - Forms work correctly, this is a dependency issue.

Craft CMS version

5.0.0

Plugin version

3.0.0-beta.4

Multi-site?

Yes

Additional context

"craftcms/cms": "5.0.0",
"craftcms/commerce": "5.0.0-beta.1",
"craftcms/commerce-stripe": "5.0.0",
"verbb/formie": "3.0.0-beta.4",
engram-design commented 6 months ago

Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-5 as 3.0.0-beta.4".

benfeather commented 6 months ago

Works perfectly, thanks!