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
1 answer
13 views

How to prevent your custom .gitignore file to be overridden?

Running composer install I have my .editorconfig and .gitignore overriding. Is there any way to avoid it?
0 votes
1 answer
41 views

magento2 cloud composer.lock file not updated

I am trying to push code from my local to staging and getting the below error. Shouldn't on deploy magento update the composer.lock file based on what's in my json composer file? I am not getting how ...
  • 695
0 votes
0 answers
48 views

geting The following exception probably indicates you have misconfigured DNS resolver(s) when I try to install CookieFix

I'm running this command composer require veriteworks/cookiefix and I'm getting this error The following exception probably indicates you have misconfigured DNS resolver(s) In CurlDownloader.php ...
0 votes
0 answers
9 views

rename(/home/a94b818d/.cache/composer/composer1-temp.phar,/usr/bin/composer1): Permission denied

When I'm trying to install any module or update composer I'm getting this error, I tried to change permission but it's 755
0 votes
3 answers
361 views

How to install magento 2.4.5-p1 latest version on LAMP using Composer with sample data?

How to install Magento 2.4.5-p1 latest version on LAMP using Composer with the sample data?
0 votes
0 answers
14 views

Issue with Magento Repo Marketplace credentials | composer installation

Fresh Magento 2.4.2 I have some modules available in repo magento 2. when I try install via composer: - Root composer.json requires firebear/importexport, it could not be found in any version, there ...
  • 2,146
0 votes
1 answer
94 views

Error after upgrading Magento 2.4.3 to 2.4.5 match

syntax error, unexpected token "match", expecting variable#0 /httpdocs/vendor/composer/ClassLoader.php(432): Composer\Autoload\ClassLoader::Composer\Autoload\{closure}() #1 [internal ...
0 votes
0 answers
104 views

Class Zend\Console\Response does not exist After Magento 2 upgrade

