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
1 vote
3 answers
3k views

Magento 2.4.3 and Composer error messages for allure phpunit and ramsey uuid - Can't continue with update

I'm getting some error messages from composer, when I try to upgrade from Magento 2.4.2 to Magento 2.4.3, and these are: - Root composer.json requires magento/product-community-edition 2.4.3 -> ...
  • 282
4 votes
1 answer
2k views

Multiple users keys for the same repository

Hey guys I'm building a Magento 2 app where there are 2 different teams working on the project. 1 internally and the other outside of our premises and we have 2 separate Magento marketplace accounts. ...
  • 157
0 votes
2 answers
1k views

Laminas compile error at update to 2.4.3

I was updating Magento Community from 2.4.2 to 2.4.3 and get this error at compile on 55%: Deprecated Functionality: Class Laminas\Hydrator\Reflection is deprecated, please use Laminas\Hydrator\...
2 votes
5 answers
8k views

Upgrade to magento 2.4.3

I'm trying to upgrade Magento 2.4.2 to the latest release of Magento 2.4.3 How can I do this with the composer?
  • 103
0 votes
1 answer
233 views

Unable to uninstall Magento 2 Luma Theme - "frontend/Magento/luma is not an installed Composer package"

I am running a Magento 2.3.6 system and I built my own theme which inherits from Magento/blank. Since I don't need the Luma theme, I want to properly get rid of it. I followed the instructions from ...
  • 194
2 votes
1 answer
614 views

How could I check outdated extensions installed via Composer?

I have 30 extensions installed via Composer but when I need to check all the outdated extensions running the command below a huge list of non-extensions shows up, containing all the dependencies and ...
10 votes
3 answers
7k views

M2.4 Exception throwing while executing composer require: Higher matching version 2.3.x of xxx/module-xxxx was found in public repository packagist

While executing composer require xxxx/module-xxxx I'm facing below error on the console. Repository is private at the moment. [Exception] ...
  • 3,854
0 votes
0 answers
18 views

Items are missing on Order Details Page

I am getting an error, when customers are placing an order then on In admin Sales=> Order details page Orders items are missing. But invoice is created successfully. All items are coming in when I ...
0 votes
1 answer
35 views

magento cli error after module installation by composer

i use magetno 2.2.3 . the bin/magento cli is working fine until I add a module by composer require [module name] --ignore-platform-reqs.after that it gives me a long term error : so how should I ...
0 votes
2 answers
896 views

Magento 2.4.3 - Module and Theme Installation not working

I have installed Magento 2.4.3 via composer and trying to install custom frontend/admin theme and custom modules. These modules are already working in version 2.3 that have been copied and added at ...
0 votes
1 answer
87 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
0 answers
337 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 ...
1 vote
0 answers
53 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\...
  • 200
0 votes
1 answer
2k 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
2 answers
1k 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 (&...
  • 181
0 votes
1 answer
642 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
4 answers
328 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-...
  • 101
0 votes
1 answer
342 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
0 answers
656 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) ...
2 votes
1 answer
1k 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-...
  • 21
0 votes
0 answers
473 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
2 answers
51 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 ...
  • 580
0 votes
2 answers
201 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
1 answer
103 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
0 answers
90 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 ...
  • 2,034
0 votes
1 answer
708 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
2 answers
946 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) ...
  • 170
0 votes
1 answer
290 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 ...
  • 2,903
0 votes
2 answers
105 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
1 answer
42 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/...
  • 1,392
0 votes
2 answers
643 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 ...
  • 11
0 votes
1 answer
710 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 ...
  • 1
1 vote
0 answers
972 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
2 answers
4k 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 ...
  • 145
1 vote
2 answers
347 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": "...
  • 1,421
2 votes
1 answer
920 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
1 answer
1k 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 /...
  • 53
0 votes
0 answers
3k 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'...
  • 1
6 votes
1 answer
2k 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
1 answer
183 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
1 answer
98 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
1 answer
436 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-...
2 votes
1 answer
226 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 ...
  • 419
0 votes
2 answers
498 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
1 answer
567 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
1 answer
271 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,&...
1 vote
2 answers
3k 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-...
  • 468
0 votes
0 answers
61 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 ...
  • 2,903
1 vote
2 answers
364 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/...
  • 3,736
0 votes
1 answer
34 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,461

1 2
3
4 5
15