paytm / paytm-pg-php-sdk

8 stars 20 forks source link

Monolog version Issue #2

Open dhavalpatelh opened 4 years ago

dhavalpatelh commented 4 years ago

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 commented 4 years ago

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

chandrabhan11 commented 3 years ago

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

KingOfNoobs commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

@KingOfNoobs Thank you :)

rscipher001 commented 3 years ago

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 commented 2 years ago

Steps on Magento OS 2.4.4 - Latest Bitnami

ERRORS Reproduced

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 commented 2 years ago

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

dravasp commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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.