After upgrade from Magento 2.4.2 to 2.4.4, and run bin/magento setup:di:compile I got this error Class Zend\Console\Response does not exist This is my composer.json file { "name": "...
0 votes
1 answer
31 views

How to upgrade Magento in live site?

I am working Magento2.3.4 in live site. I'd like to upgrade Magento2.4.5. so I cloned live site in subdomain. In this case, how can I upgrade Magento? I want to test in subdomain and then put in live ...
2 votes
3 answers
1k views

Upgrading from Magen2.3.4 to 2.4.5

I am using Magento 2.3.4 now. I want try to Magento 2.4.5. But I don't upgrade Magento. when run command in cpanel terminal, show error like this. $ composer require magento/product-community-edition ...
0 votes
1 answer
91 views

Magento 2 while upgrading an error of requires facebook/php-business-sdk but these conflict

We are using Magento 2 We are able to install Facebook Business SDK installation via composer but when we are trying to install facebook-for-magento2(https://marketplace.magento.com/facebook-facebook-...
  • 1,185
1 vote
0 answers
412 views

Magento 2 error: MiBsyntax error, unexpected ')', expecting variable in vendor/composer/ClassLoader.php(428)

I am a bigginer in magento 2 I came across with this error when hit sudo php bin/magento setup:di:compile Looks like the issue is inside the ClassLoader.php file so i remove the classLoader.php and ...
1 vote
0 answers
29 views

Composer installs Extensions to /vendor but Magento path is /app/code Fails to Load

I installed a magento extension via composer require I can see the files in /vendor but when I click on the extension from the admin panel it gives me an Exception that the Class does not exist as the ...
1 vote
1 answer
29 views

Composer versioning (what does each number means?)

I realy didn't find any answer on simple queastion what doues each number(example: 1.0.0) in version means? I can imagine that minor major ones, like if our packege became 1.0.1 so some minor changes ...
0 votes
0 answers
35 views

Remove Malware From Magento Site

Is there anyone help me please for removing malware from the sites. Screenshot is attached. Please check and help me. I'm very worry about that.
0 votes
0 answers
836 views

Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in

Below is the error I get in store frontend. Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in /home/magento/web/mymagentostorename.com/public_html/poms/libs/...
0 votes
1 answer
483 views

Your requirements could not be resolved to an installable set of packages reponse

During installing Magento using Composer i get: Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/product-community-edition 2.4....
0 votes
1 answer
85 views

Composer Install fails with Checksum on live search

I have a Cloud project that we have been working on for a few months. This was initially installed via composer and has been running fine for a while. Recently I had to reinstall the vendor folder and ...
  • 682
0 votes
3 answers
748 views

Composer update created error: require(vendor/magento/composer-root-update-plugin/registration.php): failed to open stream: No such file or directory

I have updated Composer to 2.4.4 as a prerequisite to updating Magento to 2.4.5, however now I'm getting errors in SSH when trying to run any other command and HTTP on a page execution: SSH: In ...
0 votes
1 answer
41 views

create Magento package in packagist

I am trying to require my package newly setup in packagist and github in a magento local projet when I run command. composer require anasstouaticoder/magento2-module-instantconfigurationcopy but I am ...
1 vote
1 answer
614 views

Composer issue when updating magento version to 2.4.5-p1

When I run composer require magento/product-enterprise-edition=2.4.5-p1 -W I got the following error Problem 1 - magento/product-community-edition 2.4.5-p1 requires magento/module-catalog 104.0.5-...
  • 106
0 votes
1 answer
71 views

Risks of updating composer from 1.10.24 to 2.1.0 on a Magento 2 instance

I want to update Magento from 2.4.1 to 2.4.4-p2 and I need to do other updates first, including updating the Composer from 1.10.24 (current version) to at least 2.1.0. The issue is that my production ...
  • 19
1 vote
1 answer
92 views

Magento 2 composer update removes pub/media and all other important folders

After running composer update, composer starts upgrading and downloading. After that the update of packages are marked red "Update of name/module_name failed". And all my important folders ...
0 votes
0 answers
12 views

Rename module's composer package

i'd like to know if it's possible (and if so, how) to rename a module i published to the composer repository/marketplace. My module's current name is "companyname/magento-2-extension" and i'...
  • 113
1 vote
1 answer
188 views

Module doesn't work when placed in `app/code`

i'm editing a Magento 2 module. If i install the module via composer require, then run all the necessary commands, the module works. If i manually copy the module files from vendor/{vendorname}/{...
  • 113
2 votes
2 answers
1k views

Updating from 2.3.5 to 2.4.4 gives magento/framework 102.0.5 requires php ~7.1.3||~7.2.0||~7.3.0 error

Magento 2.3.5 I am trying to update from Magento 2.3.5 to Magento 2.4.4-p2. The commands I executed are: composer require magento/product-community-edition=2.4.4-p2 --no-update --use-default-magento-...
0 votes
1 answer
476 views

Magento 2 - "Installation failed" with composer

Magento 2.4.3-pl - PHP 7.4.30 When trying to install any new extension using Composer I receive "Installation failed" messages, like so: Installation failed, reverting ./composer.json and ./...
0 votes
3 answers
120 views

How i install Magento 2.4.3p2 using composer?

I am new in magento. so, please give me a hint how to install magento 2.4.3p2 using composer with sample data
0 votes
1 answer
166 views

Magento 2 no longer depends on DotdigitalGroup

After upgrading Magento from 2.4.2 to 2.4.4, I am getting this error [2022-09-19T12:09:48.690729+00:00] report.DEBUG: Source class "\Dotdigitalgroup\Sms\ViewModel\TelephoneInputConfig" for &...
0 votes
2 answers
382 views

upgrading to magento from 2.4.3 to 2.4.4 with php 8.1

I am upgrading Magento CE from 2.4.3-p1 to 2.4.4-p1 with php 8.1 but I got this problem facebook/graph-sdk does not support php 8.1 and it is PHP package not Magento 2 Module, facebook/graph-sdk 5.6....
0 votes
1 answer
10 views

Install Live Search for Magento - package not found

I've installed Magento with sample data on a virtual machine. Now I'm trying to install Live Search for it. I used the instructions from this link. As the instruction says, I run the command below: ...
0 votes
0 answers
21 views

Problems when using composer require with Magento/Framework in Magento 2.4.2

Using Magento 2.4.2 Composer 2.2.17 I am trying to install Mollie Payments in Magento 2.4.2. Using Composer version 2.2.17. After running composer require mollie/magento2, i get the following problems:...
2 votes
3 answers
1k views

curl error 56 during composer install

We have have recently upgraded Magento from 2.3.5 to 2.4.4 and trying do deploy the update to our staging server. During the composer install we get the following error after a while: $ php8.1 /usr/...
  • 2,090
0 votes
1 answer
719 views

PHP's phar extension is missing. magento2.4.5

I have been installing Magento2.4.5 getting below error while executing composer install Can anyone suggest me how to resolve this. PHP's phar extension is missing. Composer requires it to run. ...
1 vote
0 answers
68 views

Magento 2.4: Error on running composer require magento/quality-patches

I am getting this error as soon as I enter the username (access key from the marketplace): Fatal error: Uncaught Error: Call to undefined function Symfony\Component\Console\Helper\exec() in phar:///...
  • 330
1 vote
1 answer
48 views

Moved modules from vendor to code, modules not working

I've removed a couple of modules from composer, and placed the folder/files into the app/local folder according to the structure als mentioned in the registration.php. The modules are enabled as seen ...
1 vote
1 answer
127 views

Update with composer

We've took over a magento store. Whenever I try to update, I'm getting the following errors: Problem 1 - magento/inventory-composer-installer 1.1.0 requires composer-plugin-api ^1.1 -> found ...
1 vote
1 answer
317 views

Move modules from vendor to app

We've took over a Magento2 store which is using several (payed) modules without a working license key which wont be provided by the previous agency. The modules are created by the previous agency, so ...
2 votes
2 answers
330 views

Magento2: How to create a patch for custom module composer.json?

I want to know that can we create patch for some changes in composer.json of custom module. I am talking about custom module composer not magento composer. Its just like changes but instead of any php ...
0 votes
0 answers
25 views

Add patch to the composer.json of a module

I want to update the req php version of a custom module composer.json and for that i've made a patch but problem is module requires php 7.3 and my magento version reqs php 7.4. I can change manually ...
0 votes
0 answers
14 views

Get stuck when using magento2/vuestorefront/composer

rookie here. Im trying to connect magento2 with vuestorefront using composer. I am following this guide: https://docs.vuestorefront.io/magento/installation-setup/configure-magento.html. On step 2, ...
  • 1
0 votes
2 answers
15 views

How to install exact same module versions to production installation

I have tested all extensions and theme in staging installation and now I need to install the exact same versions of each module and theme to the production installation by using composer. What is the ...
  • 1,561
1 vote
1 answer
414 views

Package urls replaced by 2tvenom/cborencode

I am working on an upgrade from Magento 2.3 to 2.4.3-p2. After a recent composer update of an extension a lot of repository URLs were replaced with random entries like the below. `codeload.github.com/...
  • 800
0 votes
0 answers
21 views

Magento 2.4.2: Unable to find a compatible set of packages based on your non-dev requirements alone

Running composer update command after running composer require-commerce magento/product-community-edition 2.4.4 --no-update --interactive-root-conflicts causes the following error in the process of ...
0 votes
0 answers
836 views

Magento 2.4.2: Your requirements could not be resolved to an installable set of packages

Running the command composer update --with-all-dependencies when trying to upgrade Magento 2.4.2 to 2.4.4. throws this message in red Your requirements could not be resolved to an installable set of ...
0 votes
1 answer
194 views

Magento: 500 Internal Server Error after upgrading to 2.4.4

The store front shows 500 Internal server error after I followed all instructions in the article here to upgrade Magento. On checking the version of Magento with the command bin/magento --version ...
0 votes
1 answer
194 views

Composer\Downloader\FilesystemException Filesystem exception:

As I ran the command composer require -w as part of the process to upgrade Magento 2.4.2 to 2.4.4, I found the error seen in the image below. Below is the article I'm referring to upgrade Magento. ...
0 votes
1 answer
116 views

Magento 2 Composer Install Allowed memory size exhausted

I am installing Magento 2.4.3 community edition in my local machine. Machine Specifications: 1.Linux (Ubuntu OS) 2.Nginx 3.Php 7.3 and Mysql I've set the memory limit as -1 (unlimited) and all other ...
  • 1,647
0 votes
1 answer
17 views

Updating magento by composer error

I'm trying to update a magento2.3.4 store to magento2.3.6-p1 using composer, composer-1 require magento/product-community-edition=2.3.6-p1 What could it be? any help is appreciated... update: I ...
0 votes
1 answer
71 views

composer require <module_name>:<version> 2.4.4

Hello i'm trying to install a plugin with composer in Magento 2.4.4 but how can i fix following error? Thanks

1
2 3 4 5
15