Paygate / PayWeb_Magento_2

This is the PayGate PayWeb3 plugin for Magento 2.
GNU General Public License v3.0
2 stars 6 forks source link

Installation with composer 2.1 the version of extension 2.5.1 #37

Closed GalichMolodothon closed 2 years ago

GalichMolodothon commented 2 years ago

Hello. I got an error when try to install the PayWeb via composer. Selection_305

Magento CLI 2.4.4-p1 PHP 8.1.6 Ubuntu 20.04.2 LTS Composer version 2.1.14

The php 8.1 not allowed the library ext-http, but it required in the composer.json for this extension.

appinlet commented 2 years ago

@GalichMolodothon version 2.5.1 requires Magento 2.4.5.

GalichMolodothon commented 2 years ago

Sorry, but this error doesn't depend on the version of the Magento. It's problem with PHP 8.1 library and extension dependency.

appinlet commented 2 years ago

@GalichMolodothon use version 2.5.0 for Magento 2.4.5

GalichMolodothon commented 2 years ago

The version 2.5.0 require PHP 7.4, it's possible to upload via composer for PHP 8.1

appinlet commented 2 years ago

@GalichMolodothon version 2.5.1 supports PHP 8.1, but requires Magento 2.4.5.

GalichMolodothon commented 2 years ago

@appinlet on my screenshot the error that doesn't connect with the Magento version. I tested with the Magento 2.4.5 and the same error for command: composer require paygate/paygate-payweb-gateway

The extension has requirements, and one of them is PHP library ext-http, which is not supported by PHP 8.1. https://github.com/PayGate/PayWeb_Magento_2/blob/546015b9c6f942325f8187b8fdc580a79ab0b129/composer.json#L16

GalichMolodothon commented 2 years ago

It's the screenshot with the Magento 2.4.5 Selection_305

GalichMolodothon commented 2 years ago

@appinlet could you please answer? The problem is reproduced on Magento 2.4.5 and doesn't depend of the Magento version. There present an incorrect dependency in the composer.json file for PHP 8.1 version and it doesn't allow the use of composer for the installation of the extension.

appinlet commented 2 years ago

@GalichMolodothon please confirm that you have installed or enabled PHP's http extension

Depending on the server, this will be something like: sudo apt install php-http Or pecl install pecl_http

Please also confirm that the following required extensions are installed and enabled:

ext-bcmath ext-ctype ext-curl ext-dom ext-fileinfo ext-gd ext-hash ext-iconv ext-intl ext-json ext-libxml ext-mbstring ext-openssl ext-pcre ext-pdo_mysql ext-simplexml ext-soap ext-sockets ext-sodium ext-tokenizer ext-xmlwriter ext-xsl ext-zip lib-libxml lib-openssl

GalichMolodothon commented 2 years ago

Selection_308

@appinlet sorry, but this didn't bring forward any changes

ChameleonDevil commented 2 years ago

@appinlet

Sorry for highlighting something: I want to update your recent changes (https://github.com/PayGate/PayWeb_Magento_2/issues/36), but I have now read in this thread that v2.5.1 requires Magento 2.4.5.

Am I correct in saying that there is not going to be any compatible version for Magento 2.3 anymore, I would not be able to upgrade to v2.5.1 or any 'future versions' as Paygate support continues to suggest I do... and don't understand the compatibility requirements

Magento 2.4 is still in branch 2.4-dev; and looking at the 1000s of open issues far from 'production ready'.

What about sites that are still running Magento 2.3? I don't think we are the only ones?

appinlet commented 2 years ago

@GalichMolodothon please see https://github.com/PayGate/PayWeb_Magento_2/pull/40.

We have removed this requirement as some servers fail as per the above.

@ChameleonDevil continued in https://github.com/PayGate/PayWeb_Magento_2/issues/38.