Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monolog version Issue #2

Open
dhavalpatelh opened this issue Nov 24, 2019 · 13 comments
Open

Monolog version Issue #2

dhavalpatelh opened this issue Nov 24, 2019 · 13 comments

Comments

@dhavalpatelh
Copy link

I am using laravel 6. when installing package with composer following error occurred :-

Problem 1
    - Installation request for paytm/paytm-pg ^0.0.1 -> satisfiable by paytm/paytm-pg[0.0.1].
    - Conclusion: remove monolog/monolog 2.0.0
    - Conclusion: don't install monolog/monolog 2.0.0
    - paytm/paytm-pg 0.0.1 requires monolog/monolog ^1.24 -> satisfiable by monolog/monolog[1.24.0, 1.25.0, 1.25.1, 1.25.2, 1.x-dev].
    - Can only install one of: monolog/monolog[1.24.0, 2.0.0].
    - Can only install one of: monolog/monolog[1.25.0, 2.0.0].
    - Can only install one of: monolog/monolog[1.25.1, 2.0.0].
    - Can only install one of: monolog/monolog[1.25.2, 2.0.0].
    - Can only install one of: monolog/monolog[1.x-dev, 2.0.0].
    - Installation request for monolog/monolog (locked at 2.0.0) -> satisfiable by monolog/monolog[2.0.0].
@darkmat13r
Copy link

https://github.com/darkmat13r/paytm-pg-php-sdk

@chandrabhan11
Copy link

facing same issue. not getting any solution for this. @dsignpalette have you got any solution?

@KingOfNoobs
Copy link

I am also facing the same issue. Tried to install the package in Laravel 8 via composer and received following error.

Using version ^0.0.5 for paytm/paytm-pg
./composer.json has been updated
Running composer update paytm/paytm-pg
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 paytm/paytm-pg ^0.0.5 -> satisfiable by paytm/paytm-pg[0.0.5].
    - paytm/paytm-pg 0.0.5 requires monolog/monolog ^1.24 -> found monolog/monolog[1.24.0, ..., 1.x-dev] but the package is fixed to 2.2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

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.

Laravel already contains monolog/monolog package. So I think the correct solution will be to remove monolog/monolog from composer.lock file of this package as mentioned by @darkmat13r

@KingOfNoobs
Copy link

https://github.com/darkmat13r/paytm-pg-php-sdk

Hey, is there any way to test your code? Is it possible to install your repository via composer? Well maybe probably not? Your changes, kind of seems like a correct solution this problem.

@darkmat13r
Copy link

@KingOfNoobs I was using this for my production app and it was working perfectly fine... yes it is possible to install repo via composer. Update you composer file like this
"repositories": [
{
"type":"package",
"package": {
"name": "darkmat13r/paytm-pg",
"version":"master",
"source": {
"url": "https://github.com/darkmat13r/paytm-pg-php-sdk.git",
"type": "git",
"reference":"master"
}
}
}
],
"require": {
"darkmat13r/paytm-pg": "master"
}

@KingOfNoobs
Copy link

KingOfNoobs commented May 1, 2021

@KingOfNoobs I was using this for my production app and it was working perfectly fine... yes it is possible to install repo via composer. Update you composer file like this
"repositories": [
{
"type":"package",
"package": {
"name": "darkmat13r/paytm-pg",
"version":"master",
"source": {
"url": "https://github.com/darkmat13r/paytm-pg-php-sdk.git",
"type": "git",
"reference":"master"
}
}
}
],
"require": {
"darkmat13r/paytm-pg": "master"
}

Thanks for replying. Didn't expect that I would receive any reply. I made the changes in both composer.lock and composer.json files and ran the composer install command and it worked. Just checked the list of installed packages by composer show. Here's the result

asm89/stack-cors                     v2.0.2        Cross-origin resource sharing library and stack middleware
brick/math                           0.9.1         Arbitrary-precision arithmetic library
composer/package-versions-deprecated 1.11.99.1     Composer plugin that provides efficient querying for installed package versions (no runtime IO)
darkmat13r/paytm-pg                  master master
dnoegel/php-xdg-base-dir             v0.1.1        implementation of xdg base directory specification for php

...

You should create a pull request for this. Again thanks a lot.

@darkmat13r
Copy link

@KingOfNoobs Thank you :)

@rscipher001
Copy link

PayTM is the worst payment gateway when it comes to integration, I hate it but I don't have a choice since client ask for it, they haven't replied to any issue here, such a pathetic service. Thanks to darkmat13r for fixing monolog issue in this useless repo.

@dravasp
Copy link

dravasp commented Aug 8, 2022

Steps on Magento OS 2.4.4 - Latest Bitnami

  • composer require paytm/paytm-pg

ERRORS Reproduced

  • Root composer.json requires monolog/monolog ^1.24, found monolog/monolog[1.24.0, ..., 1.27.1] but the package is fixed to 2.8.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    Problem 2
    • Root composer.json requires paytm/paytm-pg ^0.0.5 -> satisfiable by paytm/paytm-pg[0.0.5].
    • paytm/paytm-pg 0.0.5 requires monolog/monolog ^1.24 -> found monolog/monolog[1.24.0, ..., 1.27.1] but the package is fixed to 2.8.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Trial Codes Executed
composer require --no-update monolog/monolog ^1.24
composer update -W monolog/monolog
composer update

but none of this seems to work

Repo Owners at paytm please support

@KingOfNoobs
Copy link

@pgpautomation @ishaankumarpaytm please review PR-14 it might be the solution to this issue.

@dravasp
Copy link

dravasp commented Aug 30, 2022

Please note -

Insecure Deserialization of untrusted data
CVE-2021-29476

Affected version: >=1.6.0,<1.8.0

Kindly approve module owners to upgrade rmccue/requests to latest supported secure version (^2.0)
https://packagist.org/packages/rmccue/requests/advisories?version=1033740

@marungsha
Copy link

When I try to composer install after adding the package as said I get following error
Root composer.json requires darkmat13r/paytm-pg master, found darkmat13r/paytm-pg[master] but it does not match your minimum-stability.

@KingOfNoobs
Copy link

When I try to composer install after adding the package as said I get following error Root composer.json requires darkmat13r/paytm-pg master, found darkmat13r/paytm-pg[master] but it does not match your minimum-stability.

@marungsha this issue has been resolved in #16. Here's the commit by @rahul2bisht

just run composer require paytm/paytm-pg

Seriously they took 2 years to resolve this simple issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants