hybridinteractive / craft-contact-form-extensions

Adds extensions to the Craft CMS contact form plugin.
MIT License
43 stars 36 forks source link

Composer errors when trying to upgrade from 1.2.4 to 1.2.5 #120

Closed hatchcurtis closed 3 years ago

hatchcurtis commented 3 years ago

Here is the error I received when trying to upgrade the plugin from 1.2.4 to 1.2.5.

`Output:

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

Problem 1

Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.

`

I have tried to do 'composer update' and also tried to remove composer.lock and vendor folder and run 'composer install' again but none of these fix the issues.

DynamiteGoesBoom commented 3 years ago

@hatchcurtis It sounds like you might be having the same issue as #116.

thunder87 commented 3 years ago

Same issue here, changing php version in composer does not change anything.

rosskenney commented 3 years ago

@hatchcurtis if you could include your composer.json file that would be very helpful in recreating this. thanks

thunder87 commented 3 years ago

{ "require": { "craftcms/cms": "3.7.9", "craftcms/redactor": "2.8.8", "craftcms/contact-form": "^2.2", "vlucas/phpdotenv": "3.6.8", "verbb/expanded-singles": "1.1.4", "nystudio107/craft-seomatic": "3.3.48", "vaersaagod/dospaces": "1.1.3", "aelvan/inlin": "^2.1", "aelvan/imager": "^2.1", "mmikkel/retcon": "2.2.3", "dolphiq/redirect": "dev-master", "sebastianlenz/linkfield": "1.0.25", "clubstudioltd/craft-asset-rev": "^6.0", "barrelstrength/sprout-encode-email": "^2.0.5", "craftcms/mailgun": "^1.4", "craftcms/element-api": "2.7.0", "youandmedigital/breadcrumb": "^1.0", "aelvan/mailchimp-subscribe": "3.0.3", "superbig/craft3-bugsnag": "^2.0", "ext-json": "*", "jalendport/craft-queuemanager": "^1.2", "hybridinteractive/craft-contact-form-extensions": "1.2.4", "besteadfast/craft-preparse-field": "1.2.5", "ryssbowh/craft-warmer": "^1.0" }, "autoload": { "psr-4": {} }, "repositories": [], "config": { "optimize-autoloader": true, "platform": { "php": "7.4" } }, "scripts": { "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ] } }

hatchcurtis commented 3 years ago

@hatchcurtis if you could include your composer.json file that would be very helpful in recreating this. thanks

here you go:

{ "require": { "craftcms/cms": "3.7.8", "vlucas/phpdotenv": "^2.4.0", "nystudio107/craft-twigpack": "1.2.15", "ether/seo": "3.7.4", "craftcms/contact-form": "2.2.7", "spicyweb/craft-embedded-assets": "2.8.0", "craftcms/redactor": "2.8.8", "aelvan/mailchimp-subscribe": "3.0.3", "verbb/super-table": "2.6.8", "craftcms/aws-s3": "1.2.15", "hybridinteractive/craft-contact-form-extensions": "1.2.4", "hybridinteractive/craft-position-fieldtype": "1.0.17", "stripe/stripe-php": "^7.76" }, "autoload": { "psr-4": { "modules\": "modules/" } }, "scripts": { "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-update-cmd": [ "@php craft migrate/all", "@php craft project-config/apply", "@php craft clear-caches/all" ], "post-install-cmd": [ "@php craft migrate/all", "@php craft project-config/apply", "@php craft clear-caches/all" ] } }

rosskenney commented 3 years ago

Sorry I didn't catch this originally, but it doesn't look like this is an issue with this plugin, but rather an issue with the aelvan/mailchimp plugin. see the last lines that normally point to the plugin that is having the issues with requirements.

rosskenney commented 3 years ago

I also ran a fresh install and am using php7.4. I did not run into an issue with an install or an upgrade from 1.24 to 1.25.

See output.

➜ bugtest composer i No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information. Loading composer repositories with package information Updating dependencies Lock file operations: 106 installs, 0 updates, 0 removals

I used @hatchcurtis composer.json

{ "require": { "aelvan/mailchimp-subscribe": "3.0.3", "craftcms/aws-s3": "1.2.15", "craftcms/cms": "3.7.8", "craftcms/contact-form": "2.2.7", "craftcms/redactor": "2.8.8", "ether/seo": "3.7.4", "hybridinteractive/craft-contact-form-extensions": "1.2.5", "hybridinteractive/craft-position-fieldtype": "1.0.17", "nystudio107/craft-twigpack": "1.2.15", "spicyweb/craft-embedded-assets": "2.8.0", "stripe/stripe-php": "^7.76", "verbb/super-table": "2.6.8", "vlucas/phpdotenv": "^2.4.0" }, "autoload": { "psr-4": { "modules\": "modules/" } }, "scripts": { } }

daltonrooney commented 3 years ago

If you're having a problem with the Mailchimp plugin, this has been solved in https://github.com/aelvan/mailchimp-subscribe-craft/issues/117. Try composer require guzzlehttp/guzzle:^6, then composer require aelvan/mailchimp-subscribe, at which point your installment requirements should be sorted out.

MetaDevelopment commented 3 years ago

I am having the same issue, but I'm not using the Mailchimp plugin.

I set up a fresh install using PHP 7.4 and first installed a couple of other plugins, after which I tried installing the Craft Contact Form Extentions (CCFE), but that gave an error (code below). Manually adding the CCFE version 1.2.4 to the composer.json file and running "composer update" via the terminal did install CCFE without issues. I then just had to enable it within Craft.

When trying to update it to 1.2.5 via Craft, I get the same error as when trying to install it from scratch:

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

Problem 1
- illuminate/support[v5.0.0, ..., v5.0.33] require illuminate/contracts 5.0.* -> satisfiable by illuminate/contracts[v5.0.0, v5.0.33] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v5.1.1, ..., v5.1.41] require illuminate/contracts 5.1.* -> satisfiable by illuminate/contracts[v5.1.1, ..., v5.1.41] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v5.2.0, ..., v5.2.45] require illuminate/contracts 5.2.* -> satisfiable by illuminate/contracts[v5.2.0, ..., v5.2.45] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v5.2.25, ..., v5.3.23] require illuminate/contracts 5.3.* -> satisfiable by illuminate/contracts[v5.3.0, v5.3.4, v5.3.16, v5.3.23] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v5.4.0, ..., v5.4.36] require illuminate/contracts 5.4.* -> satisfiable by illuminate/contracts[v5.4.0, ..., v5.4.36] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v5.5.0, ..., v5.5.44] require illuminate/contracts 5.5.* -> satisfiable by illuminate/contracts[v5.5.0, ..., v5.5.44] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v5.6.0, ..., v5.6.39] require illuminate/contracts 5.6.* -> satisfiable by illuminate/contracts[v5.6.0, ..., v5.6.39] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v5.7.0, ..., v5.7.28] require illuminate/contracts 5.7.* -> satisfiable by illuminate/contracts[v5.7.0, ..., v5.7.28] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v5.8.0, ..., v5.8.36] require illuminate/contracts 5.8.* -> satisfiable by illuminate/contracts[v5.8.0, ..., v5.8.36] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v6.0.0, ..., v6.20.27] require illuminate/contracts ^6.0 -> satisfiable by illuminate/contracts[v6.0.0, ..., v6.20.32] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v7.0.0, ..., v7.30.4] require illuminate/contracts ^7.0 -> satisfiable by illuminate/contracts[v7.0.0, ..., v7.30.4] from composer repo (https://repo.packagist.org) but illuminate/contracts[v8.0.0, ..., v8.55.0] from composer repo (https://composer.craftcms.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.
- illuminate/support[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (7.2.5; overridden via config.platform, actual: 7.4.15) does not satisfy that requirement.
- illuminate/support[v8.12.0, ..., v8.46.0] require php ^7.3|^8.0 -> your php version (7.2.5; overridden via config.platform, actual: 7.4.15) does not satisfy that requirement.
- hybridinteractive/craft-contact-form-extensions 1.2.5 requires albertcht/invisible-recaptcha ^1.8 -> satisfiable by albertcht/invisible-recaptcha[v1.8, ..., v1.9.6].
- albertcht/invisible-recaptcha[v1.8, ..., v1.8.1] require illuminate/support 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.* -> satisfiable by illuminate/support[v5.0.0, ..., v5.5.44].
- albertcht/invisible-recaptcha[v1.8.2, ..., v1.8.3] require illuminate/support 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.* -> satisfiable by illuminate/support[v5.0.0, ..., v5.6.39].
- albertcht/invisible-recaptcha[v1.8.4, ..., v1.9] require illuminate/support 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.* -> satisfiable by illuminate/support[v5.0.0, ..., v5.7.28].
- albertcht/invisible-recaptcha[v1.9.1, ..., v1.9.2] require illuminate/support ^5.0 -> satisfiable by illuminate/support[v5.0.0, ..., v5.8.36].
- albertcht/invisible-recaptcha v1.9.3 requires illuminate/support ^5.0|^6.0 -> satisfiable by illuminate/support[v5.0.0, ..., v5.8.36, v6.0.0, ..., v6.20.27].
- albertcht/invisible-recaptcha v1.9.4 requires illuminate/support ^5.0|^6.0|^7.0 -> satisfiable by illuminate/support[v5.0.0, ..., v5.8.36, v6.0.0, ..., v6.20.27, v7.0.0, ..., v7.30.4].
- albertcht/invisible-recaptcha[v1.9.5, ..., v1.9.6] require illuminate/support ^5.0|^6.0|^7.0|^8.0 -> satisfiable by illuminate/support[v5.0.0, ..., v5.8.36, v6.0.0, ..., v6.20.27, v7.0.0, ..., v7.30.4, v8.0.0, ..., v8.46.0].
- Root composer.json requires hybridinteractive/craft-contact-form-extensions 1.2.5 -> satisfiable by hybridinteractive/craft-contact-form-extensions[1.2.5].

Here's my composer file contents:

{
  "require": {
    "carlcs/craft-redactorcustomstyles": "3.0.4",
    "craftcms/cms": "^3.6.4",
    "craftcms/contact-form": "2.2.7",
    "hybridinteractive/craft-contact-form-extensions": "1.2.4",
    "craftcms/redactor": "2.8.8",
    "nystudio107/craft-seomatic": "3.4.2",
    "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,
    "platform": {
      "php": "7.2.5"
    }
  },
  "scripts": {
    "post-root-package-install": [
      "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ]
  }
}

Not sure why it refers to PHP version 7.2.5 there, I believe I'm running 7.4.15 which I also see when I check it in Craft.

rosskenney commented 3 years ago

@MetaDevelopment please adjust to the same php version you are using. So if you are using 7.4 make sure that is what is listed in your composer.json file.

rosskenney commented 3 years ago

Just so you know this is what that is doing https://getcomposer.org/doc/06-config.md#platform

MetaDevelopment commented 3 years ago

@rosskenney : thanks for that input and the link! I've updated it, ran "composer update" and after that could just update CCFE to the latest version without issues. So my post above is not relevant to this issue, I believe. Strange though that an incorrect version is shown there, since Craft creates the composer file but does recognise the correct version if I check it within Craft.

rosskenney commented 3 years ago

That allows you to lock in the production php version and be able to load it up locally and not have issues. 7.2 EOL is coming up in November. Here is the exact line that shows that the issue is due to not having it set for 7.3 or better.

illuminate/support[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (7.2.5; overridden via config.platform, actual: 7.4.15) does not satisfy that requirement.

So for anyone else having this issue it is due to illuminate/support needing to be at 7.3 or better. This package is a requirement of albertcht/invisible-recaptcha