Questions tagged [composer]

Composer is a tool to manage dependencies in PHP. It supports fetching dependencies from different sources like Git, SVN, PEAR, the local filesystem, etc. and also offers automated autoloading support.

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

enabling module error in vendor after installing with composer by CLI

I add a module with composer and then try to enable it by writing the command php bin/magento module:enable SR_UnicodeUrl but I get a long error in response that starts with this phrase Unknown ...
0
votes
0answers
16 views

Magento 2: Installing patch with Composer - package “not locked”

An established Magento extension company sent me a patch to install as there was an issue with our local installation. I tried installing it with Composer but it didn’t seem to change the code in the ...
0
votes
0answers
18 views

Unable to import the sample data

php -dmemory_limit=5G bin/magento sampledata:deploy used this command but return the error Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 4096 bytes) in F:\xampp\...
0
votes
0answers
12 views

Inform users of an extension of a major update via composer?

Lets say, I have coded an extension, that is hosted on github. You can install it via composer and composer adds a new require(ment) to the main composer.json. For example: "require": { ...
0
votes
1answer
35 views

Magento2 - Getting error Could not find a matching version of package After submitting in packagist.org

I have Created New Module and uploaded in github. Module Name : vrajeshpatel4u/helloworld Url : https://github.com/vrajeshpatel4u/helloworld/ Packagist Url : https://packagist.org/packages/...
0
votes
2answers
62 views

CLI Error when updating Composer because it requires a Plugin API version (“1.0”) that does not match your Composer installation (“2.1.0”)

I'm trying to update composer and dependencies but getting this CLI error: The "dealerdirect/phpcodesniffer-composer-installer" plugin was skipped because it requires a Plugin API version (&...
0
votes
1answer
70 views

Upgrade Magento from 2.2.4 to 2.3.7

I'm trying to upgrade Magento from 2.2.4 to 2.3.7 I got a lot of errors, so i fixed them by changing module's version, now composer require magento/product-community-edition=2.3.7 --no-update ...
0
votes
0answers
24 views

Composer\Downloader\TransportException (HTTP/1.1 404 Not Found)

I'm trying to run composer update but it keeps throwing the following error: [Composer\Downloader\TransportException] The "https://packagist.org/p/symfony/polyfill-php72%...
0
votes
1answer
45 views

Not able to install Google Pay module(unboundcommerce/module-googlepay)

As per the requirement I need to integrate Google Pay in my Magento 2 site. But I am getting an error added below. Command php -dmemory_limit=6G vendor/bin/composer require unboundcommerce/module-...
0
votes
1answer
17 views

Composer Installing AWS SDK On Magento 2.3

I'm trying to download composer require aws/aws-sdk-php but getting this error: I don't know the issue, if anyone knows about this please help me out. composer.json { "name": "...
0
votes
0answers
54 views

Problem when install any thing using composer in Magento 2.4.1

Am trying to install any module using composer v.1 and v.2 but I get this error all the time Problem 1 - The requested package laminas/laminas-servicemanager (locked at 2.7.11, required as ^3.6) ...
1
vote
1answer
184 views

Cannot upgrade Magento from 2.4.2 to 2.4.2-p1 using Composer 2

I have upgraded Magento community edition from version 2.4.1 to 2.4.2 using Composer version 1. Magento 2.4.2 supports Composer 2 (see https://devdocs.magento.com/guides/v2.4/release-notes/open-source-...
0
votes
0answers
25 views

Apply composer patch from a required composer module

I wonder how and if it is possible to apply a patch or if there's any other solution to modify the magento/framework from a required composer package. Patch successfully applied. The following patch ...
0
votes
2answers
33 views

Magento 2 EE: Running composer update is giving error

I am trying to run composer update and want to push the changes to magento cloud but is giving the following error: Problem 1 magento/product-enterprise-edition 2.3.4 requires ext-bcmath * -> the ...
0
votes
0answers
16 views

How to ignore/exclude specific folder from di:compile?

I have a file in my plugin folder which I don't want to be compiled while running bin/magento setup:di:compile . Is there any way to do that?
0
votes
2answers
32 views

Problem when download dompdf in magento 2.4.1

Hi am trying to install dompdf in Magento 2.4.1 using composer v1 but no success
0
votes
1answer
40 views

Unable to install theme with composer

I'm trying to install Alpaca theme following the documentation. I've created my composer.json file under app/design/frontend/ben/gotheme/composer.json { "name": "ben/gotheme", &...
0
votes
0answers
48 views

Magento 2 : Custom extension install and update composer require using public and private key

I have created the custom extension for my client and the client want to install and update the custom extension like Amasty and Aheadworks. So can anyone give any reference URL and how can I do the ...
0
votes
1answer
59 views

“Constant name is expected” when installing a module

I'm trying to install a third party module via composer with very low support, so I have to debug it myself. The problem I'm encountering an error "Constant name is expected" when I try to ...
1
vote
2answers
54 views

Can't install new composer modules due to PHP version

I'm trying to install a module on Github through composer require postcode-nl/api-magento2-module However, the installation is failing with this error: Updating dependencies (including require-dev) ...
0
votes
1answer
26 views

Magento 2 - How to install extension from marketplace.magento.com via composer?

I bought a this extension from marketplace.magento.com. I tried to install it via composer like this: composer require bsscommerce/customer-approval But I get [InvalidArgumentException] Could not ...
0
votes
1answer
22 views

Magento 2: So I have upgraded my magento from 2.3.6 to 2.4

So, I am trying to upgrade my magento from 2.3.6 to 2.4. I have updated my PHP from 7.3 to 7.4 for that. I am able to run composer install, composer update and all other magento commands without any ...
0
votes
1answer
23 views

Is there an easy way to convert Magento module name to composer names and vice versa?

I am in a process where I want to compare two columns in my spreadsheet. The problem is one column has Magento module names (like Magento_Swatches). The other one has composer names (like magento/...
0
votes
0answers
6 views

create extension for composer instalations with lib

Extension with next file structure: http://joxi.ru/Vm6l0vlUvna7WA I need to create a repository for composer installations what i have to do in composer.json? in the result after composer install ...
0
votes
2answers
178 views

Magento 2.3.5 with cpanel - Unable to downgrade composer to 1.10.20

(Magento 2.3.4) I am trying to downgrade composer due to not being able to run Composer commands as follows. NOTE: from my understanding Magento 2.3 is not compatible with composer 2. composer require ...
0
votes
1answer
54 views

unable to install module via composer

I'm trying to install a couple of modules through composer on Magento 2.4 using the default composer.json, however it fails. I'm using composer version 1.10.21. According to the official documentation ...
0
votes
0answers
70 views

Failed to set PHP CodeSniffer installed_paths Config issue at Magento2.4 installation

I tried to install Magento2 using Composer. After run $ sudo composer create-project --repository=https://repo.magento.com/ magento/project-community-edition magento the installation showed the error ...
0
votes
0answers
35 views

Magento 2.4.2 Root Plugin and Composer 2 Question

We ran to following command in Magento 2.4.2 $ composer require magento/composer-root-update-plugin=~1.0 --no-update to install the plugin, just to be prepared for upcoming Magento releases. Composer ...
0
votes
0answers
23 views

Error when install and uninstall module using composer Fatal error: Cannot declare class & Fatal error: require():

I am experiencing this issue after I installing / uninstall the extension from composer. I have been working with the extension provider but they can not figure about the issue. anyone has any insight?...
0
votes
2answers
299 views

“[ErrorException] chmod(): Operation not permitted” running “composer update”

I'm running Magento 2.4.2 and I'm using Composer v2.0.11. 2 days ago, after running, as usual, composer update, I suddenly received this error: [ErrorException] chmod(): Operation not permitted You ...
0
votes
0answers
40 views

How to convert Magento 2.3 extensions to composer packages?

I have a Magento 2.3.5 installation with a number of extensions that were installed the "old-fashioned" way, i.e. through the Magento Marketplace and the Web Setup Wizard's Extension Manager....
1
vote
2answers
45 views

Installation & Varnish Test Results and MFTF Magento Supplied Results Fails on Magento Marketplace

composer.json { "name": "vendor/preorder", "description": "preorder", "type": "magento2-module", "version": "...
2
votes
1answer
166 views

Using multiple marketplace accounts with composer in the same installation

(Magento 2.3.4, 2.4.1, 2.4.2, Composer 1.10.19, Ubuntu 18, PHP 7.3) We have two marketplace accounts and paid-for extensions in both, for the same Magento instance. We'd like to use auth.json to ...
0
votes
1answer
314 views

How to solve Magento 2 with composer 2 version error when sample data install

My application running AWS Bitnami platform. I am trying to upload sample data using composer after commands show warning message below Do you want to store credentials for repo.magento.com in /...
0
votes
0answers
283 views

SSL Certificate error when trying to download the Cybersource Magento Plugin

I'm trying to install the Cybersource package for Magento. I'm new to Magento, I had a pretty hard time installing Magento itself, but I got there. Now, I'm stuck installing this cybersource module. I'...
6
votes
0answers
731 views

Magento2 installation - Failed to set PHP CodeSniffer installed_paths Config

I am trying to install Magento2 using composer. Getting codesniffer error and tried below steps to overcome the error but unfortunately it's not going away STEP 1: Tried to install magento2 $ composer ...
0
votes
1answer
29 views

How to exclude third party extensions while upgrading magento 2.3.3 to 2.3.6?

I am upgrading Magento from 2.3.3 to 2.3.6 but one of my third-party extension is looking for an update from GitHub but that extension is not available in GitHub so I want to exclude that particular ...
0
votes
1answer
47 views

unable to update to magento 2.3.6

I am trying to upgrade Magento from 2.3.3 to 2.3.6 but I am getting the below error and the update is not happening. [RuntimeException] Failed to clone https://github.com/mageplaza/magento-2-image-...
0
votes
0answers
18 views

One repository for multiple composer.json file

I want to use a main repository and to have a module that I will require through composer. Since I'm playing some integration tests and processing some pipelines such as phpmd checks, for the main ...
0
votes
1answer
120 views

Error while installing magento 2.4.1 through command in ubuntu

Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/product-community-edition 2.4.1 -> satisfiable by magento/product-...
0
votes
0answers
42 views

Your requirements could not be resolved to an installable set of packages for razorpay payment gateway

i tried to update razorpay payment gateway using the below command. composer update razorpay/magento --ignore-platform-reqs But i am getting the below Output. Problem 1 - Conclusion: don't install ...
0
votes
1answer
33 views

Magento 2 - Every module as Git Repository, bad?

Our online business operates on a Magento 2.4.x installation which now has nearly 100 in-house modules that deliver features and functionality specific to our business. Every module has its own Git ...
0
votes
1answer
62 views

unable to update extension from composer

I am trying to update one of my payment gateway extension through composer and the command is composer update razorpay/update But I am getting the below errors Problem 1 - guzzlehttp/guzzle 7.2.0 ...
0
votes
1answer
157 views

Transport Exception : Content-Length mismatch Installing Magento 2.3.6

I have to install the magento 2.3.6 on my vagrant VM it actually already working on other VMs but today I have created another VM and start installing the magento2 but got this weird error at some ...
0
votes
1answer
37 views

I got issue regarding memory limit, I have changed php.ini files. still got same error?

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors. {"messages":{"error":[{"code":500,&...
0
votes
2answers
321 views

Composer update failing with Root package 'magento/project-community-edition' cannot require itself in its composer.json

If I install a completely fresh version of Magento in an empty directory, say 2.3.3, using the command: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-...
0
votes
0answers
12 views

Magento 2 - Composer update does not fully update core

I am on the latest version as of 2.4.1. There is a bug in my shop, I noticed that a file in vendor/magento is responsible for it (vendor/magento/module-newsletter/Model/Subscriber.php). I noticed that ...
1
vote
2answers
112 views

Magento 2 composer issue with bitbucket pipelines

I made a bitbucket pipeline and I would like to do some deployments, but my pipeline got stuck with a composer issue. This is the error message from the pipeline: The 'https://repo.magento.com/...
0
votes
0answers
12 views

How to create an artifact from a module in app/code to transfer to vendor

I heard that there is a way to archive a module with its description in the composer as an artifact. After that, during the composer install, the module will be added automatically to the vendor. Tell ...
0
votes
1answer
20 views

Facing issue in composer installation (EE version)

facing issue on composer install for EE version. any solution? Is there any way to change the Magento repo credential from the composer? I have configured one & save it in composer, I need to re-...

1
2 3 4 5
13