born05 / craft-sentry

Pushes Craft CMS errors to Sentry.
MIT License
10 stars 11 forks source link

Installation error #2

Closed umkasanki closed 4 years ago

umkasanki commented 4 years ago

Hello.

I have an installation error:

  Problem 1
    - sentry/sentry 2.2.5 requires php ^7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
    - sentry/sentry 2.2.4 requires php ^7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
    - sentry/sentry 2.2.3 requires php ^7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
    - sentry/sentry 2.2.2 requires php ^7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
    - sentry/sentry 2.2.1 requires php ^7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
    - sentry/sentry 2.2.0 requires php ^7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
    - sentry/sentry 2.1.3 requires php ^7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
    - born05/craft-sentry 1.0.0 requires sentry/sdk ^2.0.4 -> satisfiable by sentry/sdk[2.0.4].
    - sentry/sdk 2.0.4 requires sentry/sentry ^2.1.3 -> satisfiable by sentry/sentry[2.1.3, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5].
    - Installation request for born05/craft-sentry ^1.0 -> satisfiable by born05/craft-sentry[1.0.0].

How I can fix it? Thanks

roelvanhintum commented 4 years ago

@umkasanki which php version are you using? Both php 7.2.10 and php 7.0 are mentioned.

If you have something like the following in your composer.json, try modifying that. It should say php 7.1 or higher.

"config": {
    "platform": {
        "php": "7.1"
    }
},
umkasanki commented 4 years ago

Thanks for fast reply

$ php -v
PHP 7.2.10 (cli) (built: Oct  3 2018 11:43:40) ( ZTS MSVC15 (Visual C++ 2017) x86 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
roelvanhintum commented 4 years ago

@umkasanki did that solve the problem? Otherwise, you can share your composer.json. I'm guessing there is an config problem.

umkasanki commented 4 years ago

Yes, the problem solved. Thanks